-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile.template
113 lines (87 loc) · 2.73 KB
/
Makefile.template
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# build scripts come from https://github.com/sprhawk/nrf51822-macosx-build-scripts
# modifiy Makefile.config.template from build scripts to adapt your environment
include ../Makefile.config
TARGET_CHIP := NRF51822_QFAA_CA
BOARD := BOARD_PCA10001
#Uncomment correct line if you have s110 programmed on the chip.
DEVICE_VARIANT := xxaa
#DEVICE_VARIANT := xxab
USE_SOFTDEVICE := S110
#USE_SOFTDEVICE := S110-v6
#USE_SOFTDEVICE := S120
CFLAGS += -DBLE_STACK_SUPPORT_REQD
# debug: CFLAGS+=-DENABLE_DEBUG_LOG_SUPPORT
C_SOURCE_FILES += main.c
ifeq ($(MAKECMDGOALS),debug) # template for conditional rules
# C_SOURCE_FILES += uart.c
endif
# C_SOURCE_FILES += softdevice_handler.c # need custome defined assert_nrf_callback()
# nrf_delay
# C_SOURCE_FILES += nrf_delay.c
# nrf_assert
# C_SOURCE_FILES += nrf_assert.c
# nrf_ecb
# C_SOURCE_FILES += nrf_ecb.c
# nrf_nvmc
# C_SOURCE_FILES += nrf_nvmc.c
# nrf_soc
# C_SOURCE_FILES += nrf_soc.c
# spi_master
# C_SOURCE_FILES += spi_master.c
# spi_slave
# C_SOURCE_FILES += spi_slave.c
# twi_master
# C_SOURCE_FILES += twi_hw_master.c
# C_SOURCE_FILES += twi_sw_master.c
# simple_uart
# C_SOURCE_FILES += simple_uart.c
# sd_common
# C_SOURCE_FILES += softdevice_handler.c
# app_common
# C_SOURCE_FILES += app_button.c
# C_SOURCE_FILES += app_fifo.c
# C_SOURCE_FILES += app_gpiote.c
# C_SOURCE_FILES += app_scheduler.c
# C_SOURCE_FILES += app_timer.c
# C_SOURCE_FILES += app_trace.c
# C_SOURCE_FILES += app_uart.c
# C_SOURCE_FILES += app_uart_fifo.c
# C_SOURCE_FILES += crc16.c
# C_SOURCE_FILES += hci_mem_pool.c
# C_SOURCE_FILES += hci_slip.c
# C_SOURCE_FILES += hci_transport.c
# C_SOURCE_FILES += pstorage.c # need pstorage_platform.h
# ble
# C_SOURCE_FILES += ble_advdata.c
# C_SOURCE_FILES += ble_advdata_parser.c
# C_SOURCE_FILES += ble_conn_params.c
# C_SOURCE_FILES += ble_debug_assert_handler.c
# C_SOURCE_FILES += ble_dtm.c
# C_SOURCE_FILES += ble_error_log.c
# C_SOURCE_FILES += ble_flash.c
# C_SOURCE_FILES += ble_racp.c
# C_SOURCE_FILES += ble_radio_notification.c
# C_SOURCE_FILES += ble_sensorsim.c
# ble/ble_services
# C_SOURCE_FILES += ble_ans_c.c
# C_SOURCE_FILES += ble_bas.c
# C_SOURCE_FILES += ble_bps.c
# C_SOURCE_FILES += ble_cscs.c
# C_SOURCE_FILES += ble_dfu.c
# C_SOURCE_FILES += ble_dis.c
# C_SOURCE_FILES += ble_gls.c
# C_SOURCE_FILES += ble_gls_db.c
# C_SOURCE_FILES += ble_hids.c
# C_SOURCE_FILES += ble_hrs.c
# C_SOURCE_FILES += ble_hts.c
# C_SOURCE_FILES += ble_ias.c
# C_SOURCE_FILES += ble_ias_c.c
# C_SOURCE_FILES += ble_lls.c
# C_SOURCE_FILES += ble_rscs.c
# C_SOURCE_FILES += ble_sc_ctrlpt.c
# C_SOURCE_FILES += ble_srv_common.c
# C_SOURCE_FILES += ble_tps.c
# ble/device_manager/experimental
# C_SOURCE_FILES += device_manager_central.c
OUTPUT_FILENAME := main
include $(TEMPLATE_PATH)/Makefile.common