| 1 |
## $Id: Makefile.am 74908 2025-04-10 22:20:35Z karl $ |
| 2 |
## Makefile.am for the TeX Live subdirectory texk/dvipdfm-x/ |
| 3 |
## |
| 4 |
## Copyright 2015-2025 Karl Berry <[email protected]> |
| 5 |
## Copyright 2009-2015 Peter Breitenlohner <[email protected]> |
| 6 |
## You may freely use, modify and/or distribute this file. |
| 7 |
## |
| 8 |
bin_PROGRAMS = xdvipdfmx |
| 9 |
if !WIN32 |
| 10 |
dist_bin_SCRIPTS = dvipdft |
| 11 |
endif !WIN32 |
| 12 |
|
| 13 |
AM_CPPFLAGS = $(KPATHSEA_INCLUDES) $(LIBPNG_INCLUDES) $(ZLIB_INCLUDES) $(LIBPAPER_INCLUDES) |
| 14 |
AM_CFLAGS = $(WARNING_CFLAGS) |
| 15 |
|
| 16 |
xdvipdfmx_SOURCES = \ |
| 17 |
agl.c \ |
| 18 |
agl.h \ |
| 19 |
bmpimage.c \ |
| 20 |
bmpimage.h \ |
| 21 |
cff.c \ |
| 22 |
cff.h \ |
| 23 |
cff_dict.c \ |
| 24 |
cff_dict.h \ |
| 25 |
cff_limits.h \ |
| 26 |
cff_stdstr.h \ |
| 27 |
cff_types.h \ |
| 28 |
cid_basefont.h \ |
| 29 |
cid.c \ |
| 30 |
cid.h \ |
| 31 |
cidtype0.c \ |
| 32 |
cidtype0.h \ |
| 33 |
cidtype2.c \ |
| 34 |
cidtype2.h \ |
| 35 |
cmap.c \ |
| 36 |
cmap.h \ |
| 37 |
cmap_p.h \ |
| 38 |
cmap_read.c \ |
| 39 |
cmap_read.h \ |
| 40 |
cmap_write.c \ |
| 41 |
cmap_write.h \ |
| 42 |
cs_type2.c \ |
| 43 |
cs_type2.h \ |
| 44 |
dpxconf.c \ |
| 45 |
dpxconf.h \ |
| 46 |
dpxcrypt.c \ |
| 47 |
dpxcrypt.h \ |
| 48 |
dpxfile.c \ |
| 49 |
dpxfile.h \ |
| 50 |
dpxutil.c \ |
| 51 |
dpxutil.h \ |
| 52 |
dvi.c \ |
| 53 |
dvi.h \ |
| 54 |
dvicodes.h \ |
| 55 |
dvipdfmx.c \ |
| 56 |
dvipdfmx.h \ |
| 57 |
epdf.c \ |
| 58 |
epdf.h \ |
| 59 |
error.c \ |
| 60 |
error.h \ |
| 61 |
fontmap.c \ |
| 62 |
fontmap.h \ |
| 63 |
jp2image.c \ |
| 64 |
jp2image.h \ |
| 65 |
jpegimage.c \ |
| 66 |
jpegimage.h \ |
| 67 |
mem.c \ |
| 68 |
mem.h \ |
| 69 |
mfileio.c \ |
| 70 |
mfileio.h \ |
| 71 |
mpost.c \ |
| 72 |
mpost.h \ |
| 73 |
mt19937ar.c \ |
| 74 |
numbers.c \ |
| 75 |
numbers.h \ |
| 76 |
otl_opt.c \ |
| 77 |
otl_opt.h \ |
| 78 |
pdfcolor.c \ |
| 79 |
pdfcolor.h \ |
| 80 |
pdfdev.c \ |
| 81 |
pdfdev.h \ |
| 82 |
pdfdoc.c \ |
| 83 |
pdfdoc.h \ |
| 84 |
pdfdraw.c \ |
| 85 |
pdfdraw.h \ |
| 86 |
pdfencrypt.c \ |
| 87 |
pdfencrypt.h \ |
| 88 |
pdfencoding.c \ |
| 89 |
pdfencoding.h \ |
| 90 |
pdffont.c \ |
| 91 |
pdffont.h \ |
| 92 |
pdflimits.h \ |
| 93 |
pdfnames.c \ |
| 94 |
pdfnames.h \ |
| 95 |
pdfobj.c \ |
| 96 |
pdfobj.h \ |
| 97 |
pdfparse.c \ |
| 98 |
pdfparse.h \ |
| 99 |
pdfresource.c \ |
| 100 |
pdfresource.h \ |
| 101 |
pdfximage.c \ |
| 102 |
pdfximage.h \ |
| 103 |
pkfont.c \ |
| 104 |
pkfont.h \ |
| 105 |
pngimage.c \ |
| 106 |
pngimage.h \ |
| 107 |
pst.c \ |
| 108 |
pst.h \ |
| 109 |
pst_obj.c \ |
| 110 |
pst_obj.h \ |
| 111 |
sfnt.c \ |
| 112 |
sfnt.h \ |
| 113 |
spc_color.c \ |
| 114 |
spc_color.h \ |
| 115 |
spc_dvipdfmx.c \ |
| 116 |
spc_dvipdfmx.h \ |
| 117 |
spc_dvips.c \ |
| 118 |
spc_dvips.h \ |
| 119 |
spc_html.c \ |
| 120 |
spc_html.h \ |
| 121 |
spc_misc.c \ |
| 122 |
spc_misc.h \ |
| 123 |
spc_pdfm.c \ |
| 124 |
spc_pdfm.h \ |
| 125 |
spc_tpic.c \ |
| 126 |
spc_tpic.h \ |
| 127 |
spc_util.h \ |
| 128 |
spc_util.c \ |
| 129 |
spc_xtx.c \ |
| 130 |
spc_xtx.h \ |
| 131 |
specials.c \ |
| 132 |
specials.h \ |
| 133 |
subfont.c \ |
| 134 |
subfont.h \ |
| 135 |
system.h \ |
| 136 |
t1_char.c \ |
| 137 |
t1_char.h \ |
| 138 |
t1_load.c \ |
| 139 |
t1_load.h \ |
| 140 |
tfm.c \ |
| 141 |
tfm.h \ |
| 142 |
truetype.c \ |
| 143 |
truetype.h \ |
| 144 |
tt_aux.c \ |
| 145 |
tt_aux.h \ |
| 146 |
tt_cmap.c \ |
| 147 |
tt_cmap.h \ |
| 148 |
tt_glyf.c \ |
| 149 |
tt_glyf.h \ |
| 150 |
tt_gsub.c \ |
| 151 |
tt_gsub.h \ |
| 152 |
tt_post.c \ |
| 153 |
tt_post.h \ |
| 154 |
tt_table.c \ |
| 155 |
tt_table.h \ |
| 156 |
type0.c \ |
| 157 |
type0.h \ |
| 158 |
type1.c \ |
| 159 |
type1.h \ |
| 160 |
type1c.c \ |
| 161 |
type1c.h \ |
| 162 |
unicode.c \ |
| 163 |
unicode.h \ |
| 164 |
vf.c \ |
| 165 |
vf.h \ |
| 166 |
xbb.c |
| 167 |
|
| 168 |
LDADD = $(KPATHSEA_LIBS) $(LIBPNG_LIBS) $(ZLIB_LIBS) $(LIBPAPER_LIBS) |
| 169 |
|
| 170 |
$(xdvipdfmx_OBJECTS): config.force |
| 171 |
|
| 172 |
## Links |
| 173 |
## |
| 174 |
bin_links = \ |
| 175 |
xdvipdfmx$(EXEEXT):dvipdfm \ |
| 176 |
xdvipdfmx$(EXEEXT):dvipdfmx |
| 177 |
|
| 178 |
# extractbb is now a separate package, reimplemented in Lua. |
| 179 |
|
| 180 |
if WIN32 |
| 181 |
noinst_PROGRAMS = call_xdvipdfmx |
| 182 |
endif WIN32 |
| 183 |
|
| 184 |
call_xdvipdfmx_CPPFLAGS = -DEXEPROG=\"xdvipdfmx.exe\" |
| 185 |
nodist_call_xdvipdfmx_SOURCES = callexe.c |
| 186 |
|
| 187 |
include $(top_srcdir)/../../am/bin_links.am |
| 188 |
|
| 189 |
## Manpages |
| 190 |
|
| 191 |
dist_man1_MANS = man/dvipdfmx.1 man/dvipdft.1 man/extractbb.1 |
| 192 |
man1_links = \ |
| 193 |
dvipdfmx:dvipdfm \ |
| 194 |
dvipdfmx:xdvipdfmx |
| 195 |
include $(top_srcdir)/../../am/man1_links.am |
| 196 |
|
| 197 |
## Data |
| 198 |
## |
| 199 |
configdatadir = $(datarootdir)/texmf-dist/dvipdfmx |
| 200 |
dist_configdata_DATA = data/dvipdfmx.cfg |
| 201 |
|
| 202 |
glyphlistdatadir = $(datarootdir)/texmf-dist/fonts/map/glyphlist |
| 203 |
dist_glyphlistdata_DATA = data/glyphlist.txt data/pdfglyphlist.txt |
| 204 |
|
| 205 |
mapdatadir = $(datarootdir)/texmf-dist/fonts/map/dvipdfmx |
| 206 |
dist_mapdata_DATA = data/cid-x.map |
| 207 |
|
| 208 |
cmapdatadir = $(datarootdir)/texmf-dist/fonts/cmap/dvipdfmx |
| 209 |
dist_cmapdata_DATA = data/EUC-UCS2 |
| 210 |
|
| 211 |
install-exec-hook: install-bin-links |
| 212 |
if WIN32 |
| 213 |
# same install happens in web2c/omegafonts. |
| 214 |
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) "$(DESTDIR)$(bindir)/dvipdfm$(EXEEXT)" |
| 215 |
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) call_xdvipdfmx$(EXEEXT) "$(DESTDIR)$(bindir)/dvipdfmx$(EXEEXT)" |
| 216 |
endif WIN32 |
| 217 |
|
| 218 |
install-data-hook: install-man1-links |
| 219 |
|
| 220 |
uninstall-hook: uninstall-bin-links uninstall-man1-links |
| 221 |
if WIN32 |
| 222 |
rm -f $(DESTDIR)$(bindir)/dvipdfm$(EXEEXT) |
| 223 |
rm -f $(DESTDIR)$(bindir)/dvipdfmx$(EXEEXT) |
| 224 |
endif WIN32 |
| 225 |
|
| 226 |
all-local: config.force |
| 227 |
|
| 228 |
config.force: $(ZLIB_DEPEND) $(LIBPNG_DEPEND) $(KPATHSEA_DEPEND) $(LIBPAPER_DEPEND) |
| 229 |
echo timestamp >config.force |
| 230 |
$(SHELL) ./config.status --recheck |
| 231 |
|
| 232 |
DISTCLEANFILES = config.force |
| 233 |
|
| 234 |
## Rebuild libkpathsea |
| 235 |
@KPATHSEA_RULE@ |
| 236 |
## Rebuild libpng |
| 237 |
@LIBPNG_RULE@ |
| 238 |
## Rebuild libz |
| 239 |
@ZLIB_RULE@ |
| 240 |
## Rebuild libpaper |
| 241 |
@LIBPAPER_RULE@ |
| 242 |
|
| 243 |
## Tests |
| 244 |
## |
| 245 |
TESTS = xdvipdfmx.test xdvipdfm-ann.test xdvipdfm-bad.test xdvipdfm-bb.test |
| 246 |
TESTS += xdvipdfm-bkm.test xdvipdfm-pdf.test xdvipdfm-psz.test |
| 247 |
TESTS += xdvipdfm-ptx.test xdvipdfm-res.test |
| 248 |
TESTS += xdvipdfm-rev.test xdvipdfm-ttc.test |
| 249 |
TESTS += dvipdfmx-upjf.test dvipdfmx-upjf2.test dvipdfmx-upjf3.test dvipdfmx-incl.test |
| 250 |
TESTS += dvipdfmx-lmr0.test dvipdfmx-lmr1.test |
| 251 |
TESTS += dvipdfmx-ttf0.test |
| 252 |
xdvipdfmx.log xdvipdfm-ann.log xdvipdfm-bad.log xdvipdfm-bb.log \ |
| 253 |
xdvipdfm-bkm.log xdvipdfm-pdf.log xdvipdfm-psz.log \ |
| 254 |
xdvipdfm-ptx.log xdvipdfm-res.log \ |
| 255 |
xdvipdfm-rev.log xdvipdfm-ttc.log \ |
| 256 |
dvipdfmx-upjf.log dvipdfmx-upjf2.log dvipdfmx-upjf3.log dvipdfmx-incl.log \ |
| 257 |
dvipdfmx-lmr0.log dvipdfmx-lmr1.log \ |
| 258 |
dvipdfmx-ttf0.log: \ |
| 259 |
xdvipdfmx$(EXEEXT) |
| 260 |
EXTRA_DIST = $(TESTS) |
| 261 |
## xdvipdfmx.test |
| 262 |
EXTRA_DIST += tests/dvipdfmx.cfg tests/psfonts.map |
| 263 |
EXTRA_DIST += tests/cmr10.pfb tests/cmr10.tfm |
| 264 |
EXTRA_DIST += tests/image.dvi tests/image.tex |
| 265 |
EXTRA_DIST += tests/xbmc.dvi tests/xbmc.tex tests/xbmc10.600pk tests/xbmc10.tfm |
| 266 |
DISTCLEANFILES += image*.pdf xbmc*.pdf |
| 267 |
## xdvipdfm-ann.test |
| 268 |
EXTRA_DIST += tests/annot.dvi tests/annot.tex |
| 269 |
DISTCLEANFILES += annot*.pdf |
| 270 |
## xdvipdfm-bad.test |
| 271 |
EXTRA_DIST += tests/ids_2_6.dvi tests/ids_3_2.dvi tests/ids_a_b.dvi tests/opc_fe.dvi |
| 272 |
EXTRA_DIST += tests/ptx_2_2.dvi tests/ptx_6_6.dvi tests/rev_2_2.dvi tests/rev_2_3.dvi |
| 273 |
EXTRA_DIST += tests/void.dvi |
| 274 |
## xdvipdfm-bb.test |
| 275 |
EXTRA_DIST += tests/image.bmp tests/picbmp.bb tests/picbmp.xbb |
| 276 |
EXTRA_DIST += tests/image.jp2 tests/picjp2.bb tests/picjp2.xbb |
| 277 |
EXTRA_DIST += tests/image.jpeg tests/picjpeg.bb tests/picjpeg.xbb |
| 278 |
EXTRA_DIST += tests/image.png tests/picpng.bb tests/picpng.xbb |
| 279 |
EXTRA_DIST += tests/image.pdf tests/picpdf.bb tests/picpdf.xbb |
| 280 |
DISTCLEANFILES += pic*.* |
| 281 |
## xdvipdfm-bkm.test |
| 282 |
EXTRA_DIST += tests/bookm.dvi tests/bookm.tex |
| 283 |
DISTCLEANFILES += bookm*.pdf |
| 284 |
## xdvipdfm-pdf.test |
| 285 |
EXTRA_DIST += tests/xdvipdfm-pdf.xdv tests/rpki-ecosystem.drawio.pdf |
| 286 |
DISTCLEANFILES += xdvipdfm-pdf*.pdf |
| 287 |
## xdvipdfm-psz.test |
| 288 |
EXTRA_DIST += tests/paper.dvi tests/paper.tex |
| 289 |
DISTCLEANFILES += paper*.pdf |
| 290 |
## xdvipdfm-ptx.test |
| 291 |
EXTRA_DIST += tests/ptex.dvi |
| 292 |
DISTCLEANFILES += ptex*.pdf |
| 293 |
## xdvipdfm-res.test |
| 294 |
EXTRA_DIST += tests/resrc.dvi tests/resrc.tex |
| 295 |
DISTCLEANFILES += resrc*.pdf |
| 296 |
## xdvipdfm-rev.test |
| 297 |
EXTRA_DIST += tests/reverse.dvi |
| 298 |
DISTCLEANFILES += reverse.pdf |
| 299 |
## xdvipdfm-ttc.test |
| 300 |
EXTRA_DIST += tests/ttc.dvi tests/ttc.tex tests/test.ttc |
| 301 |
DISTCLEANFILES += ttc*.pdf |
| 302 |
## dvipdfmx-upjf.test |
| 303 |
EXTRA_DIST += tests/upjf.dvi tests/upjf.tex tests/upjf.map tests/Makefile_upjf |
| 304 |
EXTRA_DIST += tests/upjf_full.cnf tests/upjf_omit.cnf |
| 305 |
EXTRA_DIST += tests/upjf_full.vf tests/upjf_omit.vf |
| 306 |
EXTRA_DIST += tests/upjf-r.tfm tests/upjf-g.tfm tests/upjf.tfm tests/UPJF-UTF16-H |
| 307 |
EXTRA_DIST += tests/upjv_full.vf tests/upjv_omit.vf |
| 308 |
EXTRA_DIST += tests/upjv-r.tfm tests/upjv-g.tfm tests/upjv.tfm tests/UPJF-UTF16-V |
| 309 |
EXTRA_DIST += tests/upjf-g00.opl tests/upjf-g00.ofm |
| 310 |
EXTRA_DIST += tests/upjv-g00.opl tests/upjv-g00.ofm |
| 311 |
EXTRA_DIST += tests/upjf-r00.opl tests/upjf-r00.ofm |
| 312 |
EXTRA_DIST += tests/upjv-r00.opl tests/upjv-r00.ofm |
| 313 |
EXTRA_DIST += tests/upjf1-r.pl tests/upjf1-r.tfm |
| 314 |
EXTRA_DIST += tests/upjf1_full.zvp0 tests/upjf1_full.vf |
| 315 |
EXTRA_DIST += tests/upjf1_omit.zvp0 tests/upjf1_omit.vf |
| 316 |
DISTCLEANFILES += upjf.vf upjv.vf upjf-*.ofm upjv-*.ofm upjf-*.tfm upjf_*.pdf upjf1_*.pdf |
| 317 |
## dvipdfmx-upjf2.test |
| 318 |
EXTRA_DIST += tests/upjf2_full.zvp0 tests/upjf2_full.vf |
| 319 |
EXTRA_DIST += tests/upjv2_full.zvp0 tests/upjv2_full.vf |
| 320 |
EXTRA_DIST += tests/upjf-c.pl tests/upjf-c.tfm |
| 321 |
EXTRA_DIST += tests/upjv-c.pl tests/upjv-c.tfm |
| 322 |
EXTRA_DIST += tests/upjf-hara.map |
| 323 |
DISTCLEANFILES += upjf2_*.pdf |
| 324 |
## dvipdfmx-upjf3.test |
| 325 |
EXTRA_DIST += tests/upjf3_full.zvp0 tests/upjf3_full.vf |
| 326 |
EXTRA_DIST += tests/upjv3_full.zvp0 tests/upjv3_full.vf |
| 327 |
EXTRA_DIST += tests/upjf4_full.zvp0 tests/upjf4_full.vf |
| 328 |
EXTRA_DIST += tests/upjv4_full.zvp0 tests/upjv4_full.vf |
| 329 |
EXTRA_DIST += tests/upjf-hu.tfm tests/upjf-hi.tfm |
| 330 |
EXTRA_DIST += tests/upjv-hu.tfm tests/upjv-hi.tfm |
| 331 |
EXTRA_DIST += tests/upjf-noto.map tests/upjf-ipa.map |
| 332 |
DISTCLEANFILES += upjf3_*.pdf |
| 333 |
## dvipdfmx-incl.test |
| 334 |
EXTRA_DIST += tests/multi_incl.dvi tests/multi_incl.tex tests/sue-mp.pdf |
| 335 |
DISTCLEANFILES += multi_incl.pdf |
| 336 |
## dvipdfmx-lmr0.test, dvipdfmx-lmr1.test |
| 337 |
EXTRA_DIST += tests/lmr0.tex tests/lmr0-al.dvi tests/lmr0-up.dvi |
| 338 |
DISTCLEANFILES += lmr0-*.pdf |
| 339 |
## dvipdfmx-ttf0.test |
| 340 |
EXTRA_DIST += tests/cprm00.tex tests/cprm00.dvi |
| 341 |
DISTCLEANFILES += cprm*.pdf |
| 342 |
## |
| 343 |
EXTRA_DIST += tests/fullmap.dvi tests/fullmap.tex |