summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-07-05 12:06:09 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-07-11 13:18:29 +0200
commit8f80181402a351c208e485103d36f4d9a2d5726f (patch)
treed1f62129dfedb93d608c9b8d60fedd59a5e1b17d /Makefile
parentd96c171dc9675edb1d1b08ed2291b76b291b03ac (diff)
downloadmupdf-8f80181402a351c208e485103d36f4d9a2d5726f.tar.xz
Prepare for multiple viewer application targets in makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 74e0b7af..be23c7b3 100644
--- a/Makefile
+++ b/Makefile
@@ -230,21 +230,24 @@ $(MUJSTEST_V8) : $(addprefix $(OUT)/platform/x11/, jstest_main.o pdfapp.o)
endif
ifeq "$(NOX11)" ""
-MUVIEW := $(OUT)/mupdf
-$(MUVIEW) : $(MUPDF_LIB) $(MUPDF_JS_NONE_LIB) $(THIRD_LIBS)
-$(MUVIEW) : $(addprefix $(OUT)/platform/x11/, x11_main.o x11_image.o pdfapp.o)
+MUVIEW_X11 := $(OUT)/mupdf-x11
+$(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)
endif
ifeq "$(V8_PRESENT)" "yes"
ifeq "$(NOX11)" ""
-MUVIEW_V8 := $(OUT)/mupdf-v8
-$(MUVIEW_V8) : $(MUPDF_LIB) $(MUPDF_JS_V8_LIB) $(THIRD_LIBS)
-$(MUVIEW_V8) : $(addprefix $(OUT)/platform/x11/, x11_main.o x11_image.o pdfapp.o)
+MUVIEW_X11_V8 := $(OUT)/mupdf-x11-v8
+$(MUVIEW_X11_V8) : $(MUPDF_LIB) $(MUPDF_JS_V8_LIB) $(THIRD_LIBS)
+$(MUVIEW_X11_V8) : $(addprefix $(OUT)/platform/x11/, x11_main.o x11_image.o pdfapp.o)
$(LINK_CMD) $(X11_LIBS) $(V8_LIBS)
endif
endif
+MUVIEW := $(MUVIEW_X11)
+MUVIEW_V8 := $(MUVIEW_X11_V8)
+
INSTALL_APPS := $(MUDRAW) $(MUTOOL) $(MUVIEW) $(MUJSTEST_V8) $(MUVIEW_V8)
# --- Format man pages ---