Amélioration du Makefile et ajout d'une cible 'debug'
This commit is contained in:
parent
e3dfee46d6
commit
5b7b95b13e
1 changed files with 10 additions and 3 deletions
13
Makefile
13
Makefile
|
@ -1,17 +1,24 @@
|
||||||
|
NAME := aoc
|
||||||
|
FMT := c
|
||||||
|
|
||||||
CC := cc
|
CC := cc
|
||||||
CC_OPTIONS := -g
|
CC_OPTIONS := -g -Wall -Wextra
|
||||||
|
DBG := gdb
|
||||||
|
|
||||||
SRCD := src
|
SRCD := src
|
||||||
BIND := out
|
BIND := out
|
||||||
|
|
||||||
SRCS := $(wildcard $(SRCD)/*)
|
SRCS := $(wildcard $(SRCD)/*.$(FMT))
|
||||||
BIN := $(BIND)/aoc
|
BIN := $(BIND)/$(NAME)
|
||||||
|
|
||||||
all: $(BIND) $(BIN)
|
all: $(BIND) $(BIN)
|
||||||
|
|
||||||
run: all
|
run: all
|
||||||
$(BIN)
|
$(BIN)
|
||||||
|
|
||||||
|
debug: all
|
||||||
|
$(DBG) $(BIN)
|
||||||
|
|
||||||
$(BIND):
|
$(BIND):
|
||||||
mkdir $@
|
mkdir $@
|
||||||
|
|
||||||
|
|
Reference in a new issue