add COMPILE_DEBUG option to makefile

This commit is contained in:
Steffen Jaeckel 2016-04-24 18:39:35 +02:00
parent 02c712c437
commit b3cd60a4d8

View File

@ -33,6 +33,10 @@ ifneq ($V,1)
endif endif
${silent} ${CC} ${CFLAGS} -c $< -o $@ ${silent} ${CC} ${CFLAGS} -c $< -o $@
ifdef COMPILE_DEBUG
#debug
CFLAGS += -g3
else
ifndef IGNORE_SPEED ifndef IGNORE_SPEED
CFLAGS += -O3 -funroll-loops CFLAGS += -O3 -funroll-loops
@ -44,6 +48,7 @@ CFLAGS += -O3 -funroll-loops
#speed #speed
CFLAGS += -fomit-frame-pointer CFLAGS += -fomit-frame-pointer
endif
endif endif
#START_INS #START_INS