summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-04-23 22:20:07 +0200
committerTor Andersson <tor.andersson@artifex.com>2012-04-23 22:20:07 +0200
commit5bd7e0ddeb0998673182e4f9d9eb87d7f84a5e4e (patch)
treeb1cd1b5fe67e76afdf5afd8fb24156736ed6da82 /Makerules
parent422c43d265dc3f3e5a9907839ce4e308f8b83b60 (diff)
downloadmupdf-5bd7e0ddeb0998673182e4f9d9eb87d7f84a5e4e.tar.xz
Add mingw32 cross compilation targets to make file.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 98210904..26eab3c3 100644
--- a/Makerules
+++ b/Makerules
@@ -87,6 +87,22 @@ CROSSCOMPILE=yes
NOX11=yes
endif
+ifeq "$(OS)" "w64_x86-cross-mingw32"
+CC = i686-w64-mingw32-gcc
+LD = i686-w64-mingw32-gcc
+AR = i686-w64-mingw32-ar
+CROSSCOMPILE=yes
+NOX11=yes
+endif
+
+ifeq "$(OS)" "w64_amd64-cross-mingw32"
+CC = x86_64-w64-mingw32-gcc
+LD = x86_64-w64-mingw32-gcc
+AR = x86_64-w64-mingw32-ar
+CROSSCOMPILE=yes
+NOX11=yes
+endif
+
# Most variables when building for iOS are set up in ios/build_libs.sh,
# which is called from the Xcode project as a "Run Script" build step.
# The following section works for both device and simulator builds.