-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.rule
45 lines (38 loc) · 1.09 KB
/
makefile.rule
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
BIN = exercise1-1
OUT = build
TARGET = src/exercise1/$(BIN).c
HAL = drivers/hal
STARTUP = startup
FREERTOS = drivers/freertos
SYSTEMVIEW = drivers/systemview
RTT = drivers/rtt
CONFIG = drivers/config
PATCH = drivers/patch
C_SRCS = \
$(HAL)/usart.c \
$(STARTUP)/startup.c \
$(FREERTOS)/portable/GCC/ARM_CM4F/port.c \
$(FREERTOS)/portable/MemMang/heap_1.c \
$(wildcard $(FREERTOS)/*.c) \
$(SYSTEMVIEW)/SYSVIEW/SEGGER_SYSVIEW.c \
$(SYSTEMVIEW)/Sample/FreeRTOSV10.4/SEGGER_SYSVIEW_FreeRTOS.c \
$(SYSTEMVIEW)/Sample/FreeRTOSV10.4/Config/Cortex-M/SEGGER_SYSVIEW_Config_FreeRTOS.c \
$(RTT)/RTT/SEGGER_RTT_printf.c \
$(RTT)/RTT/SEGGER_RTT.c \
$(RTT)/Syscalls/SEGGER_RTT_Syscalls_GCC.c \
$(TARGET)
ASM_SRCS = $(RTT)/RTT/SEGGER_RTT_ASM_ARMv7M.S
C_INCS = \
-I$(HAL) \
-I$(FREERTOS)/portable/GCC/ARM_CM4F \
-I$(FREERTOS)/include \
-I$(SYSTEMVIEW)/Config \
-I$(SYSTEMVIEW)/SEGGER \
-I$(SYSTEMVIEW)/SYSVIEW \
-I$(SYSTEMVIEW)/Sample/FreeRTOSV10.4 \
-I$(RTT)/Config \
-I$(RTT)/RTT \
-I$(CONFIG)
LDSCRIPT = $(STARTUP)/link.ld
FREERTOS_PATCH = $(PATCH)/freertos-patch.diff
SYSTEMVIEW_PATCH = $(PATCH)/systemview-patch.diff