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/mpdir | |
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/mpdir')
-rw-r--r-- | Build/source/texk/web2c/mpdir/Makefile.in.orig | 41 | ||||
-rw-r--r-- | Build/source/texk/web2c/mpdir/am/mp.am | 59 |
2 files changed, 100 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mpdir/Makefile.in.orig b/Build/source/texk/web2c/mpdir/Makefile.in.orig new file mode 100644 index 00000000000..8b51105e713 --- /dev/null +++ b/Build/source/texk/web2c/mpdir/Makefile.in.orig @@ -0,0 +1,41 @@ +# @configure_input@ +# Makefile for libmpost - taco@elvenkind.com, but +# mostly ripped off from Makefile.in from pdftex +# $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) +CXX = @CXX@ + +XCPPFLAGS=-I.. -I$(srcdir)/.. -I../.. -I$(srcdir)/../.. + +OBJS = mapfile.o avl.o avlstuff.o utils.o writeenc.o writet1.o writefont.o turningnumber.o + +all: libmpost.a makecpool + +libmpost.a: $(OBJS) + rm -f $@ + $(AR) $(ARFLAGS) $@ $(OBJS) + $(RANLIB) $@ + +makecpool: makecpool.o + $(link_command) makecpool.o + +kpse_include ../make/clean.mk + +clean:: + rm -f libmpost.a makecpool + +depend: + rm -f $(OBJS) + XXCFLAGS=-MM XCFLAGS=-MM $(MAKE) -k $(OBJS) | \ + grep -v "^$(CC)\|$(CXX)\|$(AR)\|make" | \ + sed 's: [^ ]*/\.\./libs/[^ ]*::g' > $(srcdir)/depend.mk + +kpse_include mpdir/depend.mk diff --git a/Build/source/texk/web2c/mpdir/am/mp.am b/Build/source/texk/web2c/mpdir/am/mp.am new file mode 100644 index 00000000000..eb89d5b0e96 --- /dev/null +++ b/Build/source/texk/web2c/mpdir/am/mp.am @@ -0,0 +1,59 @@ +## texk/web2c/mpdir/am/mp.am: Makefile fragment for MetaPost. + +## MetaPost +## +if MP +bin_PROGRAMS += mpost +endif MP + +mpost_CPPFLAGS = -I$(srcdir)/mpdir +mpost_LDADD = libmpost.a $(LDADD) +mpost_c_h = mpini.c mp0.c mp1.c mp2.c mpcoerce.h mpd.h +nodist_mpost_SOURCES = $(mpost_c_h) mp-pool.c mpextra.c +$(mpost_c_h): mp-web2c +mp-web2c: mp.p $(web2c_texmf) mpdir/mp.defines web2c/cvtmf1.sed web2c/cvtmf2.sed + $(web2c) mp + echo timestamp >$@ + touch $(mpost_c_h) +EXTRA_DIST += mp.web mp.ch lib/texmfmp.c mpdir/mp.defines mpdir/mplib.h +mpextra.c: lib/texmfmp.c mpd.h + sed s/TEX-OR-MF-OR-MP/mp/ $(srcdir)/lib/texmfmp.c >$@ +mp.p mp.pool: mp-tangle +mp-tangle: tangle mp.web mp.ch + $(tangle) mp mp + echo timestamp >$@ + touch mp.p mp.pool +mp-pool.c: mp.pool $(makecpool) mpdir/mplib.h + $(makecpool) mp.pool $(srcdir)/mpdir/mplib.h >$@ || rm -f $@ +DISTCLEANFILES += $(nodist_mpost_SOURCES) mp-web2c \ + mp.p mp.pool mp-tangle + +## libmpost +## +EXTRA_LIBRARIES += libmpost.a + +libmpost_a_CPPFLAGS = -I$(srcdir)/mpdir + +libmpost_a_SOURCES = \ + mpdir/avl.c \ + mpdir/avl.h \ + mpdir/avlstuff.c \ + mpdir/avlstuff.h \ + mpdir/mapfile.c \ + mpdir/mpmac.h \ + mpdir/turningnumber.c \ + mpdir/utils.c \ + mpdir/writeenc.c \ + mpdir/writefont.c \ + mpdir/writet1.c + +## We must create mpd.h before compiling the libmpost_a_SOURCES. +$(libmpost_a_SOURCES): mpd.h + +## Eventually delete these files +## +EXTRA_DIST += \ + metapost.mk \ + mpdir/Makefile.in.orig \ + mpdir/mpostlib.mk + |