From f7107c263fe55f49d18aea873bb3be94c41577bd Mon Sep 17 00:00:00 2001 From: Ahurac Date: Mon, 19 Feb 2024 22:34:19 +0100 Subject: [PATCH] Makefile : suppression de variables inutiles --- Makefile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 0659f3c..f2f6429 100644 --- a/Makefile +++ b/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)/*)