summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-03-25 19:33:10 +0000
committerRobin Watts <robin.watts@artifex.com>2015-03-25 20:28:38 +0000
commit51a8632024cf03b1b293def102a96c6c05b62467 (patch)
treede6588a1b3fc194df4282771762a5d4dc625710e /Makerules
parent247dc3b19653a5992d7719799e1fce6b84f1c436 (diff)
downloadmupdf-51a8632024cf03b1b293def102a96c6c05b62467.tar.xz
Bug 695854: Enable building of MuPDF viewer using MINGW.
Based on changes supplied by mt-82@gmx.org, but bent to be more in keeping. The actual building with MINGW is untested. We merely verify that these do not break the existing builds. With a bit of luck they should work though.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index e858ffcb..47b6d1cf 100644
--- a/Makerules
+++ b/Makerules
@@ -164,6 +164,12 @@ LD = $(TIZEN_TOOLS)ld $(TIZEN_FLAGS)
CROSSCOMPILE=yes
endif
+ifeq "$(OS)" "MINGW"
+WIN32_LIBS=-lcomdlg32 -lgdi32
+HAVE_WIN32=yes
+LDFLAGS += -Wl,-subsystem,windows
+endif
+
# TODO: If crosscompiling, why not just call "make libs" instead of this exception?
ifeq "$(CROSSCOMPILE)" "yes"
HAVE_X11 ?= no