-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
executable file
·73 lines (63 loc) · 1.94 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
BINARYNAME = main
BUILDDIR = build
OPTFLAG = -O3
EXTLIBDIR = ../../third-party
SHAREDDIR = ../../shared
STM32HALDIR = $(EXTLIBDIR)/STM32MP1xx_HAL_Driver
mdrivlibdir = lib/mdrivlib
SOURCES = main.cc \
mmu_ca7.c \
startup.s \
lib/util/math_tables.cc \
drv/i2c.cc \
drv/pin.cc \
drv/codec_CS42L51.cc \
drv/sai_tdm.cc \
drv/cycle_counter.cc \
drv/hal_handlers.cc \
drv/interrupt_handler.cc \
drv/irq_ctrl.c \
$(SHAREDDIR)/system/system_ca7.c \
$(SHAREDDIR)/system/libc_stub.c \
$(SHAREDDIR)/system/libcpp_stub.cc \
$(SHAREDDIR)/system/new.cc \
$(STM32HALDIR)/Src/stm32mp1xx_hal.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_cortex.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_dma.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_dma_ex.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_i2c.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_i2c_ex.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_sai.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_rcc.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_rcc_ex.c \
$(EXTLIBDIR)/DaisySP/Source/Control/adenv.cpp \
$(EXTLIBDIR)/DaisySP/Source/Effects/reverbsc.cpp \
$(EXTLIBDIR)/DaisySP/Source/Synthesis/oscillator.cpp \
$(EXTLIBDIR)/DaisySP/Source/Utility/metro.cpp \
INCLUDES = -I. \
-I.. \
-Ilib \
-Iutil \
-Idrv \
-I$(SHAREDDIR) \
-I$(SHAREDDIR)/drivers \
-I$(STM32HALDIR)/Inc \
-I$(EXTLIBDIR)/gcem/include \
-I$(EXTLIBDIR)/CMSIS/Core_A/Include \
-I$(EXTLIBDIR)/CMSIS/Device/ST/STM32MP1xx/Include \
-I$(EXTLIBDIR)/DaisySP/Source \
-I$(EXTLIBDIR)/DaisySP/Source/Utility \
EXTRACFLAGS = -DUSE_HAL_DRIVER \
-DUSE_FULL_LL_DRIVER \
-DSTM32MP157Cxx \
-DSTM32MP1 \
-DCORE_CA7 \
-mfpu=neon-vfpv4 \
-mfloat-abi=hard \
-mthumb-interwork \
-mtune=cortex-a7 \
-mno-unaligned-access \
-funsafe-math-optimizations \
-mvectorize-with-neon-quad \
EXTRACXXFLAGS = \
include $(SHAREDDIR)/makefile-common.mk