From 3e168943f71418cc957290f1bf9569c0fe6c6519 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 25 Apr 2011 13:23:32 +0100 Subject: Add 'generate' make target to make font/cmap headers. Simple tweak to aid cross compiling. --- Makefile | 2 ++ Makerules | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 209fce11..6871dbe9 100644 --- a/Makefile +++ b/Makefile @@ -111,6 +111,8 @@ $(CMAP_HDR) : $(CMAPDUMP) | $(GEN) $(FONT_HDR) : $(FONTDUMP) | $(GEN) endif +generate: $(CMAP_HDR) $(FONT_HDR) + $(OUT)/pdf_cmap_table.o : $(CMAP_HDR) $(OUT)/pdf_fontfile.o : $(FONT_HDR) $(OUT)/cmapdump.o : pdf/pdf_cmap.c pdf/pdf_cmap_parse.c diff --git a/Makerules b/Makerules index 54e568c1..811c35c7 100644 --- a/Makerules +++ b/Makerules @@ -50,8 +50,12 @@ endif # Invoke this as: # make OS=beagle-cross build=release # This does rely on the generated directory being populated with the cmap -# files etc first. Either do a non cross compile build (e.g. windows in MSVC -# or windows in cygwin) first, or download the generated files from mupdf.com. +# files etc first. Either: +# 1) do 'make generate' first (this relies on you having an appropriate host +# base C compiler set up - such as you would have on unix or in windows +# cygwin) +# 2) do a non cross compile build (e.g. windows in MSVC) first. +# 3) download the generated files from mupdf.com. ifeq "$(OS)" "beagle-cross" CC = arm-none-linux-gnueabi-gcc LD = arm-none-linux-gnueabi-gcc -- cgit v1.2.3