summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorngkaho1234 <ngkaho1234@gmail.com>2016-01-23 03:28:20 +0000
committerngkaho1234 <ngkaho1234@gmail.com>2016-01-23 05:48:11 +0000
commite1bbe336d1736703a6b1565cfa5565fb276643a1 (patch)
tree1e98d91cbc320af754fea1c15de028eec9853197 /Makefile
parent2df08d93f8dda03f5cf3bb9c6928626540b9ef32 (diff)
Add 'lib_only' build target.
Under this target, only a basic library will be built.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 023797b..1a5ae08 100644
--- a/Makefile
+++ b/Makefile
@@ -77,8 +77,13 @@ arm-sim:
cd build_arm-sim && cmake -G"Unix Makefiles" \
$(COMMON_DEFINITIONS) \
-DCMAKE_TOOLCHAIN_FILE=../toolchain/arm-sim.cmake ..
-
-all: generic bf518 cortex-m3 cortex-m4 generic
+
+lib_only:
+ rm -R -f build_lib_only
+ mkdir build_lib_only
+ cd build_lib_only && cmake $(COMMON_DEFINITIONS) -DLIB_ONLY=TRUE ..
+
+all: generic bf518 cortex-m3 cortex-m4 lib_only
clean: