add debug target
This commit is contained in:
parent
8337f08cdc
commit
033c93af42
2 changed files with 3 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -18,6 +18,3 @@ demo
|
|||
|
||||
# Documentation
|
||||
documentation/*/
|
||||
|
||||
# GL4D sources
|
||||
GL4Dummies/
|
||||
|
|
3
Makefile
3
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 $@
|
||||
|
||||
|
|
Reference in a new issue