summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-07-16 14:26:09 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-07-16 14:26:09 (GMT)
commitf88bbe7ffd06b3b90d9d50c3bb37b3de31aeac75 (patch)
tree983fe863bb37a1338568ead520968b05d03b1899 /Makefile
parenta4a33f258102d28efa209dfc72bd06a7c5cc858a (diff)
downloadmxe-f88bbe7ffd06b3b90d9d50c3bb37b3de31aeac75.zip
mxe-f88bbe7ffd06b3b90d9d50c3bb37b3de31aeac75.tar.gz
mxe-f88bbe7ffd06b3b90d9d50c3bb37b3de31aeac75.tar.bz2
Makefile: add BUILD_TYPE [debug | release] varaibles for pkg build rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f86377e..5f87207 100644
--- a/Makefile
+++ b/Makefile
@@ -531,6 +531,8 @@ build-only-$(1)_$(3): TARGET = $(3)
build-only-$(1)_$(3): BUILD_$(if $(findstring shared,$(3)),SHARED,STATIC) = TRUE
build-only-$(1)_$(3): LIB_SUFFIX = $(if $(findstring shared,$(3)),dll,a)
build-only-$(1)_$(3): BITS = $(if $(findstring x86_64,$(3)),64,32)
+build-only-$(1)_$(3): BUILD_TYPE = $(if $(findstring debug,$(3) $($(1)_CONFIGURE_OPTS)),debug,release)
+build-only-$(1)_$(3): BUILD_TYPE_SUFFIX = $(if $(findstring debug,$(3) $($(1)_CONFIGURE_OPTS)),d)
build-only-$(1)_$(3): SOURCE_DIR = $(2)/$($(1)_SUBDIR)
build-only-$(1)_$(3): BUILD_DIR = $(2)/$($(1)_SUBDIR).build_
build-only-$(1)_$(3): TEST_FILE = $($(1)_TEST_FILE)