From: Andreas Zwinkau Date: Fri, 30 Sep 2011 12:20:50 +0000 (+0200) Subject: Adapt CFLAGS according to variant X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ef0330776eb4dc05c1bde7354d9ed6c86f2c4727;p=cparser Adapt CFLAGS according to variant --- 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