diff --git a/Makefile b/Makefile index e3e42a2..5760f73 100644 --- a/Makefile +++ b/Makefile @@ -71,6 +71,13 @@ LIBRARIES := $(LIBRARIES:so=a) LDFLAGS += -static 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 ##