-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (44 loc) · 1.12 KB
/
Makefile
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
include ../../build_system/make/make.mk
INC += \
inc \
$(TOP)/hw \
# board specfic includes
INC += \
board/inc \
#driver specific src
INC += \
drivers/inc \
#####################################
# ST Cube MX Audio
INC += \
lib/STM32_Audio/Addons/SRC236/Inc \
lib/STM32_Audio/Addons/Common/Inc \
lib/STM32_Audio/Addons/SRC441/Inc \
LIBDIR += \
-Llib/STM32_Audio/Addons/SRC236/Lib/ \
-Llib/STM32_Audio/Addons/SRC441/Lib \
LIBS += \
-lSRC236_CM4_GCC \
-lSRC441_CM4_GCC \
#-lSRC236_32b_CM4_GCC \
-lSRC441_32b_CM4_GCC \
#####################################
#####################################
# libresample
# INC += \
lib/libresample/include/ \
lib/libresample/src/ \
# LIBDIR += \
-Llib/libresample/ \
# LIBRESAMPLE_SRC = $(wildcard lib/libresample/src/*.c)
# LIBS += \
# -lresample \
#####################################
# board specfic source
EXAMPLE_SOURCE += $(wildcard src/*.c)
# Example source
EXAMPLE_SOURCE += $(wildcard board/src/*.c)
EXAMPLE_SOURCE += $(wildcard drivers/src/*.c)
EXAMPLE_SOURCE += $(LIBRESAMPLE_SRC)
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
include ../../build_system/make/rules.mk