summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-05 15:29:42 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:41 -0500
commit31ed663b2582ac55762ced2a44462ba2f448460e (patch)
treee362178c36da9b09cb538b72005c778c18ddd0d4 /project
parentf89e82dfe9395298f6b4dadf45d4e57f35819dd4 (diff)
downloadmdso-31ed663b2582ac55762ced2a44462ba2f448460e.tar.bz2
mdso-31ed663b2582ac55762ced2a44462ba2f448460e.tar.xz
build system: Makefile.in, custom.mk: added --all-[static|shared] support.
Diffstat (limited to 'project')
-rw-r--r--project/custom.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/project/custom.mk b/project/custom.mk
index 16ff41d..e58f88c 100644
--- a/project/custom.mk
+++ b/project/custom.mk
@@ -5,3 +5,27 @@ endif
ifeq ($(OS_BINFMT),ELF)
include $(PROJECT_DIR)/sysinfo/os/elf.mk
endif
+
+
+
+ifeq ($(ALL_STATIC),yes)
+
+package-app: static-app
+app: PACKAGE_APP = $(STATIC_APP)
+app-tag: PACKAGE_APP = $(STATIC_APP)
+
+
+else ifeq ($(ALL_SHARED),yes)
+
+package-app: shared-app
+app: PACKAGE_APP = $(SHARED_APP)
+app-tag: PACKAGE_APP = $(SHARED_APP)
+
+
+else
+
+package-app: default-app
+app: PACKAGE_APP = $(DEFAULT_APP)
+app-tag: PACKAGE_APP = $(DEFAULT_APP)
+
+endif