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
|
||||
BIN := $(BIND)/aoc
|
||||
|
||||
.PHONY: all run debug clean
|
||||
|
||||
all: $(BIND) $(BIN)
|
||||
|
||||
run: all
|
||||
|
@ -9,11 +11,11 @@ run: all
|
|||
debug: all
|
||||
gdb $(BIN)
|
||||
|
||||
clean:
|
||||
rm -f -- $(wildcard $(BIND)/*)
|
||||
|
||||
$(BIND):
|
||||
mkdir -p -- $@
|
||||
|
||||
$(BIN): $(wildcard src/*.c)
|
||||
cc -g -Wall -Wextra -Werror -o $@ $^
|
||||
|
||||
clean:
|
||||
rm -f -- $(wildcard $(BIND)/*)
|
||||
|
|
Reference in a new issue