blob: b4caa4323bb6580a1b898a4ef360eb103183f7bc (
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
## texk/web2c/pdftexdir/am/pdftex.am: Makefile fragment for pdfTeX.
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)
pdftex_LDADD = $(pdftex_ldadd) $(LDADD) $(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) 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) $(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
## ttf2afm
##
bin_PROGRAMS += ttf2afm
ttf2afm_CPPFLAGS = -I$(srcdir)/pdftexdir
ttf2afm_SOURCES = pdftexdir/ttf2afm.c
## included by pdftexdir/ttf2afm.c
EXTRA_ttf2afm_SOURCES = pdftexdir/macnames.c
## pdftosrc
##
bin_PROGRAMS += pdftosrc
## Force Automake to use CXXLD for linking
nodist_EXTRA_pdftosrc_SOURCES = dummy.cxx
pdftosrc_CPPFLAGS = $(pdftex_cppflags)
pdftosrc_SOURCES = pdftexdir/pdftosrc.cc
pdftosrc_LDADD = $(pdftex_ldadd) $(LDADD)
pdftosrc_DEPENDENCIES = $(pdftex_dependencies) libpdftex.a
## libpdftex
##
EXTRA_LIBRARIES += libpdftex.a
libpdftex_a_CPPFLAGS = $(pdftex_cppflags)
libpdftex_a_SOURCES = \
pdftexdir/avl.c \
pdftexdir/avl.h \
pdftexdir/avlstuff.c \
pdftexdir/avlstuff.h \
pdftexdir/epdf.c \
pdftexdir/epdf.h \
pdftexdir/image.h \
pdftexdir/mapfile.c \
pdftexdir/pdftex.h \
pdftexdir/pdftoepdf.cc \
pdftexdir/pkin.c \
pdftexdir/ptexlib.h \
pdftexdir/ptexmac.h \
pdftexdir/subfont.c \
pdftexdir/tounicode.c \
pdftexdir/utils.c \
pdftexdir/vfpacket.c \
pdftexdir/writeenc.c \
pdftexdir/writefont.c \
pdftexdir/writeimg.c \
pdftexdir/writejbig2.c \
pdftexdir/writejbig2.h \
pdftexdir/writejpg.c \
pdftexdir/writepng.c \
pdftexdir/writet1.c \
pdftexdir/writet3.c \
pdftexdir/writettf.c \
pdftexdir/writettf.h \
pdftexdir/writezip.c
if MINGW32
libpdftex_a_SOURCES += \
pdftexdir/regex/regex.c \
pdftexdir/regex/regex.h
endif MINGW32
## We must create pdftexd.h before building the libpdftex_a_OBJECTS.
$(libpdftex_a_OBJECTS): pdftexd.h
## included by pdftexdir/writettf.c
EXTRA_libpdftex_a_SOURCES = pdftexdir/macnames.c
## included by pdftexdir/regex/regex.c
EXTRA_libpdftex_a_SOURCES += \
pdftexdir/regex/regcomp.c \
pdftexdir/regex/regex_internal.c \
pdftexdir/regex/regex_internal.h \
pdftexdir/regex/regexec.c
EXTRA_DIST += \
pdftexdir/ChangeLog \
pdftexdir/NEWS \
pdftexdir/README \
pdftexdir/change-files.txt \
pdftexdir/regex/COPYING.LIB \
pdftexdir/regex/README
## Not used
##
EXTRA_DIST += pdftexdir/pdftex.mak
## Eventually delete these files
##
EXTRA_DIST += \
pdftexdir/Makefile.in.orig \
pdftexdir/pdftex.mk \
pdftexdir/pdftexlib.mk
|