blob: 8903a3abbb267c160761217d69701bb5d00179ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
## texk/web2c/pdftexdir/am/pdftex.am: Makefile fragment for pdfTeX.
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
pdftex_cppflags = $(ZLIB_INCLUDES) $(LIBPNG_INCLUDES) $(XPDF_INCLUDES)
pdftex_cppflags += $(OBSDCOMPAT_INCLUDES) -I$(srcdir)/libmd5
pdftex_cppflags += -I$(srcdir)/pdftexdir
pdftex_ldadd = libpdftex.a $(LIBPNG_LIBS) $(ZLIB_LIBS) $(XPDF_LIBS)
pdftex_ldadd += $(OBSDCOMPAT_LIBS) libmd5.a
pdftex_dependencies = $(proglib)
pdftex_dependencies += $(LIBPNG_DEPEND) $(ZLIB_DEPEND) $(XPDF_DEPEND)
pdftex_dependencies += $(OBSDCOMPAT_DEPEND) libmd5.a
## pdfTeX
##
if PDFTEX
bin_PROGRAMS += pdftex
endif PDFTEX
EXTRA_PROGRAMS += pdftex
## Force Automake to use CXXLD for linking
nodist_EXTRA_pdftex_SOURCES = dummy.cxx
pdf_tangle = WEBINPUTS=.:$(srcdir)/pdftexdir $(buildenv) $(TANGLE)
pdftex_CPPFLAGS = $(pdftex_cppflags)
## With --enable-ipc, pdfTeX may need to link with -lsocket.
pdftex_LDADD = $(pdftex_ldadd) $(LDADD) $(ipc_socketlibs)
pdftex_DEPENDENCIES = $(pdftex_dependencies) libpdftex.a
pdftex_c_h = pdftexini.c pdftex0.c pdftex1.c pdftex2.c pdftex3.c pdftexcoerce.h pdftexd.h
nodist_pdftex_SOURCES = $(pdftex_c_h) pdftex-pool.c pdftexextra.c pdftexdir/pdftexextra.h
$(pdftex_c_h): pdftex-web2c
pdftex-web2c: pdftex.p $(web2c_texmf) pdftexdir/pdftex.defines
$(web2c) pdftex
: $(synctex_convert_pdftex)
echo timestamp >$@
touch $(pdftex_c_h)
pdftexextra.c: pdftexd.h pdftexdir/pdftexextra.h lib/texmfmp.c pdftexd.h
sed s/TEX-OR-MF-OR-MP/pdftex/ $(srcdir)/lib/texmfmp.c >$@
pdftex.p pdftex.pool: pdftex-tangle
pdftex-tangle: tangle$(EXEEXT) pdftexdir/pdftex.web pdftex.ch
$(pdf_tangle) pdftex pdftex
echo timestamp >$@
touch pdftex.p pdftex.pool
pdftex-pool.c: pdftex.pool $(makecpool_stamp) pdftexdir/ptexlib.h pdftexd.h
$(makecpool) pdftex.pool pdftexdir/ptexlib.h >$@ || rm -f $@
## Extract pdftex version
pdftexdir/pdftex.version: pdftexdir/pdftex.web
$(mkdir_p) pdftexdir
grep '^@d pdftex_version_string==' $(srcdir)/pdftexdir/pdftex.web \
| sed "s/^.*'-//;s/'.*$$//" >pdftexdir/pdftex.version
pdftexdir/pdftexextra.h: pdftexdir/pdftexextra.in pdftexdir/pdftex.version etexdir/etex.version
sed -e s/PDFTEX-VERSION/`cat pdftexdir/pdftex.version`/ \
-e s/ETEX-VERSION/`cat etexdir/etex.version`/ \
$(srcdir)/pdftexdir/pdftexextra.in >$@
## Generate pdftex.ch
pdftex.ch: tie$(EXEEXT) $(pdftex_ch_srcs)
$(tie) -c pdftex.ch $(pdftex_ch_srcs)
pdftex_ch_srcs = \
pdftexdir/pdftex.web \
pdftexdir/tex.ch0 \
tex.ch \
$(pdftex_ch_synctex) \
pdftexdir/pdftex.ch
##
EXTRA_DIST += $(pdftex_ch_srcs) \
pdftexdir/pdftex.defines pdftexdir/pdftex.h pdftexdir/pdftexextra.in
DISTCLEANFILES += $(nodist_pdftex_SOURCES) pdftex.ch pdftex-web2c \
pdftex.p pdftex.pool pdftex-tangle pdftexdir/pdftex.version
EXTRA_DIST += \
pdftexdir/ChangeLog \
pdftexdir/NEWS \
pdftexdir/README \
pdftexdir/change-files.txt
## Not used
##
EXTRA_DIST += pdftexdir/pdftex.mak
## Eventually delete these files
##
EXTRA_DIST += \
pdftexdir/Makefile.in.orig \
pdftexdir/pdftex.mk \
pdftexdir/pdftexlib.mk
|