From 940cbc900ff7c3ada3d9568fbdc1310f3bbe84ad Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 19 Dec 2012 08:53:59 +1100 Subject: [PATCH] Plane: use targets.mk --- ArduPlane/Makefile | 72 +--------------------------------------------- 1 file changed, 1 insertion(+), 71 deletions(-) diff --git a/ArduPlane/Makefile b/ArduPlane/Makefile index a8f355d01f..2502d3615f 100644 --- a/ArduPlane/Makefile +++ b/ArduPlane/Makefile @@ -1,72 +1,2 @@ include ../mk/Arduino.mk - -nogps: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_NONE " -nogps: all - -hil-apm2: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE " -hil-apm2: apm2 - -hil-apm1: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE " -hil-apm1: apm1 - -hil-apm2-nologging: EXTRAFLAGS += "DLOGGING_ENABLED=DISABLED " -hil-apm2-nologging: hil-apm2 - -hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS " -hilsensors: all - -hilsensors-apm2: HAL_BOARD = "HAL_BOARD_APM2" -hilsensors-apm2: hilsensors - -hilsensors-apm1: HAL_BOARD = "HAL_BOARD_APM1" -hilsensors-apm1: hilsensors - -hilsensors-apm2-nologging: EXTRAFLAGS += "DLOGGING_ENABLED=DISABLED " -hilsensors-apm2-nologging: hilsensors-apm2 - -hilnocli: EXTRAFLAGS += "-DCLI_ENABLED=DISABLED " -hilnocli: hil - -nocli: EXTRAFLAGS +="-DCLI_ENABLED=DISABLED " -nocli: EXTRAFLAGS += "DLOGGING_ENABLED=DISABLED " -nocli: all - -ublox: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_UBLOX " -ublox: all - -mtk: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_MTK " -mtk: all - -mtk16: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_MTK16 " -mtk16: all - -heli: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME " -heli: all - -apm2-nologging: EXTRAFLAGS += "DLOGGING_ENABLED=DISABLED " -apm2-nologging: apm2 - -apm2-uart2: EXTRAFLAGS += "-DTELEMETRY_UART2=ENABLED " -apm2-uart2: apm2 - -apm2beta: EXTRAFLAGS += "-DAPM2_BETA_HARDWARE " -apm2beta: apm2 - -sitl-mount: EXTRAFLAGS += "-DMOUNT=ENABLED" -sitl-mount: sitl - - -obc: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED " -obc: EXTRAFLAGS += "-DTELEMETRY_UART2=ENABLED " -obc: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 " -obc: apm2 - -obc-sitl: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED " -obc-sitl: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 " -obc-sitl: sitl - -sitl-newcontrollers: EXTRAFLAGS += "-DAPM_CONTROL=ENABLED " -sitl-newcontrollers: sitl - -etags: - cd .. && etags -f ArduPlane/TAGS --langmap=C++:.pde.cpp.h $$(git ls-files ArduPlane libraries) +include ../mk/targets.mk