From a9278b6fcd472a44a6de9479f881dd3713417db9 Mon Sep 17 00:00:00 2001 From: "tridge60@gmail.com" Date: Wed, 13 Jul 2011 09:07:09 +0000 Subject: [PATCH] build: added EXTRAFLAGS to make rules this allows you to create a local makefile like this: include Makefile hil: make -f Makefile EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DSERIAL3_BAUD=115200" and then use 'make hil' git-svn-id: https://arducopter.googlecode.com/svn/trunk@2843 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_Common/Arduino.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Common/Arduino.mk b/libraries/AP_Common/Arduino.mk index 170e6ed287..6e383e178b 100644 --- a/libraries/AP_Common/Arduino.mk +++ b/libraries/AP_Common/Arduino.mk @@ -164,7 +164,7 @@ endif # # Tool options # -DEFINES = -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERS) +DEFINES = -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERS) $(EXTRAFLAGS) OPTFLAGS = -Os -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wformat=2 -Wno-reorder DEPFLAGS = -MD -MT $@