about summary refs log tree commit diff
path: root/mk/lib.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T17·47+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T17·47+0100
commit0202ce6b94f287f70a6723473c73a4c7f135dae4 (patch)
treeb87dc49e456c3e9a2cb335b94ac22542a875be32 /mk/lib.mk
parent9285f0aa2b44427afef7c50f0efae8f74307a7a5 (diff)
Add support for ‘make installcheck’
Diffstat (limited to 'mk/lib.mk')
-rw-r--r--mk/lib.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/lib.mk b/mk/lib.mk
index 107a5af3f75e..60b6815e9e2e 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -17,6 +17,8 @@ noinst_SCRIPTS :=
 
 
 # Pass -fPIC if we're building dynamic libraries.
+BUILD_SHARED_LIBS = 1
+
 ifeq ($(BUILD_SHARED_LIBS), 1)
   GLOBAL_CFLAGS += -fPIC
   GLOBAL_CXXFLAGS += -fPIC
@@ -25,6 +27,8 @@ endif
 
 
 # Pass -g if we want debug info.
+BUILD_DEBUG = 1
+
 ifeq ($(BUILD_DEBUG), 1)
   GLOBAL_CFLAGS += -g
   GLOBAL_CXXFLAGS += -g
@@ -38,6 +42,7 @@ include mk/libraries.mk
 include mk/programs.mk
 include mk/patterns.mk
 include mk/templates.mk
+include mk/tests.mk
 
 
 # Include all sub-Makefiles.
@@ -56,6 +61,7 @@ $(foreach script, $(bin_SCRIPTS), $(eval $(call install-program-in,$(script),$(b
 $(foreach script, $(bin_SCRIPTS), $(eval programs_list += $(script)))
 $(foreach script, $(noinst_SCRIPTS), $(eval programs_list += $(script)))
 $(foreach template, $(template_files), $(eval $(call instantiate-template,$(template))))
+$(foreach test, $(INSTALL_TESTS), $(eval $(call run-install-test,$(test))))
 
 
 all: $(programs_list) $(libs_list)