correct flags for debug builds

This commit is contained in:
Andre Leiradella 2015-06-05 18:22:44 -03:00
parent 7be1b2b9cf
commit e657975394

View File

@ -37,9 +37,11 @@ ifneq ($(V),1)
Q := @
endif
OPTIMIZE_FLAG = -O3 -ffast-math
ifeq ($(DEBUG), 1)
OPTIMIZE_FLAG = -O0
OPTIMIZE_FLAG = -O0 -g
LDFLAGS += -g
else
OPTIMIZE_FLAG = -O3 -ffast-math
endif
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) $(DEBUG_FLAG) -I.