Makefile : suppression de variables inutiles

This commit is contained in:
Ahurac 2024-02-19 22:34:19 +01:00
parent bd9e199752
commit f7107c263f

View file

@ -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)/*)