Ajout : Makefile
This commit is contained in:
parent
ae875015cd
commit
d5ad6ca7f8
1 changed files with 22 additions and 0 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
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)/*)
|
Reference in a new issue