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