From b3cd60a4d81dbd58982008d707fab2b69900e4bd Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 24 Apr 2016 18:39:35 +0200 Subject: [PATCH] add COMPILE_DEBUG option to makefile --- makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefile b/makefile index 8550650..3d934f5 100644 --- a/makefile +++ b/makefile @@ -33,6 +33,10 @@ ifneq ($V,1) endif ${silent} ${CC} ${CFLAGS} -c $< -o $@ +ifdef COMPILE_DEBUG +#debug +CFLAGS += -g3 +else ifndef IGNORE_SPEED CFLAGS += -O3 -funroll-loops @@ -44,6 +48,7 @@ CFLAGS += -O3 -funroll-loops #speed CFLAGS += -fomit-frame-pointer +endif endif #START_INS