sandbox/bitwise/ion/Makefile

21 lines
328 B
Makefile
Raw Normal View History

TARGET := ion
OBJS := $(TARGET).o
2018-03-28 05:47:45 +00:00
CFLAGS ?= -g -std=c99 -Wall -Werror
.PHONY: all run
all: run
2018-03-27 22:59:34 +00:00
run: $(TARGET)
@echo "running $(TARGET)"
./$(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
.PHONY: clean
clean:
rm -f $(OBJS) $(TARGET)
2018-03-28 05:47:45 +00:00
.PHONY: release
release: clean
CFLAGS="$(CFLAGS) -DRELEASE" make $(TARGET)