blob: 77d97ab50edfd85db907b0c1ef25b5c99d65b1fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
## texk/web2c/omegadir/am/omega.am: Makefile fragment for Omega.
## Omega
##
if OMEGA
bin_PROGRAMS += omega
endif OMEGA
## With --enable-ipc, Omega may need to link with -lsocket.
omega_LDADD = $(LDADD) $(socketlibs)
omega_CPPFLAGS = -I$(srcdir)/omegadir $(AM_CPPFLAGS)
omega_c_h = omegaini.c omega0.c omega1.c omega2.c omega3.c omegacoerce.h omegad.h
nodist_omega_SOURCES = $(omega_c_h) omega-pool.c omegaextra.c
omega_SOURCES = \
omegadir/omega.c \
omegadir/omegabis.c \
omegadir/omegaextra.h \
omegadir/omegamem.h \
omegadir/omega-pool.h
## We must create omegad.h before compiling the omega_SOURCES,
## but certainly don't want to create omegad.h if Omega is not built.
if OMEGA
$(omega_SOURCES): omegad.h
endif OMEGA
$(omega_c_h): omega-web2c
omega-web2c: omega.p $(web2c_texmf) omegadir/omega.defines
$(web2c) omega
echo timestamp >$@
touch $(omega_c_h)
omegaextra.c: lib/texmfmp.c omegad.h
sed s/TEX-OR-MF-OR-MP/omega/ $(srcdir)/lib/texmfmp.c >$@
omega.p omega.pool: omega-tangle
omega-tangle: otangle omega.web omega.ch
$(otangle) omega omega
echo timestamp >$@
touch omega.p omega.pool
omega-pool.c: omega.pool $(makecpool) omegadir/omega-pool.h
$(makecpool) omega.pool $(srcdir)/omegadir/omega-pool.h >$@ || rm -f $@
## Generate omega.web
omega_web_srcs = \
tex.web \
omegadir/omnode.ch \
omegadir/om16bit.ch \
omegadir/omstr.ch \
omegadir/omfont.ch \
omegadir/omchar.ch \
omegadir/omfi.ch \
omegadir/ompar.ch \
omegadir/omocp.ch \
omegadir/omfilter.ch \
omegadir/omtrans.ch \
omegadir/omdir.ch \
omegadir/omcprt.ch \
omegadir/omxml.ch
omega.web: $(TIE) $(omega_web_srcs)
$(tie) -m omega.web $(omega_web_srcs)
## Generate omega.ch
omega_ch_srcs = \
omegadir/comnode.ch \
omegadir/com16bit.ch \
omegadir/comstr.ch \
omegadir/comfont.ch \
omegadir/comchar.ch \
omegadir/comfi.ch \
omegadir/compar.ch \
omegadir/comocp.ch \
omegadir/comfilter.ch \
omegadir/comtrans.ch \
omegadir/comdir.ch \
omegadir/comxml.ch \
omegadir/comsrcspec.ch
omega.ch: $(TIE) omega.web $(omega_ch_srcs)
$(tie) -c omega.ch omega.web $(omega_ch_srcs)
EXTRA_DIST += $(omega_web_srcs) $(omega_ch_srcs) lib/texmfmp.c
DISTCLEANFILES += $(nodist_omega_SOURCES) omega.web omega.ch omega-web2c \
omega.p omega.pool omega-tangle
EXTRA_DIST += \
omegadir/ChangeLog \
omegadir/README \
omegadir/omega.defines \
omegadir/omega.version
## Eventually delete these files
##
EXTRA_DIST += omegadir/omega.mk
|