Amélioration du Makefile et ajout d'une cible 'debug'

This commit is contained in:
Hippolyte Chauvin 2023-12-03 22:38:46 +01:00
parent e3dfee46d6
commit 5b7b95b13e

View file

@ -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 $@