mirror of https://github.com/rusefi/rusefi-1.git
84 lines
2.4 KiB
Makefile
84 lines
2.4 KiB
Makefile
##############################################################################
|
|
# Build global options
|
|
# NOTE: Can be overridden externally.
|
|
#
|
|
|
|
PROJECT_DIR = ../firmware
|
|
UNIT_TESTS_DIR=$(PROJECT_DIR)/../unit_tests
|
|
|
|
# Imported source files and paths
|
|
include $(PROJECT_DIR)/config/engines/engines.mk
|
|
include $(PROJECT_DIR)/controllers/controllers.mk
|
|
include $(PROJECT_DIR)/development/development.mk
|
|
include $(PROJECT_DIR)/console/console.mk
|
|
include $(PROJECT_DIR)/console/binary/tunerstudio.mk
|
|
include $(PROJECT_DIR)/hw_layer/hw_layer.mk
|
|
include $(PROJECT_DIR)/hw_layer/drivers/drivers.mk
|
|
include $(PROJECT_DIR)/hw_layer/sensors/sensors.mk
|
|
include $(PROJECT_DIR)/util/util.mk
|
|
include $(PROJECT_DIR)/init/init.mk
|
|
include $(UNIT_TESTS_DIR)/test.mk
|
|
include $(UNIT_TESTS_DIR)/tests/tests.mk
|
|
include $(PROJECT_DIR)/../unit_tests/tests/util/test_util.mk
|
|
|
|
|
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
|
# setting.
|
|
CSRC += $(ALLCSRC) \
|
|
$(UTILSRC) \
|
|
$(CONTROLLERS_ALGO_SRC) \
|
|
$(CONTROLLERS_CORE_SRC) \
|
|
$(CONTROLLERS_MATH_SRC) \
|
|
$(CONTROLLERS_SENSORS_SRC) \
|
|
$(ENGINES_SRC) \
|
|
$(HW_LAYER_DRIVERS_CORE) \
|
|
$(TEST_SRC_C)
|
|
|
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
|
# setting.
|
|
CPPSRC += $(ALLCPPSRC) \
|
|
$(UTILSRC_CPP) \
|
|
$(CONTROLLERS_ALGO_SRC_CPP) \
|
|
$(TRIGGER_DECODERS_SRC_CPP) \
|
|
$(ENGINES_SRC_CPP) \
|
|
$(CONTROLLERS_SRC_CPP) \
|
|
$(CONTROLLERS_CORE_SRC_CPP) \
|
|
$(CONTROLLERS_MATH_SRC_CPP) \
|
|
$(CONTROLLERS_SENSORS_SRC_CPP) \
|
|
$(FRAMEWORK_SRC_CPP) \
|
|
$(TESTS_SRC_CPP) \
|
|
$(SYSTEMSRC_CPP) \
|
|
$(HW_LAYER_EMS_CPP) \
|
|
$(TUNERSTUDIO_SRC_CPP) \
|
|
$(HW_SENSORS_CPP) \
|
|
$(TRIGGER_SRC_CPP) \
|
|
$(INIT_SRC_CPP) \
|
|
$(PROJECT_DIR)/../unit_tests/logicdata.cpp \
|
|
$(DEVELOPMENT_DIR)/engine_sniffer.cpp \
|
|
$(PROJECT_DIR)/../unit_tests/main.cpp \
|
|
$(PROJECT_DIR)/../unit_tests/global_mocks.cpp \
|
|
$(PROJECT_DIR)/console/binary/tooth_logger.cpp \
|
|
$(PROJECT_DIR)/console/binary_log/log_field.cpp \
|
|
|
|
INCDIR += $(UNIT_TESTS_DIR) \
|
|
$(ALLINC) \
|
|
$(UTIL_INC) \
|
|
$(PROJECT_DIR)/config/engines \
|
|
$(CONTROLLERS_INC) \
|
|
$(CONSOLE_INC) \
|
|
$(DEVELOPMENT_DIR) \
|
|
$(PROJECT_DIR)/ext_algo \
|
|
$(PROJECT_DIR)/init/ \
|
|
$(PROJECT_DIR)/hw_layer/algo \
|
|
$(HW_LAYER_INC) \
|
|
$(HW_SENSORS_INC) \
|
|
$(HW_LAYER_DRIVERS_INC) \
|
|
$(UNIT_TESTS_DIR)/test_data_structures \
|
|
$(UNIT_TESTS_DIR)/chibios-mock \
|
|
$(UNIT_TESTS_DIR)/tests \
|
|
$(UNIT_TESTS_DIR)/tests/sensor \
|
|
$(UNIT_TESTS_DIR)/test_basic_math
|
|
|
|
|
|
include $(UNIT_TESTS_DIR)/unit_test_rules.mk
|