From 033c93af421e4dc148707356e61356861dd6b47a Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 30 Apr 2023 17:02:41 +0200 Subject: [PATCH] add debug target --- .gitignore | 3 --- Makefile | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f811974..171ac41 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,3 @@ demo # Documentation documentation/*/ - -# GL4D sources -GL4Dummies/ diff --git a/Makefile b/Makefile index 627eee2..715eefe 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,9 @@ all: $(PROGNAME) $(PROGNAME): $(OBJ) $(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME) +debug: CFLAGS = -Wall -Wextra -Wconversion -Wdouble-promotion -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -fsanitize-undefined-trap-on-error -g3 +debug: $(PROGNAME) + %.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@