diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..47155d4 --- /dev/null +++ b/Makefile @@ -0,0 +1,61 @@ +FLASHER ?= jlink +BOARD := BOARD_PCA10028 + +#TARGET_CHIP := NRF51822_QFAA_CA +#TARGET_CHIP := NRF51422_QFAC_AB +# nrf51442 - qfac +#DEVICE_VARIANT := xxac +USE_SOFTDEVICE = S110 + +ifeq ($(BOARD),BOARD_PCA10028) +TARGET_CHIP := NRF51422_QFAC_AB +DEVICE_VARIANT := xxac +else ifeq ($(BOARD),BOARD_PCA10031) +TARGET_CHIP := NRF51422_QFAC_AB +DEVICE_VARIANT := xxac +endif + +CFLAGS += -DBLE_STACK_SUPPORT_REQD +CFLAGS += -DSOFTDEVICE_PRESENT + +CFLAGS += -D$(USE_SOFTDEVICE) + +debug: CFLAGS += -DSM_DEBUG +debug: CFLAGS += -DENABLE_DEBUG_LOG_SUPPORT +debug: CFLAGS += -DDM_DISABLE_LOGS + +C_SOURCE_FILES += main.c +C_SOURCE_FILES += phone_remote.c +C_SOURCE_FILES += LiquidCrystal.c + +C_SOURCE_FILES += nrf_assert.c +C_SOURCE_FILES += nrf_delay.c +C_SOURCE_FILES += retarget.c +C_SOURCE_FILES += ble_sensorsim.c +C_SOURCE_FILES += bsp.c +C_SOURCE_FILES += app_button.c +C_SOURCE_FILES += app_error.c +C_SOURCE_FILES += app_timer.c +C_SOURCE_FILES += app_gpiote.c +#C_SOURCE_FILES += app_scheduler.c +C_SOURCE_FILES += app_trace.c +C_SOURCE_FILES += app_fifo.c +C_SOURCE_FILES += app_uart_fifo.c +C_SOURCE_FILES += pstorage.c +#C_SOURCE_FILES += ble_hrs.c +#C_SOURCE_FILES += ble_dis.c +#C_SOURCE_FILES += ble_bas.c +C_SOURCE_FILES += ble_conn_params.c +C_SOURCE_FILES += ble_advdata.c +C_SOURCE_FILES += ble_srv_common.c +C_SOURCE_FILES += device_manager_peripheral.c +C_SOURCE_FILES += softdevice_handler.c + +PROJECT_NAME := phone_remote_nrf51 +SDK_SOURCE_PATH = $(SDK_PATH)/components +SOFTDEVICE_HEX_PATH = $(HOME)/opt/nrf-sdk/s110/s110_nrf51822_7.1.0_softdevice.hex + +all: debug + +include ~/.nrf51822-posix-build-scripts.mk +include $(TEMPLATE_PATH)/Makefile.common |