2011-09-30 08:16:48 -03:00
|
|
|
include ../libraries/AP_Common/Arduino.mk
|
2011-11-12 23:32:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
nologging: EXTRAFLAGS += "DLOGGING_ENABLED=DISABLED "
|
|
|
|
nologging: all
|
2011-11-12 23:32:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
nogps: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_NONE "
|
|
|
|
nogps: all
|
2011-11-12 23:32:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
hil: all
|
2012-12-03 20:13:33 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hil-apm2: HAL_BOARD = "HAL_BOARD_APM2"
|
|
|
|
hil-apm2: hil
|
2011-11-12 23:32:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hil-apm1: HAL_BOARD = "HAL_BOARD_APM1"
|
|
|
|
hil-apm1: hil
|
2012-12-04 18:22:21 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hil-apm2-nologging: EXTRAFLAGS += "DLOGGING_ENABLED=DISABLED "
|
|
|
|
hil-apm2-nologging: hil-apm2
|
2011-11-13 02:16:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
|
|
|
hilsensors: all
|
2012-12-03 18:05:02 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hilsensors-apm2: HAL_BOARD = "HAL_BOARD_APM2"
|
|
|
|
hilsensors-apm2: hilsensors
|
2012-12-04 18:22:21 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hilsensors-apm1: HAL_BOARD = "HAL_BOARD_APM1"
|
|
|
|
hilsensors-apm1: hilsensors
|
2011-11-12 23:32:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hilsensors-apm2-nologging: EXTRAFLAGS += "DLOGGING_ENABLED=DISABLED "
|
|
|
|
hilsensors-apm2-nologging: hilsensors-apm2
|
2012-05-18 09:31:39 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
hilnocli: EXTRAFLAGS += "-DCLI_ENABLED=DISABLED "
|
|
|
|
hilnocli: hil
|
2012-05-18 09:31:39 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
nocli: EXTRAFLAGS +="-DCLI_ENABLED=DISABLED "
|
|
|
|
nocli: nologging
|
2012-09-07 23:43:36 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
ublox: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_UBLOX "
|
|
|
|
ublox: all
|
2012-09-07 23:43:36 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
mtk: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_MTK "
|
|
|
|
mtk: all
|
2011-11-12 23:32:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
mtk16: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_MTK16 "
|
|
|
|
mtk16: all
|
2011-11-12 23:32:00 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
heli: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
|
|
|
|
heli: all
|
2012-12-04 18:22:21 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
apm2-nologging: HAL_BOARD = "HAL_BOARD_APM2"
|
|
|
|
apm2-nologging: nologging
|
2011-11-27 02:09:14 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
apm2-uart2: EXTRAFLAGS += "-DTELEMETRY_UART2=ENABLED "
|
|
|
|
apm2-uart2: apm2
|
2012-04-27 00:32:22 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
apm2beta: EXTRAFLAGS += "-DAPM2_BETA_HARDWARE "
|
|
|
|
apm2beta: apm2
|
2011-12-11 00:30:06 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
sitl-mount: EXTRAFLAGS += "-DMOUNT=ENABLED"
|
|
|
|
sitl-mount: sitl
|
2012-04-23 21:46:22 -03:00
|
|
|
|
2011-12-11 00:30:06 -04:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
obc: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
|
|
|
obc: EXTRAFLAGS += "-DTELEMETRY_UART2=ENABLED "
|
|
|
|
obc: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 "
|
|
|
|
obc: apm2
|
2012-07-08 22:49:26 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
obc-sitl: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
|
|
|
obc-sitl: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 "
|
|
|
|
obc-sitl: sitl
|
2012-08-21 23:34:40 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
sitl-newcontrollers: EXTRAFLAGS += "-DAPM_CONTROL=ENABLED "
|
|
|
|
sitl-newcontrollers: sitl
|
2012-09-07 23:43:36 -03:00
|
|
|
|
2012-12-13 21:34:26 -04:00
|
|
|
etags:
|
|
|
|
cd .. && etags -f ArduPlane/TAGS --langmap=C++:.pde.cpp.h $$(git ls-files ArduPlane libraries)
|