19 lines
227 B
Makefile
19 lines
227 B
Makefile
BIND := out
|
|
BIN := $(BIND)/aoc
|
|
|
|
all: $(BIND) $(BIN)
|
|
|
|
run: all
|
|
$(BIN)
|
|
|
|
debug: all
|
|
gdb $(BIN)
|
|
|
|
$(BIND):
|
|
mkdir -p -- $@
|
|
|
|
$(BIN): $(wildcard src/*.c)
|
|
cc -g -Wall -Wextra -Werror -o $@ $^
|
|
|
|
clean:
|
|
rm -f -- $(wildcard $(BIND)/*)
|