From 2ba534c2491368ce2c76fc715ad4bd5af4eee22d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 30 May 2016 18:05:50 +0100 Subject: Link tools via libmutool. This enables linker to drop .o files that aren't required. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3