summaryrefslogtreecommitdiffhomepage
path: root/sofort/core/flavor.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-31 20:57:15 -0500
committermidipix <writeonce@midipix.org>2018-12-31 21:37:16 -0500
commitde823de7a882ebc2258db4a5dbd44e19aecd8faf (patch)
treed57d1caa67b08b34f49d2c1e4038c9e87b14a148 /sofort/core/flavor.mk
parent18aad45ee53c82c42350f1344ffefd297a1e883a (diff)
downloadperk-de823de7a882ebc2258db4a5dbd44e19aecd8faf.tar.bz2
perk-de823de7a882ebc2258db4a5dbd44e19aecd8faf.tar.xz
build system: sofort: refactored, rearranged using distinct sub-folders.
Diffstat (limited to 'sofort/core/flavor.mk')
-rw-r--r--sofort/core/flavor.mk70
1 files changed, 70 insertions, 0 deletions
diff --git a/sofort/core/flavor.mk b/sofort/core/flavor.mk
new file mode 100644
index 0000000..bd9ab06
--- /dev/null
+++ b/sofort/core/flavor.mk
@@ -0,0 +1,70 @@
+ifneq ($(OS_DSO_EXRULES),)
+include $(PROJECT_DIR)/sofort/exrules/$(OS_DSO_EXRULES).mk
+endif
+
+ifeq ($(DISABLE_STATIC),yes)
+package-static:
+package-install-static:
+else
+package-static: static
+package-install-static: install-static
+endif
+
+ifeq ($(DISABLE_SHARED),yes)
+package-shared:
+package-install-shared:
+else
+package-shared: shared
+package-install-shared: install-shared
+endif
+
+
+
+ifeq ($(DISABLE_FRONTEND),yes)
+app-tag:
+package-install-app:
+package-install-extras:
+else
+app-tag: package-app app.tag
+package-install-app: install-app
+package-install-extras: install-extras
+endif
+
+
+
+ifeq ($(ALL_STATIC),yes)
+
+package-app: static-app
+app: PACKAGE_APP = $(STATIC_APP)
+app-tag: PACKAGE_APP = $(STATIC_APP)
+app.tag: $(STATIC_APP)
+
+
+else ifeq ($(ALL_SHARED),yes)
+
+package-app: shared-app
+app: PACKAGE_APP = $(SHARED_APP)
+app-tag: PACKAGE_APP = $(SHARED_APP)
+app.tag: $(SHARED_APP)
+
+
+else
+
+package-app: default-app
+app: PACKAGE_APP = $(DEFAULT_APP)
+app-tag: PACKAGE_APP = $(DEFAULT_APP)
+app.tag: $(DEFAULT_APP)
+
+endif
+
+
+
+ifeq ($(CUSTOM_INSTALL_HEADERS),yes)
+
+install-headers:install-headers-custom
+
+else
+
+install-headers:install-headers-default
+
+endif