23 lines
244 B
Makefile
23 lines
244 B
Makefile
|
CC := cc
|
||
|
CC_OPTIONS := -g
|
||
|
|
||
|
SRCD := src
|
||
|
BIND := out
|
||
|
|
||
|
SRCS := $(wildcard $(SRCD)/*)
|
||
|
BIN := $(BIND)/aoc
|
||
|
|
||
|
all: $(BIND) $(BIN)
|
||
|
|
||
|
run: all
|
||
|
$(BIN)
|
||
|
|
||
|
$(BIND):
|
||
|
mkdir $@
|
||
|
|
||
|
$(BIN): $(SRCS)
|
||
|
$(CC) $(CC_OPTIONS) -o $@ $^
|
||
|
|
||
|
clean:
|
||
|
rm -f $(wildcard $(BIND)/*)
|