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