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