mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 23:18:28 -04:00
29 lines
494 B
Makefile
29 lines
494 B
Makefile
# find the mk/ directory, which is where this makefile fragment
|
|
# lives
|
|
MK_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
ifeq ($(APPDIR),)
|
|
|
|
####################
|
|
# AVR and SITL build
|
|
|
|
|
|
include $(MK_DIR)/Arduino.mk
|
|
include $(MK_DIR)/targets.mk
|
|
|
|
else
|
|
|
|
####################
|
|
# PX4 build
|
|
APPNAME = ArduPlane
|
|
PRIORITY = SCHED_PRIORITY_DEFAULT
|
|
STACKSIZE = 4096
|
|
|
|
SKETCHBOOK=..
|
|
include $(APPDIR)/mk/apm.mk
|
|
|
|
endif
|
|
|
|
# these targets need to be outside the APPDIR if above
|
|
include $(MK_DIR)/px4_targets.mk
|