-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsource.mk
58 lines (47 loc) · 2.25 KB
/
source.mk
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
SPEED_OPTIMISED_SRC := ""
SIZE_OPTIMISED_SRC := ""
NONE_OPTIMISED_SRC := ""
DEBUG_OPTIMISED_SRC := ""
#-------------------------------------------------------------------------------
# Source Files
#-------------------------------------------------------------------------------
SOURCES = \
$(wildcard $(BASE_DIR)/Core/Src/*.c) \
$(wildcard $(BASE_DIR)/SilverLite/*.c) \
$(wildcard $(BASE_DIR)/SilverLite/*.cpp) \
$(wildcard $(BASE_DIR)/SilverLite/rx_afhds2a/*.c) \
$(wildcard $(BASE_DIR)/SilverLite/rx_afhds2a/*.cpp) \
#-------------------------------------------------------------------------------
# Include directories
#-------------------------------------------------------------------------------
INCLUDE_DIRS=\
$(BASE_DIR)/Core/Src \
$(BASE_DIR)/SilverLite \
#-------------------------------------------------------------------------------
# Defines
#-------------------------------------------------------------------------------
DEFINES=\
$(TARGET) \
USE_SILVERLITE \
#-------------------------------------------------------------------------------
# F3 USB support
#-------------------------------------------------------------------------------
ifeq ($(IS_F3_TARGET), 1)
SOURCES += \
$(wildcard $(BASE_DIR)/Targets/F3_USB_Support/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/*.c) \
$(wildcard $(BASE_DIR)/Targets/F3_USB_Support/Middlewares/ST/STM32_USB_Device_Library/Core/Src/*.c) \
$(wildcard $(BASE_DIR)/Targets/F3_USB_Support/USB_DEVICE/App/*.c) \
$(wildcard $(BASE_DIR)/Targets/F3_USB_Support/USB_DEVICE/Target/*.c)
INCLUDE_DIRS+=\
$(BASE_DIR)/Targets/F3_USB_Support/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc \
$(BASE_DIR)/Targets/F3_USB_Support/Middlewares/ST/STM32_USB_Device_Library/Core/Inc \
$(BASE_DIR)/Targets/F3_USB_Support/USB_DEVICE/App \
$(BASE_DIR)/Targets/F3_USB_Support/USB_DEVICE/Target
endif
#-------------------------------------------------------------------------------
# Source file groups
#-------------------------------------------------------------------------------
SPEED_OPTIMISED_SRC := $(SPEED_OPTIMISED_SRC) \
SIZE_OPTIMISED_SRC := $(SIZE_OPTIMISED_SRC) \
NONE_OPTIMISED_SRC := $(NONE_OPTIMISED_SRC) \
DEBUG_OPTIMISED_SRC := $(DEBUG_OPTIMISED_SRC) \