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
|
BIND := out
|
||||||
|
BIN := $(BIND)/aoc
|
||||||
SRCS := $(wildcard $(SRCD)/*.$(FMT))
|
|
||||||
BIN := $(BIND)/$(NAME)
|
|
||||||
|
|
||||||
all: $(BIND) $(BIN)
|
all: $(BIND) $(BIN)
|
||||||
|
|
||||||
|
@ -17,13 +7,13 @@ run: all
|
||||||
$(BIN)
|
$(BIN)
|
||||||
|
|
||||||
debug: all
|
debug: all
|
||||||
$(DBG) $(BIN)
|
gdb $(BIN)
|
||||||
|
|
||||||
$(BIND):
|
$(BIND):
|
||||||
mkdir $@
|
mkdir $@
|
||||||
|
|
||||||
$(BIN): $(SRCS)
|
$(BIN): $(wildcard src/*.c)
|
||||||
$(CC) $(CC_OPTIONS) -o $@ $^
|
cc -g -Wall -Wextra -Werror -o $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(wildcard $(BIND)/*)
|
rm -f $(wildcard $(BIND)/*)
|
||||||
|
|
Reference in a new issue