diff options
author | sprhawk <hongbo@yang.me> | 2014-08-29 11:20:24 +0800 |
---|---|---|
committer | sprhawk <hongbo@yang.me> | 2014-08-29 11:20:24 +0800 |
commit | 0352e00c2bd6cc312631e1fc40fedae9885d0372 (patch) | |
tree | 00e8797703ec803f8ddaf1abe25a1977ca2379e0 | |
parent | e8558f676dac47ec78bb81bf4da33984f495d10c (diff) | |
download | nrf51822-posix-build-scripts-0352e00c2bd6cc312631e1fc40fedae9885d0372.tar.gz nrf51822-posix-build-scripts-0352e00c2bd6cc312631e1fc40fedae9885d0372.tar.bz2 nrf51822-posix-build-scripts-0352e00c2bd6cc312631e1fc40fedae9885d0372.tar.xz nrf51822-posix-build-scripts-0352e00c2bd6cc312631e1fc40fedae9885d0372.zip |
updated include headers and sources paths
-rw-r--r-- | Makefile.common | 28 | ||||
-rw-r--r-- | Makefile.template | 66 |
2 files changed, 94 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common index 14b5a73..7f8615a 100644 --- a/Makefile.common +++ b/Makefile.common @@ -69,7 +69,35 @@ ASMFLAGS += -x assembler-with-cpp INCLUDEPATHS += -I"$(SDK_PATH)Include"
INCLUDEPATHS += -I"$(SDK_PATH)Include/gcc"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/console"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/nrf_assert"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/sdk"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/app_common"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/sd_common"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/ble"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/ble/ble_services"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/ble/device_manager"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/ble/device_manager/experimental"
INCLUDEPATHS += -I"$(SDK_PATH)Include/ext_sensors"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/common"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/common/transport"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/common/struct_ser"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/connectivity"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/connectivity/codecs"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/application/transport"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/application/codecs/common"
+INCLUDEPATHS += -I"$(SDK_PATH)Include/serialization/application/codecs/s110/serializers"
+
+ifeq ($(USE_SOFTDEVICE), S110)
+ INCLUDEPATHS += -I"$(SDK_PATH)Include/s110"
+else
+ ifeq ($(USE_SOFTDEVICE), S210)
+ INCLUDEPATHS += -I"$(SDK_PATH)Include/s120"
+ else
+ INCLUDEPATHS += -I"$(SDK_PATH)Include/sdk_soc"
+ endif
+endif
# Sorting removes duplicates
BUILD_DIRECTORIES := $(sort $(OBJECT_DIRECTORY) $(OUTPUT_BINARY_DIRECTORY) $(LISTING_DIRECTORY) )
diff --git a/Makefile.template b/Makefile.template index 97c9c29..669cc18 100644 --- a/Makefile.template +++ b/Makefile.template @@ -15,6 +15,72 @@ BUILD_SCRIPTS_PATH = $(HOME)Developer/prjs/embeded/prjs/nrf51822/build_scripts/ TEMPLATE_PATH = $(BUILD_SCRIPTS_PATH)
C_SOURCE_FILES += main.c
+# 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
+
+# simple_uart
+C_SOURCE_FILES += simple_uart.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
|