Makefile : suppression de variables inutiles
This commit is contained in:
parent
bd9e199752
commit
f7107c263f
1 changed files with 4 additions and 14 deletions
18
Makefile
18
Makefile
|
@ -1,15 +1,5 @@
|
|||
NAME := aoc
|
||||
FMT := c
|
||||
|
||||
CC := cc
|
||||
CC_OPTIONS := -g -Wall -Wextra -Werror
|
||||
DBG := gdb
|
||||
|
||||
SRCD := src
|
||||
BIND := out
|
||||
|
||||
SRCS := $(wildcard $(SRCD)/*.$(FMT))
|
||||
BIN := $(BIND)/$(NAME)
|
||||
BIN := $(BIND)/aoc
|
||||
|
||||
all: $(BIND) $(BIN)
|
||||
|
||||
|
@ -17,13 +7,13 @@ run: all
|
|||
$(BIN)
|
||||
|
||||
debug: all
|
||||
$(DBG) $(BIN)
|
||||
gdb $(BIN)
|
||||
|
||||
$(BIND):
|
||||
mkdir $@
|
||||
|
||||
$(BIN): $(SRCS)
|
||||
$(CC) $(CC_OPTIONS) -o $@ $^
|
||||
$(BIN): $(wildcard src/*.c)
|
||||
cc -g -Wall -Wextra -Werror -o $@ $^
|
||||
|
||||
clean:
|
||||
rm -f $(wildcard $(BIND)/*)
|
||||
|
|
Reference in a new issue