aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsprhawk <hongbo@yang.me>2014-09-01 21:50:45 +0800
committersprhawk <hongbo@yang.me>2014-09-01 21:50:45 +0800
commit90779256e00cc6daff35cc768238a5bdaa21a151 (patch)
treed5208a49e43e8985c33418a8e4c747548109e094
parent1b81bd4834fec294a1e9983cf6e2570cbffde690 (diff)
downloadnrf51822-posix-build-scripts-90779256e00cc6daff35cc768238a5bdaa21a151.tar.gz
nrf51822-posix-build-scripts-90779256e00cc6daff35cc768238a5bdaa21a151.tar.bz2
nrf51822-posix-build-scripts-90779256e00cc6daff35cc768238a5bdaa21a151.tar.xz
nrf51822-posix-build-scripts-90779256e00cc6daff35cc768238a5bdaa21a151.zip
added a template for conditional rule
-rw-r--r--Makefile.template4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.template b/Makefile.template
index c5f79d3..5d57cbd 100644
--- a/Makefile.template
+++ b/Makefile.template
@@ -18,6 +18,10 @@ TEMPLATE_PATH = $(BUILD_SCRIPTS_PATH)
# 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