[build] optimization flag can be set from airframe file

This commit is contained in:
Gautier Hattenberger
2014-02-07 22:47:54 +01:00
parent 1a0ae29e51
commit 5135d9d10e
9 changed files with 16 additions and 28 deletions
+2 -2
View File
@@ -27,7 +27,7 @@
SRC_ARCH = arch/sim
CC = g++
OPT ?= 2
SIMDIR = $(PAPARAZZI_SRC)/sw/simulator
# Launch with "make Q=''" to get full command display
@@ -37,7 +37,7 @@ CFLAGS = -W -Wall
CFLAGS += $(INCLUDES)
CFLAGS += $($(TARGET).CFLAGS)
CFLAGS += $(LOCAL_CFLAGS)
CFLAGS += -O2
CFLAGS += -O$(OPT)
CFLAGS += -g
LDFLAGS += $($(TARGET).LDFLAGS)