forked from rusefi/rusefi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
90 lines (76 loc) · 2.6 KB
/
Copy pathMakefile
File metadata and controls
90 lines (76 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
##############################################################################
# Build global options
# NOTE: Can be overridden externally.
#
MAKEFLAGS += -r
# use -j4 unless some value was specified
NUMJOBS=${NUMJOBS:-" -j4 "}
MAKEFLAGS += ${NUMJOBS}
# less disk, more RAM
# MAKEFLAGS += -pipe
PROJECT_DIR = ../firmware
UNIT_TESTS_DIR=$(PROJECT_DIR)/../unit_tests
US_TO_NT_MULTIPLIER = 100
BOARDS_DIR = $(PROJECT_DIR)/config/boards
# Uncomment if you want a lot of debug from SENT decoder
# DDEFS += -DSENT_STATISTIC_COUNTERS=1
# Imported source files and paths
include $(PROJECT_DIR)/console/console.mk
include $(PROJECT_DIR)/console/binary/tunerstudio.mk
include $(UNIT_TESTS_DIR)/test.mk
include $(UNIT_TESTS_DIR)/tests/tests.mk
include $(PROJECT_DIR)/../unit_tests/tests/util/test_util.mk
include $(PROJECT_DIR)/common.mk
include $(PROJECT_DIR)/controllers/modules/modules.mk
ifneq ("$(wildcard $(BOARD_DIR)/board_unit_tests.mk)","")
$(info including $(BOARD_DIR)/board_unit_tests.mk)
# could depend on BOARDS_DIR
include $(BOARD_DIR)/board_unit_tests.mk
else
$(info no board_unit_tests.mk found at $(BOARD_DIR)/board_unit_tests.mk)
endif
include $(PROJECT_DIR)/common_libfirmware.mk
# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CSRC += $(ALLCSRC) \
$(RUSEFI_LIB_C) \
$(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) \
$(BOARDCPPSRC) \
$(HW_LAYER_DRIVERS_CORE_CPP) \
$(FRAMEWORK_SRC_CPP) \
$(TESTS_SRC_CPP) \
$(DEVELOPMENT_DIR)/engine_sniffer.cpp \
$(CONSOLE_COMMON_SRC_CPP) \
$(PROJECT_DIR)/config/boards/hellen/hellen_board_id.cpp \
$(PROJECT_DIR)/hw_layer/drivers/can/can_hw.cpp \
$(PROJECT_DIR)/../unit_tests/logicdata.cpp \
$(PROJECT_DIR)/../unit_tests/logicdata_reader.cpp \
$(PROJECT_DIR)/../unit_tests/test-framework/unit_test_logger.cpp \
$(PROJECT_DIR)/../unit_tests/test-framework/msl_to_csv.cpp \
$(PROJECT_DIR)/../unit_tests/main.cpp \
$(PROJECT_DIR)/../unit_tests/global_mocks.cpp \
$(PROJECT_DIR)/../unit_tests/mocks.cpp \
$(RUSEFI_LIB)/mock/lib-time-mocks.cpp \
$(RUSEFI_LIB_CPP) \
$(MODULES_CPPSRC) \
$(RUSEFI_LIB_CPP_TEST) \
INCDIR += \
$(PCH_DIR) \
$(BOARDINC) \
$(UNIT_TESTS_DIR) \
$(ALLINC) \
$(MODULES_INC) \
$(PROJECT_DIR)/config/boards/hellen \
$(FRAMEWORK_INC) \
$(UNIT_TESTS_DIR)/test_data_structures \
$(UNIT_TESTS_DIR)/chibios-mock \
$(UNIT_TESTS_DIR)/native \
$(UNIT_TESTS_DIR)/tests \
$(UNIT_TESTS_DIR)/tests/sensor \
$(UNIT_TESTS_DIR)/test_basic_math \
$(RUSEFI_LIB_INC) \
include $(UNIT_TESTS_DIR)/unit_test_rules.mk