diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-05-30 18:05:50 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-05-30 20:07:47 +0100 |
commit | 2ba534c2491368ce2c76fc715ad4bd5af4eee22d (patch) | |
tree | 9956210ed1d590de9376e7ea08336a5e7322f789 /Makefile | |
parent | 48722a72138d4077b7e3b58706359707373ea22d (diff) | |
download | mupdf-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-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |