2015-07-10 06:01:56 -07:00
|
|
|
##############################################################################
|
|
|
|
# Build global options
|
|
|
|
# NOTE: Can be overridden externally.
|
|
|
|
#
|
|
|
|
|
2021-05-06 07:04:21 -07:00
|
|
|
PROJECT_DIR = ../firmware
|
|
|
|
UNIT_TESTS_DIR=$(PROJECT_DIR)/../unit_tests
|
2019-08-25 17:15:14 -07:00
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
# Imported source files and paths
|
|
|
|
include $(PROJECT_DIR)/config/engines/engines.mk
|
2019-04-04 22:41:24 -07:00
|
|
|
include $(PROJECT_DIR)/controllers/controllers.mk
|
2019-11-19 17:05:12 -08:00
|
|
|
include $(PROJECT_DIR)/development/development.mk
|
2020-05-25 10:42:55 -07:00
|
|
|
include $(PROJECT_DIR)/console/console.mk
|
2020-11-15 08:55:26 -08:00
|
|
|
include $(PROJECT_DIR)/console/binary/tunerstudio.mk
|
2017-04-21 10:35:06 -07:00
|
|
|
include $(PROJECT_DIR)/hw_layer/hw_layer.mk
|
2019-03-12 07:12:37 -07:00
|
|
|
include $(PROJECT_DIR)/hw_layer/drivers/drivers.mk
|
2019-02-01 20:16:34 -08:00
|
|
|
include $(PROJECT_DIR)/hw_layer/sensors/sensors.mk
|
2019-11-19 17:05:12 -08:00
|
|
|
include $(PROJECT_DIR)/util/util.mk
|
2020-04-05 06:10:08 -07:00
|
|
|
include $(PROJECT_DIR)/init/init.mk
|
2021-05-06 07:04:21 -07:00
|
|
|
include $(UNIT_TESTS_DIR)/test.mk
|
|
|
|
include $(UNIT_TESTS_DIR)/tests/tests.mk
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
|
|
|
# setting.
|
2021-04-28 19:41:25 -07:00
|
|
|
CSRC = $(ALLCSRC) \
|
|
|
|
$(UTILSRC) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(CONTROLLERS_ALGO_SRC) \
|
|
|
|
$(CONTROLLERS_CORE_SRC) \
|
|
|
|
$(CONTROLLERS_MATH_SRC) \
|
|
|
|
$(CONTROLLERS_SENSORS_SRC) \
|
|
|
|
$(ENGINES_SRC) \
|
2019-03-12 07:12:37 -07:00
|
|
|
$(HW_LAYER_DRIVERS_CORE) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(TEST_SRC_C)
|
|
|
|
|
|
|
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
|
|
|
# setting.
|
2021-04-28 19:41:25 -07:00
|
|
|
CPPSRC = $(ALLCPPSRC) \
|
|
|
|
$(UTILSRC_CPP) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(CONTROLLERS_ALGO_SRC_CPP) \
|
|
|
|
$(TRIGGER_DECODERS_SRC_CPP) \
|
|
|
|
$(ENGINES_SRC_CPP) \
|
2019-04-09 20:01:45 -07:00
|
|
|
$(CONTROLLERS_SRC_CPP) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(CONTROLLERS_CORE_SRC_CPP) \
|
|
|
|
$(CONTROLLERS_MATH_SRC_CPP) \
|
|
|
|
$(CONTROLLERS_SENSORS_SRC_CPP) \
|
2019-06-15 13:43:30 -07:00
|
|
|
$(FRAMEWORK_SRC_CPP) \
|
|
|
|
$(TESTS_SRC_CPP) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(SYSTEMSRC_CPP) \
|
2019-01-03 21:16:08 -08:00
|
|
|
$(HW_LAYER_EMS_CPP) \
|
2020-11-15 08:55:26 -08:00
|
|
|
$(TUNERSTUDIO_SRC_CPP) \
|
2019-02-01 20:16:34 -08:00
|
|
|
$(HW_SENSORS_SRC) \
|
2017-11-25 22:17:37 -08:00
|
|
|
$(TRIGGER_SRC_CPP) \
|
2020-04-05 06:10:08 -07:00
|
|
|
$(INIT_SRC_CPP) \
|
2020-07-19 18:27:28 -07:00
|
|
|
$(PROJECT_DIR)/../unit_tests/logicdata.cpp \
|
2021-04-04 19:41:38 -07:00
|
|
|
$(DEVELOPMENT_DIR)/engine_sniffer.cpp \
|
2020-05-17 12:56:37 -07:00
|
|
|
$(PROJECT_DIR)/../unit_tests/main.cpp \
|
2021-05-07 14:43:24 -07:00
|
|
|
$(PROJECT_DIR)/../unit_tests/global_mocks.cpp \
|
2020-07-19 19:41:34 -07:00
|
|
|
$(PROJECT_DIR)/console/binary/tooth_logger.cpp \
|
2020-05-17 12:56:37 -07:00
|
|
|
$(PROJECT_DIR)/console/binary_log/log_field.cpp \
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2021-05-06 07:09:18 -07:00
|
|
|
INCDIR = $(UNIT_TESTS_DIR) \
|
2021-04-28 19:41:25 -07:00
|
|
|
$(ALLINC) \
|
2019-03-31 13:33:16 -07:00
|
|
|
$(UTIL_INC) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(PROJECT_DIR)/config/engines \
|
2019-04-04 22:41:24 -07:00
|
|
|
$(CONTROLLERS_INC) \
|
2020-05-25 10:42:55 -07:00
|
|
|
$(CONSOLE_INC) \
|
2019-11-19 17:05:12 -08:00
|
|
|
$(DEVELOPMENT_DIR) \
|
2020-08-02 17:55:27 -07:00
|
|
|
$(PROJECT_DIR)/ext_algo \
|
|
|
|
$(PROJECT_DIR)/init/ \
|
2019-02-03 18:19:26 -08:00
|
|
|
$(PROJECT_DIR)/hw_layer/algo \
|
2020-08-02 17:52:31 -07:00
|
|
|
$(HW_LAYER_INC) \
|
|
|
|
$(HW_SENSORS_INC) \
|
2019-03-12 07:12:37 -07:00
|
|
|
$(HW_LAYER_DRIVERS_INC) \
|
2021-05-06 07:04:21 -07:00
|
|
|
$(UNIT_TESTS_DIR)/test_data_structures \
|
2021-05-06 07:09:18 -07:00
|
|
|
$(UNIT_TESTS_DIR)/tests \
|
|
|
|
$(UNIT_TESTS_DIR)/tests/sensor \
|
|
|
|
$(UNIT_TESTS_DIR)/test_basic_math
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
|
2021-05-06 13:33:10 -07:00
|
|
|
include $(UNIT_TESTS_DIR)/unit_test_rules.mk
|