From ef0330776eb4dc05c1bde7354d9ed6c86f2c4727 Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Fri, 30 Sep 2011 14:20:50 +0200 Subject: [PATCH] Adapt CFLAGS according to variant --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fd5db7a..e4fe9fd 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,10 @@ CPPFLAGS = -I. CPPFLAGS += $(FIRM_CPPFLAGS) CFLAGS += -Wall -W -Wstrict-prototypes -Wmissing-prototypes -std=c99 -pedantic -CFLAGS += -O2 -g -#CFLAGS += -O3 -march=pentium4 -fomit-frame-pointer -DNDEBUG -#CFLAGS += -pg -O3 -fno-inline +CFLAGS_debug = -O2 -g +CFLAGS_optimize = -O3 -fomit-frame-pointer -DNDEBUG +CFLAGS_profile = -pg -O3 -fno-inline +CFLAGS += $(CFLAGS_$(variant)) ICC_CFLAGS = -O0 -g3 -std=c99 -Wall #LFLAGS += -pg ICC ?= true -- 2.20.1