Compare commits

...

2 commits

View file

@ -1,6 +1,8 @@
BIND := out BIND := out
BIN := $(BIND)/aoc BIN := $(BIND)/aoc
.PHONY: all run debug clean
all: $(BIND) $(BIN) all: $(BIND) $(BIN)
run: all run: all
@ -9,11 +11,11 @@ run: all
debug: all debug: all
gdb $(BIN) gdb $(BIN)
clean:
rm -f -- $(wildcard $(BIND)/*)
$(BIND): $(BIND):
mkdir -p -- $@ mkdir -p -- $@
$(BIN): $(wildcard src/*.c) $(BIN): $(wildcard src/*.c)
cc -g -Wall -Wextra -Werror -o $@ $^ cc -g -Wall -Wextra -Werror -o $@ $^
clean:
rm -f -- $(wildcard $(BIND)/*)