-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 1.06 KB
/
Makefile
File metadata and controls
43 lines (33 loc) · 1.06 KB
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
BOARD := BOARD_PCA10040
SLNO := 682073614
NO_NFC_REQD := CONFIG_NFCT_PINS_AS_GPIOS
PINRESET_REQD := CONFIG_GPIO_AS_PINRESET
DEBUGGER := JLINK
SD_USED := blank
SDK_DIR = ../../SDK_components
DOC_DIR = ../../doc
PLATFORM_DIR = ../../platform
CODEBASE_DIR = ../../codebase
INCLUDEDIRS = .
INCLUDEDIRS += $(PLATFORM_DIR)
INCLUDEDIRS += $(CODEBASE_DIR)/hal/
INCLUDEDIRS += $(SDK_DIR)
INCLUDEDIRS += $(CODEBASE_DIR)/nrf_core/
INCLUDEDIRS += $(SDK_DIR)/toolchain/cmsis/include/
INCLUDEDIRS += $(CODEBASE_DIR)/peripheral_modules/
INCLUDEDIRS += $(CODEBASE_DIR)/util/
C_SRC_DIRS = .
C_SRC_DIRS = $(CODEBASE_DIR)/peripheral_modules/
C_SRC = main.c
C_SRC += timer_driver.c
C_SRC += uart_printf.c
C_SRC += tinyprintf.c
#Gets the name of the application folder
APPLN = $(shell basename $(PWD))
CFLAGS_APP = -DDEBUG
CFLAGS_APP += -D$(NO_NFC_REQD)
CFLAGS_APP += -D$(PINRESET_REQD)
#Lower case of BOARD
BOARD_HEADER = $(shell echo $(BOARD) | tr A-Z a-z)
include $(PLATFORM_DIR)/Makefile.$(BOARD_HEADER)
include ../Makefile.common