summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-10-07 20:55:47 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-10-29 10:07:41 (GMT)
commitb826422ab87d00470967da77de4cca57e3c50be3 (patch)
tree77dcba2e2deb0d7b2333dcd7f951876b5cd0857e /Makefile
parent53e9f6e73b1ae56f6086ba8ec5a636c5fde20abc (diff)
downloadmxe-b826422ab87d00470967da77de4cca57e3c50be3.zip
mxe-b826422ab87d00470967da77de4cca57e3c50be3.tar.gz
mxe-b826422ab87d00470967da77de4cca57e3c50be3.tar.bz2
add new variables: BUILD_CROSS, BUILD_NATIVE
They are useful for applying flags only to cross or only to native targets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8184be0..e7c5a4e 100644
--- a/Makefile
+++ b/Makefile
@@ -550,6 +550,7 @@ $(PREFIX)/$(3)/installed/$(1): $(PKG_MAKEFILES) \
build-only-$(1)_$(3): PKG = $(1)
build-only-$(1)_$(3): TARGET = $(3)
build-only-$(1)_$(3): BUILD_$(if $(findstring shared,$(3)),SHARED,STATIC) = TRUE
+build-only-$(1)_$(3): BUILD_$(if $(call seq,$(TARGET),$(BUILD)),NATIVE,CROSS) = 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)