diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-19 13:59:30 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-19 13:59:30 +0000 |
commit | 0b7b2c69ec83497d9accab064da0f4ad07662d42 (patch) | |
tree | e8f22a2acecbf3035850f56beb1c8161c53cdf2d /Build/source/texk/web2c/pdftexdir | |
parent | ee507bbd1fc483c58acb33cca25509a4dd81df9b (diff) |
prepare for new build system
git-svn-id: svn://tug.org/texlive/trunk@12429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/Makefile.in.orig | 71 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/am/pdftex.am | 163 |
2 files changed, 234 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/Makefile.in.orig b/Build/source/texk/web2c/pdftexdir/Makefile.in.orig new file mode 100644 index 00000000000..23b083a5be0 --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/Makefile.in.orig @@ -0,0 +1,71 @@ +# Makefile for libpdf - te@dbs.uni-hannover.de +# $Id$ + +kpse_include ../make/common.mk +kpse_include ../make/programs.mk +kpse_include ../make/library.mk + +kpathsea_srcdir_parent = $(srcdir)/../.. +kpathsea_dir_parent = ../.. + +ALL_CXXFLAGS = @CXXFLAGS@ @DEFS@ $(XXCFLAGS) \ + -I. -I$(srcdir) \ + -I$(kpathsea_dir_parent) -I$(kpathsea_srcdir_parent) \ + @LIBXPDFCPPFLAGS@ \ + -I$(LIBOBSDCOMPATDIR) -I$(LIBOBSDCOMPATDIR)/.. \ + -I$(LIBOBSDCOMPATSRCDIR) -I$(LIBOBSDCOMPATSRCDIR)/.. \ + -DPDF_PARSER_ONLY +CXX = @CXX@ + +.SUFFIXES: .cc .o +.cc.o: + $(CXX) $(ALL_CXXFLAGS) -c $< + +# XCFLAGS=-Wstrict-prototypes -Wmissing-prototypes + +LIBPNGDIR=../../../libs/libpng +LIBPNGSRCDIR=$(srcdir)/$(LIBPNGDIR) + +ZLIBDIR=../../../libs/zlib +ZLIBSRCDIR=$(srcdir)/$(ZLIBDIR) + +LIBXPDFDIR=../../../libs/xpdf +LIBXPDFSRCDIR=$(srcdir)/$(LIBXPDFDIR) + +LIBMD5DIR=../../../libs/md5 +LIBMD5SRCDIR=$(srcdir)/$(LIBMD5DIR) + +LIBOBSDCOMPATDIR=../../../libs/obsdcompat +LIBOBSDCOMPATSRCDIR=$(srcdir)/$(LIBOBSDCOMPATDIR) + +XCPPFLAGS=-I.. -I$(srcdir)/.. -I../.. -I$(srcdir)/../.. -I$(LIBMD5DIR) \ + -I$(LIBMD5SRCDIR) @LIBPNGCPPFLAGS@ @ZLIBCPPFLAGS@ \ + -I$(LIBXPDFDIR) -I$(LIBXPDFDIR)/.. -I$(LIBXPDFSRCDIR) -I$(LIBXPDFSRCDIR)/.. \ + -I$(LIBOBSDCOMPATDIR) -I$(LIBOBSDCOMPATDIR)/.. -I$(LIBOBSDCOMPATSRCDIR) \ + -I$(LIBOBSDCOMPATSRCDIR)/.. -DpdfTeX + +OBJS = epdf.o mapfile.o utils.o vfpacket.o pkin.o \ +writefont.o writet1.o writet3.o writezip.o writeenc.o writettf.o \ +writejpg.o writejbig2.o writepng.o writeimg.o pdftoepdf.o avl.o avlstuff.o subfont.o tounicode.o + +all: libpdf.a + +pdftosrc.o: $(srcdir)/pdftosrc.cc + +libpdf.a: $(OBJS) + rm -f $@ + $(AR) $(ARFLAGS) $@ $(OBJS) + $(RANLIB) $@ + +kpse_include ../make/clean.mk + +clean:: + rm -f libpdf.a ttf2afm pdftosrc + +depend: + rm -f $(OBJS) ttf2afm.o pdftosrc.o + XXCFLAGS=-MM XCFLAGS=-MM $(MAKE) -k $(OBJS) ttf2afm.o pdftosrc.o | \ + grep -v "^$(CC)\|$(CXX)\|$(AR)\|make\" | \ + sed 's: [^ ]*/\.\./libs/[^ ]*::g' > $(srcdir)/depend.mk + +kpse_include pdftexdir/depend.mk 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..f51b3a3e4af --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/am/pdftex.am @@ -0,0 +1,163 @@ +## 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 + +## 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 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 + +## We must create pdftexd.h before compiling the libpdftex_a_SOURCES, +## but certainly don't want to create pdftexd.h if pdfTeX is not built. +if PDFTEX +$(libpdftex_a_SOURCES): pdftexd.h +endif PDFTEX + +## included by pdftexdir/writettf.c +EXTRA_libpdftex_a_SOURCES = pdftexdir/macnames.c + +EXTRA_DIST += \ + pdftexdir/ChangeLog \ + pdftexdir/NEWS \ + pdftexdir/README \ + pdftexdir/change-files.txt + +## Not used +## +EXTRA_DIST += \ + pdftexdir/.indent.pro \ + pdftexdir/pdftex.mak + +## Eventually delete these files +## +EXTRA_DIST += \ + pdftexdir/Makefile.in.orig \ + pdftexdir/pdftex.mk \ + pdftexdir/pdftexlib.mk + |