forked from cccc/U23_2013_examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtarget.mak
47 lines (36 loc) · 919 Bytes
/
target.mak
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
# Target file name.
TARGET = libsystem
# List C source files here.
CCSOURCES = NewlibSyscalls.c \
SysTick.c \
Debug.c \
USART.c \
Random.c \
Audio.c \
Synth.c \
LED.c \
Accelerometer.c \
Init.c
# List C++ source files here.
CXXSOURCES =
# List Files to be assembled here
ASOURCES =
# C compiler flags
CFLAGS = -std=gnu99 -ggdb -O0 -Werror -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
CFLAGS += -fdata-sections -ffunction-sections
# C++ compiler flags
CXXFLAGS =
# GAS flags
ASFLAGS =
# Additional include paths to consider
INCLUDES = $(SELF_DIR)/$(TARGET)/inc \
$(SELF_DIR)/libCMSIS/CoreSupport \
$(SELF_DIR)/libCMSIS/DeviceSupport/ST/STM32F4xx \
$(SELF_DIR)/libstm32f4xx/inc
# Folder for object files
OBJDIR = obj
# Folder for sourcecode
SRCDIR = src
# Additional defines
DEFINES :=
include $(ROOT)/build/targets/lib.mak