Makefile: add debug option

This commit is contained in:
Michele Guerini Rocco 2021-12-15 02:31:06 +01:00
parent d9b03fc5e6
commit 5a50ce1cef
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -71,6 +71,13 @@ LIBRARIES := $(LIBRARIES:so=a)
LDFLAGS += -static LDFLAGS += -static
endif endif
# Debug build options
ifdef DEBUG
FFLAGS += -ggdb -O0 -Wall -Wunused-parameter
# Tricks to detect uninitialised memory
FFLAGS += -finit-integer=7777777 -finit-real=snan -ffpe-trap=invalid
endif
## ##
## Targets ## Targets
## ##