From 5b7b95b13ea3ab00fd55535e1110a5430f789ec9 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 3 Dec 2023 22:38:46 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20du=20Makefile=20et=20ajout?= =?UTF-8?q?=20d'une=20cible=20'debug'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1ff1d54..c519a5e 100644 --- a/Makefile +++ b/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 $@