Ajout : Makefile

This commit is contained in:
Hippolyte Chauvin 2023-12-03 16:47:20 +01:00
parent ae875015cd
commit d5ad6ca7f8

22
Makefile Normal file
View 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)/*)