diff options
author | midipix <writeonce@midipix.org> | 2016-05-05 15:29:42 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:45 -0500 |
commit | 53f310856b1ecd00f48aa4bd8d962ce9b13909e2 (patch) | |
tree | f57b48ae9576eebf2319f19d693600c093e5bb40 /project | |
parent | d4993eb9553a38ba3c9edea844e348a45ad84df3 (diff) | |
download | perk-53f310856b1ecd00f48aa4bd8d962ce9b13909e2.tar.bz2 perk-53f310856b1ecd00f48aa4bd8d962ce9b13909e2.tar.xz |
build system: Makefile.in, custom.mk: added --all-[static|shared] support.
Diffstat (limited to 'project')
-rw-r--r-- | project/custom.mk | 24 |
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 |