diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
commit | ad547a6b5986815fda458221149728d9d9ab1d87 (patch) | |
tree | 16296910eb3eca724371474ea9aea3994dc69614 /Build/source/texk/web2c/pdftexdir/am | |
parent | 947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff) |
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/am')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/am/libpdftex.am | 65 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/am/pdftex.am | 132 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/am/pdftosrc.am | 42 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/am/ttf2afm.am | 37 |
4 files changed, 276 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/am/libpdftex.am b/Build/source/texk/web2c/pdftexdir/am/libpdftex.am new file mode 100644 index 00000000000..f31df2abf3a --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/am/libpdftex.am @@ -0,0 +1,65 @@ +## texk/web2c/pdftexdir/am/libpdftex.am: Makefile fragment for libpdftex. +## +## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org> +## You may freely use, modify and/or distribute this file. + +## libpdftex +## +EXTRA_LIBRARIES += libpdftex.a + +libpdftex_a_CPPFLAGS = $(REGEX_INCLUDES) $(pdftex_cppflags) +libpdftex_a_CXXFLAGS = $(WARNING_CXXFLAGS) + +libpdftex_a_SOURCES = \ + pdftexdir/avl.c \ + pdftexdir/avl.h \ + pdftexdir/avlstuff.c \ + pdftexdir/avlstuff.h \ + pdftexdir/epdf.c \ + pdftexdir/image.h \ + pdftexdir/mapfile.c \ + pdftexdir/pdftex.h \ + pdftexdir/pdftex-common.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/writejpg.c \ + pdftexdir/writepng.c \ + pdftexdir/writet1.c \ + pdftexdir/writet3.c \ + pdftexdir/writettf.c \ + pdftexdir/writettf.h \ + pdftexdir/writezip.c + +if MINGW32 +REGEX_INCLUDES = -I$(srcdir)/pdftexdir/regex +libpdftex_a_SOURCES += \ + pdftexdir/regex/regex.c \ + pdftexdir/regex/regex.h +endif MINGW32 + +# We must create pdftexd.h (and xpdf...) before building the libpdftex_a_OBJECTS. +$(libpdftex_a_OBJECTS): pdftexd.h $(XPDF_DEPEND) $(ZLIB_DEPEND) $(LIBPNG_DEPEND) + +## 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/regex/COPYING.LIB \ + pdftexdir/regex/README diff --git a/Build/source/texk/web2c/pdftexdir/am/pdftex.am b/Build/source/texk/web2c/pdftexdir/am/pdftex.am new file mode 100644 index 00000000000..39dd3179400 --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/am/pdftex.am @@ -0,0 +1,132 @@ +## $Id$ +## texk/web2c/pdftexdir/am/pdftex.am: Makefile fragment for pdfTeX. +## +## Copyright 2016-2021 Karl Berry <tex-live@tug.org> +## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org> +## You may freely use, modify and/or distribute this file. + +pdftex_cppflags = $(AM_CPPFLAGS) $(ZLIB_INCLUDES) $(LIBPNG_INCLUDES) $(XPDF_INCLUDES) +pdftex_cppflags += -I$(srcdir)/libmd5 -I$(srcdir)/pdftexdir + +# used for both pdftex and pdftosrc. +pdftex_ldadd = $(LIBPNG_LIBS) $(ZLIB_LIBS) $(XPDF_LIBS) libmd5.a + +pdftex_dependencies = $(proglib) $(KPATHSEA_DEPEND) +pdftex_dependencies += $(LIBPNG_DEPEND) $(ZLIB_DEPEND) $(XPDF_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 AM_V_P=$(AM_V_P) $(SHELL) ./tangle-sh $@ $(TANGLE) + +pdftex_CPPFLAGS = $(pdftex_cppflags) +pdftex_CXXFLAGS = $(WARNING_CXXFLAGS) + +# With --enable-ipc, pdfTeX may need to link with -lsocket. +pdftex_LDADD = libpdftex.a $(pdftex_ldadd) $(LDADD) $(ipc_socketlibs) + +pdftex_DEPENDENCIES = $(pdftex_dependencies) libpdftex.a + +# We must create libpdftex.a etc before building the pdftex_OBJECTS. +pdftex_prereq = libpdftex.a pdftexdir/etex_version.h pdftexdir/pdftex_version.h +$(pdftex_OBJECTS): $(pdftex_prereq) + +pdftex_c_h = pdftexini.c pdftex0.c pdftexcoerce.h pdftexd.h +nodist_pdftex_SOURCES = $(pdftex_c_h) pdftex-pool.c +dist_pdftex_SOURCES = pdftexdir/pdftexextra.c pdftexdir/pdftexextra.h \ + pdftexdir/pdftex_version.h pdftexdir/etex_version.h +$(pdftex_c_h): pdftex-web2c + @$(web2c) pdftex +pdftex-web2c: pdftex.p $(web2c_texmf) pdftexdir/pdftex.defines + @$(web2c) pdftex +pdftex.p pdftex.pool: pdftex-tangle + @$(pdf_tangle) pdftex pdftex-final +pdftex-tangle: tangle$(EXEEXT) pdftexdir/pdftex.web pdftex-final.ch tangle-sh + @$(pdf_tangle) pdftex pdftex-final +pdftex-pool.c: pdftex.pool pdftexd.h $(makecpool_stamp) + $(makecpool) pdftex >$@ || rm -f $@ + +# Extract pdftex version +$(srcdir)/pdftexdir/pdftex_version.h: @MAINTAINER_MODE_TRUE@ pdftexdir/pdftex.web + $(AM_V_GEN)grep '^@d pdftex_version_string==' $(srcdir)/pdftexdir/pdftex.web \ + | sed "s/^.*'-/#define PDFTEX_VERSION \"/;s/'.*$$/\"/" >$@ + +# Extract etex version +$(srcdir)/pdftexdir/etex_version.h: @MAINTAINER_MODE_TRUE@ pdftexdir/pdftex.web + $(AM_V_GEN)grep '^@d eTeX_version_string==' $(srcdir)/pdftexdir/pdftex.web \ + | sed "s/^.*'-/#define ETEX_VERSION \"/;s/'.*$$/\"/" >$@ + +# Generate pdftex-final.ch +pdftex-final.ch: tie$(EXEEXT) $(pdftex_ch_srcs) + $(tie_c) $(pdftex_ch_srcs) +pdftex_ch_srcs = \ + pdftexdir/pdftex.web \ + pdftexdir/tex.ch0 \ + tex.ch \ + tracingstacklevels.ch \ + zlib-fmt.ch \ + enctexdir/enctex1.ch \ + enctexdir/enctex-pdftex.ch \ + enctexdir/enctex2.ch \ + $(pdftex_ch_synctex) \ + pdftexdir/pdftex.ch \ + pdftexdir/char-warning-pdftex.ch \ + tex-binpool.ch + +# Convenience target for making the typeset output; not invoked automatically +pdftex.pdf: pdftex.tex + env MKTEXFMT=0 pdftex '\nonstopmode\input pdftex.tex' +pdftex.tex: $(srcdir)/pdftexdir/pdftex.web + weave $(srcdir)/pdftexdir/pdftex.web + +## +EXTRA_DIST += $(pdftex_ch_srcs) pdftexdir/pdftex.defines + +DISTCLEANFILES += $(nodist_pdftex_SOURCES) pdftex-final.ch pdftex-web2c \ + pdftex.p pdftex.pool pdftex-tangle + +EXTRA_DIST += \ + pdftexdir/ChangeLog \ + pdftexdir/NEWS \ + pdftexdir/README \ + pdftexdir/change-files.txt + +# pdfTeX tests +# +pdftex_tests = pdftexdir/wprob.test pdftexdir/pdftex.test \ + pdftexdir/pdfimage.test pdftexdir/expanded.test \ + pdftexdir/tests/cnfline.test + +pdftexdir/wprob.log pdftexdir/pdftex.log \ + pdftexdir/pdfimage.log pdftexdir/expanded.log \ + pdftexdir/cnfline.log: pdftex$(EXEEXT) + +EXTRA_DIST += $(pdftex_tests) + +if PDFTEX +TESTS += $(pdftex_tests) +endif PDFTEX + +## wprob.test +EXTRA_DIST += tests/wprob.tex +DISTCLEANFILES += pwprob.log pwprob.tex + +## pdfimage.test +EXTRA_DIST += pdftexdir/tests/pdfimage.tex \ + tests/1-4.jpg tests/B.pdf tests/basic.tex tests/lily-ledger-broken.png +DISTCLEANFILES += pdfimage.fmt pdfimage.log pdfimage.pdf + +## expanded.test +EXTRA_DIST += tests/expanded.tex tests/expanded.txt +DISTCLEANFILES += expanded.log + +## cnfline.test +EXTRA_DIST += tests/cnfline.tex +DISTCLEANFILES += cnfline.log diff --git a/Build/source/texk/web2c/pdftexdir/am/pdftosrc.am b/Build/source/texk/web2c/pdftexdir/am/pdftosrc.am new file mode 100644 index 00000000000..1e70468d801 --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/am/pdftosrc.am @@ -0,0 +1,42 @@ +## texk/web2c/pdftexdir/am/pdftosrc.am: Makefile fragment for pdftosrc. +## +## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org> +## You may freely use, modify and/or distribute this file. + +## pdftosrc +## +if PDFTEX +bin_PROGRAMS += pdftosrc +endif PDFTEX +EXTRA_PROGRAMS += pdftosrc + +# Force Automake to use CXXLD for linking +nodist_EXTRA_pdftosrc_SOURCES = dummy.cxx + +pdftosrc_CPPFLAGS = $(pdftex_cppflags) +pdftosrc_CXXFLAGS = $(WARNING_CXXFLAGS) + +pdftosrc_SOURCES = pdftexdir/pdftosrc.cc + +pdftosrc_LDADD = $(pdftex_ldadd) $(LDADD) + +pdftosrc_DEPENDENCIES = $(pdftex_dependencies) + +$(pdftosrc_OBJECTS): $(ZLIB_DEPEND) $(LIBPNG_DEPEND) $(XPDF_DEPEND) + +## Tests +## +pdftosrc_tests = pdftexdir/pdftosrc.test +pdftexdir/pdftosrc.log: pdftosrc$(EXEEXT) + +EXTRA_DIST += $(pdftosrc_tests) + +## pdftexdir/pdftosrc.test +EXTRA_DIST += pdftexdir/tests/test-13.pdf pdftexdir/tests/test-13.xref \ + pdftexdir/tests/test-15.pdf pdftexdir/tests/test-15.xref +DISTCLEANFILES += test-13.pdf test-13.xref test-15.pdf test-15.xref + +if PDFTEX +TESTS += $(pdftosrc_tests) +endif PDFTEX + diff --git a/Build/source/texk/web2c/pdftexdir/am/ttf2afm.am b/Build/source/texk/web2c/pdftexdir/am/ttf2afm.am new file mode 100644 index 00000000000..1eae9016737 --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/am/ttf2afm.am @@ -0,0 +1,37 @@ +## texk/web2c/pdftexdir/am/ttf2afm.am: Makefile fragment for ttf2afm. +## +## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org> +## You may freely use, modify and/or distribute this file. + +## ttf2afm +## +if PDFTEX +bin_PROGRAMS += ttf2afm +endif PDFTEX +EXTRA_PROGRAMS += ttf2afm + +ttf2afm_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/pdftexdir + +ttf2afm_SOURCES = pdftexdir/ttf2afm.c + +ttf2afm_DEPENDENCIES = $(default_dependencies) + +## included by pdftexdir/ttf2afm.c +EXTRA_ttf2afm_SOURCES = pdftexdir/macnames.c + +## Tests +## +ttf2afm_tests = pdftexdir/ttf2afm.test +pdftexdir/ttf2afm.log: ttf2afm$(EXEEXT) + +EXTRA_DIST += $(ttf2afm_tests) + +## pdftexdir/ttf1afm.test +EXTRA_DIST += pdftexdir/tests/postV3.afm pdftexdir/tests/postV3.ttf +EXTRA_DIST += pdftexdir/tests/postV7.afm pdftexdir/tests/postV7.ttf +DISTCLEANFILES += postV3.afm postV7.afm + +if PDFTEX +TESTS += $(ttf2afm_tests) +endif PDFTEX + |