summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-30 18:05:50 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-30 20:07:47 +0100
commit2ba534c2491368ce2c76fc715ad4bd5af4eee22d (patch)
tree9956210ed1d590de9376e7ea08336a5e7322f789 /Makefile
parent48722a72138d4077b7e3b58706359707373ea22d (diff)
downloadmupdf-2ba534c2491368ce2c76fc715ad4bd5af4eee22d.tar.xz
Link tools via libmutool.
This enables linker to drop .o files that aren't required.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 217afb93..e240f876 100644
--- a/Makefile
+++ b/Makefile
@@ -256,8 +256,9 @@ MUTOOL := $(addprefix $(OUT)/, mutool)
MUTOOL_OBJ := $(addprefix $(OUT)/tools/, mutool.o muconvert.o mudraw.o murun.o)
MUTOOL_OBJ += $(addprefix $(OUT)/tools/, pdfclean.o pdfcreate.o pdfextract.o pdfinfo.o pdfmerge.o pdfposter.o pdfpages.o pdfshow.o)
$(MUTOOL_OBJ): $(FITZ_HDR) $(PDF_HDR)
-$(MUTOOL) : $(MUPDF_LIB) $(THIRD_LIB)
-$(MUTOOL) : $(MUTOOL_OBJ)
+MUTOOL_LIB = $(OUT)/libmutools.a
+$(MUTOOL_LIB) : $(MUTOOL_OBJ)
+$(MUTOOL) : $(MUTOOL_LIB) $(MUPDF_LIB) $(THIRD_LIB)
$(LINK_CMD)
MJSGEN := $(OUT)/mjsgen