summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-03-29 22:25:09 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-04-24 16:47:43 +0200
commit51b8205a513e86c62121a927a067632c1a933839 (patch)
treec2882a6c253a715bfc2ea72854c75350f0b2024b /Makefile
parent67a7449fc1f186f318942b9c6b8d66d4458b7d87 (diff)
downloadmupdf-51b8205a513e86c62121a927a067632c1a933839.tar.xz
Remove need for namedump by using macros and preprocessor.
Add a PDF_NAME(Foo) macro that evaluates to a pdf_obj for /Foo. Use the C preprocessor to create the enum values and string table from one include file instead of using a separate code generator tool.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 2 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 8e47e3a7..448efa64 100644
--- a/Makefile
+++ b/Makefile
@@ -147,7 +147,7 @@ PKCS7_SRC += $(wildcard source/helpers/pkcs7/pkcs7-openssl.c)
endif
FITZ_SRC_HDR := $(wildcard source/fitz/*.h)
-PDF_SRC_HDR := $(wildcard source/pdf/*.h) source/pdf/pdf-name-table.h
+PDF_SRC_HDR := $(wildcard source/pdf/*.h)
XPS_SRC_HDR := $(wildcard source/xps/*.h)
SVG_SRC_HDR := $(wildcard source/svg/*.h)
HTML_SRC_HDR := $(wildcard source/html/*.h)
@@ -177,23 +177,6 @@ $(THREAD_OBJ) : $(THREAD_HDR)
$(PKCS7_OBJ) : $(FITZ_HDR) $(PDF_HDR) $(PKCS7_HDR)
$(SIGNATURE_OBJ) : $(PKCS7_HDR)
-# --- Generated PDF name tables ---
-
-NAMEDUMP_EXE := $(OUT)/scripts/namedump.exe
-
-include/mupdf/pdf.h : include/mupdf/pdf/name-table.h
-NAME_GEN := include/mupdf/pdf/name-table.h source/pdf/pdf-name-table.h
-$(NAME_GEN) : resources/pdf/names.txt
- $(QUIET_GEN) $(NAMEDUMP_EXE) resources/pdf/names.txt $(NAME_GEN)
-
-ifneq "$(CROSSCOMPILE)" "yes"
-$(NAME_GEN) : $(NAMEDUMP_EXE)
-endif
-
-$(OUT)/source/pdf/pdf-object.o : source/pdf/pdf-name-table.h
-
-generate: $(NAME_GEN)
-
# --- Generated embedded font files ---
HEXDUMP_EXE := $(OUT)/scripts/hexdump.exe
@@ -522,7 +505,7 @@ all: libs apps
clean:
rm -rf $(OUT)
nuke:
- rm -rf build/* generated $(NAME_GEN)
+ rm -rf build/* generated
release:
$(MAKE) build=release