Compare commits
2 commits
31dcab5853
...
c8be7733d0
Author | SHA1 | Date | |
---|---|---|---|
c8be7733d0 | |||
1cb78fb97b |
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -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)/*)
|
|
||||||
|
|
Reference in a new issue