1
1
## Makefile.am for the TeX Live subdirectory texk/web2c/
3
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
3
## Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org>
4
4
## You may freely use, modify and/or distribute this file.
6
ACLOCAL_AMFLAGS = -I ../../m4
6
ACLOCAL_AMFLAGS = -I ../../m4 -I m4
8
INCLUDES = -I$(top_builddir)/.. $(KPATHSEA_INCLUDES)
8
# First $(KPATHSEA_INCLUDES), then -I$(top_srcdir)/..
9
# for the case of installed (system) kpathsea headers.
10
INCLUDES = -I$(top_builddir)/.. $(KPATHSEA_INCLUDES) -I$(top_srcdir)/..
12
## Not yet for C, C++, and ObjC++ (too many warnings or not yet implemented)
13
AM_CFLAGS = $(WARNING_CFLAGS)
14
AM_CXXFLAGS = ## $(WARNING_CXXFLAGS)
15
## Not yet for ObjC++ (not yet implemented)
16
AM_OBJCXXFLAGS = ## $(WARNING_OBJCXXFLAGS)
10
18
version = $(WEB2CVERSION)
25
33
EXTRA_DIST = PROJECTS cftests config.h cpascal.h help.h
26
34
DISTCLEANFILES = $(EXTRA_LIBRARIES)
29
38
# in case of an SVN repository
31
40
rm -rf `find $(distdir) -name .svn`
33
42
## The sh script that does the conversion.
34
web2c = srcdir=$(srcdir) $(SHELL) $(srcdir)/web2c/convert
43
web2c = $(SHELL) ./web2c-sh $@
36
45
## We put this in the web2c directory because it runs on the build system, it
37
46
## is separate from (and simpler than) the actual web-to-C conversion programs.
43
52
# Thus we depend on the auxiliary files web2c/stamp-*.
44
53
web2c_stamps = web2c/stamp-fixwrites web2c/stamp-splitup web2c/stamp-web2c
45
54
makecpool_stamp = web2c/stamp-makecpool
46
web2c_depend = $(web2c_common) $(web2c_stamps)
55
web2c_depend = $(web2c_common) $(web2c_stamps) web2c-sh
47
56
web2c_texmf = $(web2c_depend) web2c/texmf.defines web2c/coerce.h
49
## This is right for most Web2C programs
58
# This is right for most Web2C programs
50
59
LDADD = $(proglib) $(KPATHSEA_LIBS)
52
## Automake automatically uses $(proglib)=lib/lib.a as dependency.
53
## This does not work for the configure substitution $(KPATHSEA_LIBS),
54
## thus we let $(proglib) artificially depend on $(KPATHSEA_LIBS).
57
$(proglib): $(KPATHSEA_DEPEND) ${srcdir}/lib/*.c
58
cd lib && $(MAKE) $(AM_MAKEFLAGS)
60
# Automake automatically uses $(proglib)=lib/lib.a as dependency.
61
# This does not work for the configure substitution $(KPATHSEA_LIBS),
62
# thus we must explicitly use these $(default_dependencies) for
63
# programs that do not depend on tangle or ctangle.
64
default_dependencies = $(proglib) $(KPATHSEA_DEPEND)
60
66
# Rebuild Web2C programs
61
67
web2c/stamp-fixwrites: $(web2c_common) ${srcdir}/web2c/*.[chly]
62
68
cd web2c && $(MAKE) $(AM_MAKEFLAGS) stamp-fixwrites
63
70
web2c/stamp-splitup: $(web2c_common) ${srcdir}/web2c/*.[chly]
64
71
cd web2c && $(MAKE) $(AM_MAKEFLAGS) stamp-splitup
65
73
web2c/stamp-web2c: $(web2c_common) ${srcdir}/web2c/*.[chly]
66
74
cd web2c && $(MAKE) $(AM_MAKEFLAGS) stamp-web2c
67
76
web2c/stamp-makecpool: $(web2c_common) ${srcdir}/web2c/makecpool.c
68
77
cd web2c && $(MAKE) $(AM_MAKEFLAGS) stamp-makecpool
80
$(proglib): ${srcdir}/lib/*.c
81
cd lib && $(MAKE) $(AM_MAKEFLAGS)
70
82
## Rebuild libkpathsea
86
100
## Rebuild libsicuxxx
89
## The environment for building.
103
# The environment for building.
90
104
buildenv = TEXMFCNF=$(srcdir)/../kpathsea
92
## Calling tangle & Co.
106
# Calling tangle & Co.
93
107
tangle = WEBINPUTS=.:$(srcdir) $(buildenv) $(TANGLE)
94
108
tangleboot = WEBINPUTS=.:$(srcdir) $(buildenv) $(TANGLEBOOT)
95
109
otangle = WEBINPUTS=.:$(srcdir) $(buildenv) $(OTANGLE)
96
110
ctangle = $(buildenv) $(CTANGLE)
97
ctangleboot = $(buildenv) $(CTANGLEBOOT)
98
111
tie = WEBINPUTS=.:$(srcdir) $(buildenv) $(TIE)
100
## For trip, trap, and other tests
113
# Calling tangle & Co. via tangle-sh (several output files)
114
texmf_tangle = WEBINPUTS=.:$(srcdir) $(SHELL) ./tangle-sh $@ $(TANGLE)
115
o_tangle = WEBINPUTS=.:$(srcdir) $(SHELL) ./tangle-sh $@ $(OTANGLE)
117
# For trip, trap, and other tests
103
120
TESTS_ENVIRONMENT = DIFF='$(DIFF)' DIFFFLAGS='$(DIFFFLAGS)' LN_S='$(LN_S)' KPSEWHICH='$(KPSEWHICH)'
105
## The environment for making dumps.
106
## No need to specify TEXMF, as ../kpathsea/texmf.cnf should contain
107
## suitable absolute paths at this point. Those are converted to
108
## SELFAUTO* paths on installation.
124
srcdir=$(srcdir) MAKE=$(MAKE) \
125
$(SHELL) $(srcdir)/triptrap-sh $(TRIPTRAP)
126
EXTRA_DIST += triptrap-sh
128
# The environment for making dumps.
129
# No need to specify TEXMF, as ../kpathsea/texmf.cnf should contain
130
# suitable absolute paths at this point. Those are converted to
131
# SELFAUTO* paths on installation.
109
132
dumpenv = TEXMFCNF=../kpathsea
111
134
## ################################
146
172
include $(srcdir)/luatexdir/am/luatex.am
147
include $(srcdir)/luatexdir/am/luatangle.am
148
173
include $(srcdir)/luatexdir/am/liblua51.am
149
include $(srcdir)/luatexdir/am/libzzip.am
150
174
include $(srcdir)/luatexdir/am/luasocket.am
151
175
include $(srcdir)/luatexdir/am/luamisc.am
152
176
include $(srcdir)/luatexdir/am/luafontforge.am
158
182
## omegaware web programs
159
183
include $(srcdir)/omegaware/am/omegaware.am
185
## programs required for 'make check' in omegafonts/ and omegaware/
187
check_PROGRAMS += pltotf tftopl
162
191
include $(srcdir)/alephdir/am/aleph.am