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_OPTIONS := -g
|
||||
CC_OPTIONS := -g -Wall -Wextra
|
||||
DBG := gdb
|
||||
|
||||
SRCD := src
|
||||
BIND := out
|
||||
|
||||
SRCS := $(wildcard $(SRCD)/*)
|
||||
BIN := $(BIND)/aoc
|
||||
SRCS := $(wildcard $(SRCD)/*.$(FMT))
|
||||
BIN := $(BIND)/$(NAME)
|
||||
|
||||
all: $(BIND) $(BIN)
|
||||
|
||||
run: all
|
||||
$(BIN)
|
||||
|
||||
debug: all
|
||||
$(DBG) $(BIN)
|
||||
|
||||
$(BIND):
|
||||
mkdir $@
|
||||
|
||||
|
|
Reference in a new issue