add debug target

This commit is contained in:
Mylloon 2023-04-30 17:02:41 +02:00
parent 8337f08cdc
commit 033c93af42
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 3 deletions

3
.gitignore vendored
View file

@ -18,6 +18,3 @@ demo
# Documentation # Documentation
documentation/*/ documentation/*/
# GL4D sources
GL4Dummies/

View file

@ -60,6 +60,9 @@ all: $(PROGNAME)
$(PROGNAME): $(OBJ) $(PROGNAME): $(OBJ)
$(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME) $(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 %.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@