summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-08-14 13:34:51 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-08-14 14:41:04 +0200
commit358898aefabc7ac13e26619911c90709dc1eaef7 (patch)
tree47445992e959221aa75b022d319238405fe47eb3 /Makefile
parentd812f7ca3a2d1f87b18d6583dad4abfc9d01b3ae (diff)
downloadmupdf-358898aefabc7ac13e26619911c90709dc1eaef7.tar.xz
Fix build of curl on macosx.
Only build mupdf-x11-curl if the curl thirdparty library exists.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 306544a2..84514b5d 100644
--- a/Makefile
+++ b/Makefile
@@ -239,11 +239,13 @@ $(MUVIEW_X11) : $(MUPDF_LIB) $(MUPDF_JS_NONE_LIB) $(THIRD_LIBS)
$(MUVIEW_X11) : $(addprefix $(OUT)/platform/x11/, x11_main.o x11_image.o pdfapp.o)
$(LINK_CMD) $(X11_LIBS)
-MUVIEW_X11_CURL := $(OUT)/mupdf-curl
+ifeq "$(NOCURL)" ""
+MUVIEW_X11_CURL := $(OUT)/mupdf-x11-curl
$(MUVIEW_X11_CURL) : $(MUPDF_LIB) $(MUPDF_JS_NONE_LIB) $(THIRD_LIBS) $(CURL_LIB)
$(MUVIEW_X11_CURL) : $(addprefix $(OUT)/platform/x11/curl/, x11_main.o x11_image.o pdfapp.o curl_stream.o)
$(LINK_CMD) $(X11_LIBS) $(CURL_LIBS)
endif
+endif
ifeq "$(V8_PRESENT)" "yes"
ifeq "$(NOX11)" ""
@@ -258,7 +260,7 @@ MUVIEW := $(MUVIEW_X11)
MUVIEW_V8 := $(MUVIEW_X11_V8)
MUVIEW_CURL := $(MUVIEW_X11_CURL)
-INSTALL_APPS := $(MUDRAW) $(MUTOOL) $(MUVIEW) $(MUJSTEST_V8) $(MUVIEW_V8) $(MUVIEW_X11_CURL)
+INSTALL_APPS := $(MUDRAW) $(MUTOOL) $(MUVIEW) $(MUJSTEST_V8) $(MUVIEW_V8) $(MUVIEW_CURL)
# --- Format man pages ---