2013-01-02 02:28:09 -04:00
|
|
|
# find the mk/ directory, which is where this makefile fragment
|
2013-01-09 15:27:59 -04:00
|
|
|
# lives. (patsubst strips the trailing slash.)
|
2013-03-05 08:32:55 -04:00
|
|
|
SYSTYPE := $(shell uname)
|
|
|
|
|
|
|
|
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
|
|
|
|
MK_DIR := $(shell cygpath -m ../mk)
|
|
|
|
else
|
|
|
|
MK_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
|
|
|
|
endif
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
include $(MK_DIR)/environ.mk
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
# short-circuit build for the configure target
|
|
|
|
ifeq ($(MAKECMDGOALS),configure)
|
|
|
|
include $(MK_DIR)/configure.mk
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
else
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2015-01-14 23:01:00 -04:00
|
|
|
# short-circuit build for the help target
|
|
|
|
include $(MK_DIR)/help.mk
|
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
# common makefile components
|
2013-01-02 02:28:09 -04:00
|
|
|
include $(MK_DIR)/targets.mk
|
2013-02-21 00:43:25 -04:00
|
|
|
include $(MK_DIR)/sketch_sources.mk
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2013-03-27 23:23:30 -03:00
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
2013-02-21 00:43:25 -04:00
|
|
|
# board specific includes
|
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_APM1)
|
|
|
|
include $(MK_DIR)/board_avr.mk
|
|
|
|
endif
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_APM2)
|
|
|
|
include $(MK_DIR)/board_avr.mk
|
|
|
|
endif
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2015-05-04 03:18:15 -03:00
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_SITL)
|
2014-07-06 20:19:59 -03:00
|
|
|
include $(MK_DIR)/board_native.mk
|
2013-02-21 00:43:25 -04:00
|
|
|
endif
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2013-09-22 03:04:08 -03:00
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_LINUX)
|
|
|
|
include $(MK_DIR)/board_linux.mk
|
|
|
|
endif
|
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
|
|
|
|
include $(MK_DIR)/board_px4.mk
|
2013-01-02 02:28:09 -04:00
|
|
|
endif
|
2013-09-23 00:01:42 -03:00
|
|
|
|
2014-03-31 14:56:57 -03:00
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_VRBRAIN)
|
|
|
|
include $(MK_DIR)/board_vrbrain.mk
|
|
|
|
endif
|
|
|
|
|
2013-09-23 00:01:42 -03:00
|
|
|
ifeq ($(HAL_BOARD),HAL_BOARD_FLYMAPLE)
|
|
|
|
include $(MK_DIR)/board_flymaple.mk
|
|
|
|
endif
|
|
|
|
|
2013-03-27 23:23:30 -03:00
|
|
|
endif
|
2013-01-02 02:28:09 -04:00
|
|
|
|
2013-02-21 00:43:25 -04:00
|
|
|
endif
|