-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 663 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 663 Bytes
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
PROJECT = sebastion
SHARED_DIR = inc
CXXSTD = -std=c++17
OOCD_INTERFACE = stlink-v2
OOCD_TARGET = stm32f4x
OPENCM3_LIB = opencm3_stm32f4
OPENCM3_DEFS = -DSTM32F4
OPT = -Og -g3
SOURCE_DIR = src
CXXFILES := $(shell find $(SOURCE_DIR) -name '*.cpp')
# TODO - you will need to edit these two lines!
DEVICE = stm32f411ce
# You shouldn't have to edit anything below here.
VPATH += $(SHARED_DIR)
INCLUDES += $(patsubst %,-I%, . $(SHARED_DIR))
CONFIG_DIR = cfg
VPATH += $(CONFIG_DIR)
INCLUDES += $(patsubst %,-I%, . $(CONFIG_DIR))
OPENCM3_DIR = lib/libopencm3
include $(OPENCM3_DIR)/mk/genlink-config.mk
include rules.mk
include $(OPENCM3_DIR)/mk/genlink-rules.mk