[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 -1
View File
@@ -37,6 +37,7 @@ LINKPKG = $(PKG) -linkpkg -dllpath-pkg pprz
SIMSITLML = $(OBJDIR)/simsitl.ml
MYGTKINITCMO = myGtkInit.cmo
SITLCMA = $(SIMDIR)/sitl.cma
OPT ?= 2
# Launch with "make Q=''" to get full command display
Q=@
@@ -52,7 +53,7 @@ CFLAGS += $(INCLUDES)
CFLAGS += $($(TARGET).CFLAGS)
CFLAGS += $(LOCAL_CFLAGS)
CFLAGS += -fPIC
CFLAGS += -O2
CFLAGS += -O$(OPT)
CFLAGS += -g
CFLAGS += -std=gnu99