summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-08-29 17:26:20 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-09-03 11:26:00 +0200
commit53236ad1f567cec4509351a0cc056a64ebd97a9e (patch)
treee1378bfb7230d111c74d8902782a26a1cd75bac0 /Makefile
parent8734a4e5c11fdc2990acca643d4eab5caaaad7cd (diff)
downloadmupdf-53236ad1f567cec4509351a0cc056a64ebd97a9e.tar.xz
Fix header file dependencies on tool source files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 936fe00f..91c7b5ec 100644
--- a/Makefile
+++ b/Makefile
@@ -217,13 +217,17 @@ $(OUT)/cmapdump.o : source/pdf/pdf-cmap.c source/pdf/pdf-cmap-parse.c
# --- Tools and Apps ---
MUDRAW := $(addprefix $(OUT)/, mudraw)
+MUDRAW_OBJ := $(addprefix $(OUT)/tools/, mudraw.o)
+$(MUDRAW_OBJ) : $(FITZ_HDR)
$(MUDRAW) : $(MUPDF_LIB) $(MUPDF_JS_NONE_LIB) $(THIRD_LIBS)
-$(MUDRAW) : $(addprefix $(OUT)/tools/, mudraw.o)
+$(MUDRAW) : $(MUDRAW_OBJ)
$(LINK_CMD)
MUTOOL := $(addprefix $(OUT)/, mutool)
+MUTOOL_OBJ := $(addprefix $(OUT)/tools/, mutool.o pdfclean.o pdfextract.o pdfinfo.o pdfposter.o pdfshow.o)
+$(MUTOOL_OBJ): $(FITZ_HDR) $(PDF_HDR)
$(MUTOOL) : $(MUPDF_LIB) $(MUPDF_JS_NONE_LIB) $(THIRD_LIBS)
-$(MUTOOL) : $(addprefix $(OUT)/tools/, mutool.o pdfclean.o pdfextract.o pdfinfo.o pdfposter.o pdfshow.o)
+$(MUTOOL) : $(MUTOOL_OBJ)
$(LINK_CMD)
ifeq "$(V8_PRESENT)" "yes"