2013-02-21 00:43:25 -04:00
|
|
|
default: all
|
|
|
|
|
|
|
|
# convenient targets for our supported boards
|
|
|
|
sitl: HAL_BOARD = HAL_BOARD_AVR_SITL
|
|
|
|
sitl: TOOLCHAIN = NATIVE
|
|
|
|
sitl: all
|
|
|
|
|
|
|
|
apm1: HAL_BOARD = HAL_BOARD_APM1
|
|
|
|
apm1: TOOLCHAIN = AVR
|
|
|
|
apm1: all
|
|
|
|
|
2013-03-11 22:45:49 -03:00
|
|
|
apm1-1280: HAL_BOARD = HAL_BOARD_APM1
|
|
|
|
apm1-1280: TOOLCHAIN = AVR
|
|
|
|
apm1-1280: all
|
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
apm2: HAL_BOARD = HAL_BOARD_APM2
|
|
|
|
apm2: TOOLCHAIN = AVR
|
|
|
|
apm2: all
|
|
|
|
|
|
|
|
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
|
|
|
empty: TOOLCHAIN = AVR
|
|
|
|
empty: all
|
|
|
|
|
2012-12-18 17:53:44 -04:00
|
|
|
|
|
|
|
nologging: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
|
|
|
|
nologging: all
|
|
|
|
|
|
|
|
nogps: EXTRAFLAGS += "-DGPS_PROTOCOL=GPS_PROTOCOL_NONE "
|
|
|
|
nogps: nologging
|
|
|
|
|
|
|
|
clidisabled-nologging: EXTRAFLAGS += "-DCLI_ENABLED=DISABLED "
|
|
|
|
clidisabled-nologging: nologging
|
|
|
|
|
|
|
|
hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
2012-12-18 20:33:23 -04:00
|
|
|
hil: apm1
|
2012-12-18 17:53:44 -04:00
|
|
|
|
|
|
|
hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
|
|
|
|
|
|
|
apm1-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
apm1-hil: apm1
|
|
|
|
|
|
|
|
apm2-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
apm2-hil: apm2
|
|
|
|
|
|
|
|
apm1-hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
|
|
|
apm1-hilsensors: apm1
|
|
|
|
|
|
|
|
apm2-hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
|
|
|
apm2-hilsensors: apm2
|
|
|
|
|
|
|
|
apm2-nologging: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
|
|
|
|
apm2-nologging: apm2
|
|
|
|
|
|
|
|
heli: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
|
|
|
|
heli: all
|
|
|
|
|
|
|
|
dmp: EXTRAFLAGS += "-DDMP_ENABLED=ENABLED"
|
|
|
|
dmp: apm2
|
|
|
|
|
2013-03-18 00:44:41 -03:00
|
|
|
|
|
|
|
apm1-quad: EXTRAFLAGS += "-DFRAME_CONFIG=QUAD_FRAME "
|
|
|
|
apm1-quad: apm1
|
|
|
|
|
|
|
|
apm1-quad-hil: EXTRAFLAGS += "-DFRAME_CONFIG=QUAD_FRAME "
|
|
|
|
apm1-quad-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
apm1-quad-hil: apm1
|
|
|
|
|
|
|
|
apm1-tri: EXTRAFLAGS += "-DFRAME_CONFIG=TRI_FRAME "
|
|
|
|
apm1-tri: apm1
|
|
|
|
|
|
|
|
apm1-hexa: EXTRAFLAGS += "-DFRAME_CONFIG=HEXA_FRAME "
|
|
|
|
apm1-hexa: apm1
|
|
|
|
|
|
|
|
apm1-y6: EXTRAFLAGS += "-DFRAME_CONFIG=Y6_FRAME "
|
|
|
|
apm1-y6: apm1
|
|
|
|
|
|
|
|
apm1-octa: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_FRAME "
|
|
|
|
apm1-octa: apm1
|
|
|
|
|
|
|
|
apm1-octa-quad: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_QUAD_FRAME "
|
|
|
|
apm1-octa-quad: apm1
|
|
|
|
|
|
|
|
apm1-heli: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
|
|
|
|
apm1-heli: apm1
|
|
|
|
|
|
|
|
apm1-heli-hil: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
|
|
|
|
apm1-heli-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
apm1-heli-hil: apm1
|
|
|
|
|
|
|
|
|
|
|
|
apm2-quad: EXTRAFLAGS += "-DFRAME_CONFIG=QUAD_FRAME "
|
|
|
|
apm2-quad: apm2
|
|
|
|
|
|
|
|
apm2-quad-hil: EXTRAFLAGS += "-DFRAME_CONFIG=QUAD_FRAME "
|
|
|
|
apm2-quad-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
apm2-quad-hil: apm2
|
|
|
|
|
|
|
|
apm2-tri: EXTRAFLAGS += "-DFRAME_CONFIG=TRI_FRAME "
|
|
|
|
apm2-tri: apm2
|
|
|
|
|
|
|
|
apm2-hexa: EXTRAFLAGS += "-DFRAME_CONFIG=HEXA_FRAME "
|
|
|
|
apm2-hexa: apm2
|
|
|
|
|
|
|
|
apm2-y6: EXTRAFLAGS += "-DFRAME_CONFIG=Y6_FRAME "
|
|
|
|
apm2-y6: apm2
|
|
|
|
|
|
|
|
apm2-octa: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_FRAME "
|
|
|
|
apm2-octa: apm2
|
|
|
|
|
|
|
|
apm2-octa-quad: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_QUAD_FRAME "
|
|
|
|
apm2-octa-quad: apm2
|
|
|
|
|
|
|
|
apm2-heli: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
|
|
|
|
apm2-heli: apm2
|
|
|
|
|
|
|
|
apm2-heli-hil: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
|
|
|
|
apm2-heli-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
apm2-heli-hil: apm2
|
|
|
|
|
|
|
|
|
|
|
|
px4-quad: EXTRAFLAGS += "-DFRAME_CONFIG=QUAD_FRAME "
|
|
|
|
px4-quad: px4
|
|
|
|
|
2013-04-17 08:36:43 -03:00
|
|
|
px4-quad-hil: EXTRAFLAGS += "-DFRAME_CONFIG=QUAD_FRAME -DHIL_MODE=HIL_MODE_ATTITUDE "
|
2013-03-18 00:44:41 -03:00
|
|
|
px4-quad-hil: px4
|
|
|
|
|
|
|
|
px4-tri: EXTRAFLAGS += "-DFRAME_CONFIG=TRI_FRAME "
|
|
|
|
px4-tri: px4
|
|
|
|
|
|
|
|
px4-hexa: EXTRAFLAGS += "-DFRAME_CONFIG=HEXA_FRAME "
|
|
|
|
px4-hexa: px4
|
|
|
|
|
|
|
|
px4-y6: EXTRAFLAGS += "-DFRAME_CONFIG=Y6_FRAME "
|
|
|
|
px4-y6: px4
|
|
|
|
|
|
|
|
px4-octa: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_FRAME "
|
|
|
|
px4-octa: px4
|
|
|
|
|
|
|
|
px4-octa-quad: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_QUAD_FRAME "
|
|
|
|
px4-octa-quad: px4
|
|
|
|
|
|
|
|
px4-heli: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
|
|
|
|
px4-heli: px4
|
|
|
|
|
2013-04-17 08:36:43 -03:00
|
|
|
px4-heli-hil: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME -DHIL_MODE=HIL_MODE_ATTITUDE "
|
2013-03-18 00:44:41 -03:00
|
|
|
px4-heli-hil: px4
|
|
|
|
|
2013-04-17 08:36:43 -03:00
|
|
|
px4-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
|
|
|
|
px4-hil: px4
|
|
|
|
|
|
|
|
px4-hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
|
|
|
px4-hilsensors: px4
|
2012-12-18 17:53:44 -04:00
|
|
|
|
|
|
|
apm2beta: EXTRAFLAGS += "-DAPM2_BETA_HARDWARE "
|
|
|
|
apm2beta: apm2
|
|
|
|
|
|
|
|
sitl-octa: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_FRAME "
|
|
|
|
sitl-octa: sitl
|
|
|
|
|
|
|
|
sitl-hexa: EXTRAFLAGS += "-DFRAME_CONFIG=HEXA_FRAME "
|
|
|
|
sitl-hexa: sitl
|
|
|
|
|
|
|
|
sitl-y6: EXTRAFLAGS += "-DFRAME_CONFIG=OCTA_FRAME "
|
|
|
|
sitl-y6: sitl
|
|
|
|
|
|
|
|
obc-sitl: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
|
|
|
obc-sitl: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 "
|
|
|
|
obc-sitl: sitl
|
|
|
|
|
|
|
|
obc: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
|
|
|
obc: EXTRAFLAGS += "-DTELEMETRY_UART2=ENABLED "
|
|
|
|
obc: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 "
|
|
|
|
obc: apm2
|
|
|
|
|
2012-12-18 20:33:23 -04:00
|
|
|
sitl-mount: EXTRAFLAGS += "-DMOUNT=ENABLED"
|
|
|
|
sitl-mount: sitl
|
|
|
|
|
2013-01-09 15:27:59 -04:00
|
|
|
.PHONY: etags
|
2012-12-18 17:53:44 -04:00
|
|
|
etags:
|
2013-02-10 22:52:37 -04:00
|
|
|
cd .. && etags -f ArduCopter/TAGS --lang=c++ $$(git ls-files ArduCopter libraries)
|
|
|
|
cd .. && etags -f ArduPlane/TAGS --lang=c++ $$(git ls-files ArduPlane libraries)
|
|
|
|
cd .. && etags -f APMrover2/TAGS --lang=c++ $$(git ls-files APMrover2 libraries)
|
2013-02-21 00:43:25 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -fr $(BUILDROOT)
|
|
|
|
|