diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-03-25 19:33:10 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-03-25 20:28:38 +0000 |
commit | 51a8632024cf03b1b293def102a96c6c05b62467 (patch) | |
tree | de6588a1b3fc194df4282771762a5d4dc625710e /Makefile | |
parent | 247dc3b19653a5992d7719799e1fce6b84f1c436 (diff) | |
download | mupdf-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 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -274,8 +274,27 @@ $(MUVIEW_X11_CURL) : $(MUVIEW_X11_CURL_OBJ) endif endif -MUVIEW := $(MUVIEW_X11) -MUVIEW_CURL := $(MUVIEW_X11_CURL) +ifeq "$(HAVE_WIN32)" "yes" +MUVIEW_WIN32 := $(OUT)/mupdf +MUVIEW_WIN32_OBJ := $(addprefix $(OUT)/platform/win32/, win_main.o pdfapp.o) +$(MUVIEW_WIN32_OBJ) : $(FITZ_HDR) $(PDF_HDR) +$(MUVIEW_WIN32) : $(MUPDF_LIB) $(THIRD_LIBS) +$(MUVIEW_WIN32) : $(MUVIEW_WIN32_OBJ) + $(LINK_CMD) $(WIN32_LIBS) + +ifeq "$(HAVE_CURL)" "yes" +MUVIEW_WIN32_CURL := $(OUT)/mupdf-win32-curl +MUVIEW_WIN32_CURL_OBJ := $(addprefix $(OUT)/platform/win32/curl/, win_main.o pdfapp.o curl_stream.o) +$(MUVIEW_WIN32_CURL_OBJ) : $(FITZ_HDR) $(PDF_HDR) +$(MUVIEW_WIN32_CURL) : $(MUPDF_LIB) $(THIRD_LIBS) $(CURL_LIB) +$(MUVIEW_WIN32_CURL) : $(MUVIEW_WIN32_CURL_OBJ) + $(LINK_CMD) $(WIN32_LIBS) $(CURL_LIBS) $(SYS_CURL_DEPS) +endif +endif + +MUVIEW := $(MUVIEW_X11) $(MUVIEW_WIN32) +MUVIEW_CURL := $(MUVIEW_X11_CURL) $(MUVIEW_WIN32_CURL) + INSTALL_APPS := $(MUDRAW) $(MUTOOL) $(MUVIEW) $(MUJSTEST) $(MUVIEW_CURL) |