mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 23:18:28 -04:00
ded192be3f
this will make it easier to support boards like the VRBrain
35 lines
750 B
Makefile
35 lines
750 B
Makefile
# find the mk/ directory, which is where this makefile fragment
|
|
# lives. (patsubst strips the trailing slash.)
|
|
MK_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
|
|
|
|
include $(MK_DIR)/environ.mk
|
|
|
|
# short-circuit build for the configure target
|
|
ifeq ($(MAKECMDGOALS),configure)
|
|
include $(MK_DIR)/configure.mk
|
|
|
|
else
|
|
|
|
# common makefile components
|
|
include $(MK_DIR)/targets.mk
|
|
include $(MK_DIR)/sketch_sources.mk
|
|
|
|
# board specific includes
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_APM1)
|
|
include $(MK_DIR)/board_avr.mk
|
|
endif
|
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_APM2)
|
|
include $(MK_DIR)/board_avr.mk
|
|
endif
|
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_AVR_SITL)
|
|
include $(MK_DIR)/board_avr_sitl.mk
|
|
endif
|
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
|
|
include $(MK_DIR)/board_px4.mk
|
|
endif
|
|
|
|
endif
|