From 94dd5cb4a034a2cb43f9a866c9a6d6d76dfd4ba0 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 2 Jul 2017 18:12:10 +1000 Subject: [PATCH] Makefile: Add debug-static-all target Also make debug-all target statically link all internal libraries. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f5ee5773..4f6e6465f 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,11 @@ debug-test: debug-all: mkdir -p build/debug - cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) + cd build/debug && cmake -D BUILD_TESTS=ON -D BUILD_SHARED_LIBS=OFF -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) + +debug-static-all: + mkdir -p build/debug + cd build/debug && cmake -D BUILD_TESTS=ON -D STATIC=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) cmake-release: mkdir -p build/release