synch with TL 38104
[luatex.git] / source / texk / web2c / alephdir / am / aleph.am
blobb38459699310c5c580f52a545e96975bee46440c
1 ## texk/web2c/alephdir/am/aleph.am: Makefile fragment for Aleph.
2 ##
3 ## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
4 ## You may freely use, modify and/or distribute this file.
6 ## Aleph
7 ##
8 if ALEPH
9 bin_PROGRAMS += aleph
10 endif ALEPH
11 EXTRA_PROGRAMS += aleph
13 al_tangle = WEBINPUTS=.:$(srcdir) AM_V_P=$(AM_V_P) $(SHELL) ./tangle-sh $@ $(OTANGLE)
15 # With --enable-ipc, Aleph may need to link with -lsocket.
16 aleph_LDADD = $(LDADD) $(ipc_socketlibs)
18 aleph_CPPFLAGS = -I$(srcdir)/alephdir $(AM_CPPFLAGS)
20 # Aleph C sources
21 aleph_c_h = alephini.c aleph0.c alephcoerce.h alephd.h
22 nodist_aleph_SOURCES = $(aleph_c_h) aleph-pool.c
23 dist_aleph_SOURCES = \
24         alephdir/aleph.c \
25         alephdir/alephbis.c \
26         alephdir/alephextra.c \
27         alephdir/alephextra.h \
28         alephdir/alephmem.h
30 # We must create alephd.h before building the aleph_OBJECTS.
31 $(aleph_OBJECTS): alephd.h
33 $(aleph_c_h): aleph-web2c
34         @$(web2c) aleph
35 aleph-web2c: aleph.p $(web2c_texmf) alephdir/aleph.defines
36         @$(web2c) aleph
37 aleph-pool.c: aleph.pool alephd.h $(makecpool_stamp)
38         $(makecpool) aleph >$@ || rm -f $@
40 # Tangling Aleph
41 aleph.p aleph.pool: aleph-tangle
42         @$(al_tangle) aleph aleph
43 aleph-tangle: otangle$(EXEEXT) aleph.web aleph.ch tangle-sh
44         @$(al_tangle) aleph aleph
46 # Generate aleph.web
47 aleph_web_srcs = \
48         tex.web \
49         alephdir/om16bit.ch \
50         alephdir/omstr.ch \
51         alephdir/omfont.ch \
52         alephdir/omchar.ch \
53         alephdir/omfi.ch \
54         alephdir/ompar.ch \
55         alephdir/omocp.ch \
56         alephdir/omfilter.ch \
57         alephdir/omtrans.ch \
58         alephdir/omdir.ch \
59         alephdir/eobase.ch \
60         alephdir/eofmt.ch \
61         alephdir/eomem.ch \
62         alephdir/eo16bit.ch \
63         alephdir/eoext.ch \
64         alephdir/eoeqtb.ch \
65         alephdir/eofix.ch \
66         alephdir/eocprt.ch \
67         alephdir/eonewdir.ch \
68         alephdir/eover.ch \
69         alephdir/eopage.ch \
70         alephdir/eochar.ch
71 aleph.web: tie$(EXEEXT) $(aleph_web_srcs)
72         $(tie_m) $(aleph_web_srcs)
74 # Generate aleph.ch
75 aleph_ch_srcs = \
76         alephdir/com16bit.ch \
77         alephdir/comstr.ch \
78         alephdir/comfont.ch \
79         alephdir/comchar.ch \
80         alephdir/comfi.ch \
81         alephdir/compar.ch \
82         alephdir/comocp.ch \
83         alephdir/comfilter.ch \
84         alephdir/comtrans.ch \
85         alephdir/comdir.ch \
86         alephdir/comsrcspec.ch \
87         alephdir/ceostuff.ch
88 aleph.ch: tie$(EXEEXT) aleph.web $(aleph_ch_srcs)
89         $(tie_c) aleph.web $(aleph_ch_srcs)
92 EXTRA_DIST += $(aleph_web_srcs) $(aleph_ch_srcs)
94 DISTCLEANFILES += $(nodist_aleph_SOURCES) aleph.web aleph.ch aleph-web2c \
95         aleph.p aleph.pool aleph-tangle
97 EXTRA_DIST += \
98         alephdir/ChangeLog \
99         alephdir/aleph.defines \
100         alephdir/aleph.version
102 # Aleph Tests
104 aleph_tests = alephdir/aleph.test
105 alephdir/aleph.log: aleph$(EXEEXT)
107 EXTRA_DIST += $(aleph_tests)
109 if ALEPH
110 TESTS += $(aleph_tests)
111 endif ALEPH