blob: 781564337c35b55fbafcef33490d87889547c022 (
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
# Makefile fragment for Omega and web2c. --infovore@xs4all.nl. Public domain.
# This fragment contains the parts of the makefile that are most likely to
# differ between releases of Omega.
Makefile: omegadir/omega.mk
omegafonts_programs = omegafonts/omfonts
otps_programs = otps/otp2ocp otps/outocp
omegafonts = omegafonts
otps = otps
odvicopy = odvicopy
odvitype = odvitype
otangle = otangle
omegaware_c = odvicopy.c odvitype.c otangle.c
omegaware_programs = $(otangle) $(odvicopy) $(odvitype)
omega_programs = $(omega) $(otangle) $(odvicopy) $(odvitype) \
$(otps_programs) $(omegafonts_programs)
# The otangle used in the build is not be the otangle we build if we are
# cross-compiling.
OTANGLE = @OTANGLE@
# Omegaware
odvicopy: odvicopy.o
$(kpathsea_link) odvicopy.o $(LOADLIBES)
odvicopy.c odvicopy.h: $(web2c_common) $(web2c_programs) odvicopy.p
$(web2c) odvicopy
odvicopy.p: tangle omegaware/odvicopy.web omegaware/odvicopy.ch
WEBINPUTS=$(srcdir)/omegaware $(TANGLE) odvicopy odvicopy
check: odvicopy-check
odvicopy-check: odvicopy
# ./odvicopy $(srcdir)/tests/story tests/xstory.dvi
## Redirect stderr so the terminal output will end up in the log file.
# (TFMFONTS=$(srcdir)/tests: ./odvicopy <$(srcdir)/tests/pplr.dvi \
# >tests/xpplr.dvi) 2>&1
clean:: odvicopy-clean
odvicopy-clean:
$(LIBTOOL) --mode=clean $(RM) odvicopy
rm -f odvicopy.o odvicopy.c odvicopy.h odvicopy.p
# rm -f tests/xstory.dvi tests/xpplr.dvi
odvitype: odvitype.o
$(kpathsea_link) odvitype.o $(LOADLIBES)
odvitype.c odvitype.h: $(web2c_common) $(web2c_programs) odvitype.p
$(web2c) odvitype
odvitype.p: tangle omegaware/odvitype.web omegaware/odvitype.ch
WEBINPUTS=$(srcdir)/omegaware $(TANGLE) odvitype odvitype
check: odvitype-check
odvitype-check: odvitype
# ./odvitype -show-opcodes $(srcdir)/tests/story >tests/xstory.dvityp
# ./odvitype --p=\*.\*.2 $(srcdir)/tests/pagenum.dvi >tests/xpagenum.typ
clean:: odvitype-clean
odvitype-clean:
$(LIBTOOL) --mode=clean $(RM) odvitype
rm -f odvitype.o odvitype.c odvitype.h odvitype.p
# rm -f tests/xstory.dvityp tests/xpagenum.typ
otangle: otangle.o
$(kpathsea_link) otangle.o $(LOADLIBES)
otangle.c otangle.h: $(web2c_common) $(web2c_programs) otangle.p
$(web2c) otangle
otangle.p: tangle omegaware/otangle.web omegaware/otangle.ch
WEBINPUTS=$(srcdir)/omegaware $(TANGLE) otangle otangle
check: otangle-check
otangle-check: otangle
# otangling omega is a good check already
clean:: otangle-clean
otangle-clean:
$(LIBTOOL) --mode=clean $(RM) otangle
rm -f otangle.o otangle.c otangle.h otangle.p
#
# Omega itself.
# We build omega
omega = @OMEGA@ omega
# The C sources.
omega_c = omegaini.c omega0.c omega1.c omega2.c omega3.c
omega_o = omegaini.o omega0.o omega1.o omega2.o \
omegaextra.o omega.o omegabis.o \
omega3.o
# Linking
omega: $(omega_o)
$(kpathsea_link) $(omega_o) $(socketlibs) $(LOADLIBES)
# The C files
$(omega_c) omegacoerce.h omegad.h: omega.p $(web2c_texmf)
$(web2c) omega
omegaextra.c: lib/texmfmp.c
sed s/TEX-OR-MF-OR-MP/omega/ $(srcdir)/lib/texmfmp.c >$@
# Additional C files, just copy them.
omega.c: omegadir/omega.c
-rm -f $@
cp $(srcdir)/omegadir/omega.c $@
omegabis.c: omegadir/omegabis.c
-rm -f $@
cp $(srcdir)/omegadir/omegabis.c $@
omegamem.h: omegadir/omegamem.h
-rm -f $@
cp $(srcdir)/omegadir/omegamem.h $@
# The Pascal file
omega.p omega.pool: otangle omega.web omega.ch
$(OTANGLE) omega.web omega.ch
# Generation of the web and ch files.
omega.web: tie tex.web omegadir/omega.mk
omega.web: omegadir/omnode.ch
omega.web: omegadir/om16bit.ch
omega.web: omegadir/omstr.ch
omega.web: omegadir/omfont.ch
omega.web: omegadir/omchar.ch
omega.web: omegadir/omfi.ch
omega.web: omegadir/ompar.ch
omega.web: omegadir/omocp.ch
omega.web: omegadir/omfilter.ch
omega.web: omegadir/omtrans.ch
omega.web: omegadir/omdir.ch
omega.web: omegadir/omxml.ch
$(TIE) -m omega.web $(srcdir)/tex.web \
$(srcdir)/omegadir/omnode.ch \
$(srcdir)/omegadir/om16bit.ch \
$(srcdir)/omegadir/omstr.ch \
$(srcdir)/omegadir/omfont.ch \
$(srcdir)/omegadir/omchar.ch \
$(srcdir)/omegadir/omfi.ch \
$(srcdir)/omegadir/ompar.ch \
$(srcdir)/omegadir/omocp.ch \
$(srcdir)/omegadir/omfilter.ch \
$(srcdir)/omegadir/omtrans.ch \
$(srcdir)/omegadir/omdir.ch \
$(srcdir)/omegadir/omxml.ch
omega.ch: tie omega.web omegadir/omega.mk
omega.ch: omegadir/comnode.ch
omega.ch: omegadir/com16bit.ch
omega.ch: omegadir/comstr.ch
omega.ch: omegadir/comfont.ch
omega.ch: omegadir/comchar.ch
omega.ch: omegadir/comfi.ch
omega.ch: omegadir/compar.ch
omega.ch: omegadir/comocp.ch
omega.ch: omegadir/comfilter.ch
omega.ch: omegadir/comtrans.ch
omega.ch: omegadir/comdir.ch
omega.ch: omegadir/comxml.ch
omega.ch: omegadir/comsrcspec.ch
$(TIE) -c omega.ch omega.web \
$(srcdir)/omegadir/comnode.ch \
$(srcdir)/omegadir/com16bit.ch \
$(srcdir)/omegadir/comstr.ch \
$(srcdir)/omegadir/comfont.ch \
$(srcdir)/omegadir/comchar.ch \
$(srcdir)/omegadir/comfi.ch \
$(srcdir)/omegadir/compar.ch \
$(srcdir)/omegadir/comocp.ch \
$(srcdir)/omegadir/comfilter.ch \
$(srcdir)/omegadir/comtrans.ch \
$(srcdir)/omegadir/comdir.ch \
$(srcdir)/omegadir/comxml.ch \
$(srcdir)/omegadir/comsrcspec.ch
# Check: right now all we do is build the format.
check: @OMEGA@ omega-check
omega-check: omega omega.fmt
# Cleaning up from building omega
clean:: omega-clean
omega-clean:
$(LIBTOOL) --mode=clean $(RM) omega
rm -f $(omega_c) omegaextra.c omegacoerce.h omegad.h
rm -f omega.c omegabis.c omegamem.h
rm -f omega.p omega.pool omega.web omega.ch
#
# Dumps.
all_ofmts = @FMU@ omega.fmt $(ofmts)
dumps: @OMEGA@ ofmts
ofmts: $(all_ofmts)
ofmtdir = $(web2cdir)/omega
$(ofmtdir)::
$(SHELL) $(top_srcdir)/../mkinstalldirs $(ofmtdir)
omega.fmt: omega
$(dumpenv) $(MAKE) progname=omega files="omega.tex" prereq-check
$(dumpenv) ./omega --progname=omega --jobname=omega --ini \\input omega.tex \\dump </dev/null
lambda.fmt: omega
$(dumpenv) $(MAKE) progname=lambda files="lambda.tex" prereq-check
$(dumpenv) ./omega --progname=lambda --jobname=lambda --ini \\input lambda.tex </dev/null
#
# Some additional programs for Omega: the programs themselves are named
# in the variable otps_programs, defined above.
otps/otp2ocp:
cd otps && $(MAKE) $(common_makeargs) otp2ocp
otps/outocp:
cd otps && $(MAKE) $(common_makeargs) outocp
omegafonts/omfonts:
cd omegafonts && $(MAKE) $(common_makeargs) omfonts
#
# Installation.
install-omega: install-omega-exec install-omega-data
install-omega-exec: install-omega-links
install-omega-data: install-omega-pool @FMU@ install-omega-dumps
install-omega-dumps: install-omega-fmts
# The actual binary executables and pool files.
install-programs: @OMEGA@ install-omega-programs
install-omega-programs: $(omega_programs) $(bindir)
for p in omega; do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
cd otps && $(MAKE) $(install_makeargs) install-programs
cd omegafonts && $(MAKE) $(install_makeargs) install-programs
install-links: @OMEGA@ install-omega-links
install-omega-links: install-omega-programs
cd omegafonts && $(MAKE) $(install_makeargs) install-links
#cd $(bindir) && (rm -f iniomega viromega; \
# $(LN) omega iniomega; $(LN) omega viromega)
# Always do plain.*, so examples from the TeXbook (etc.) will work.
install-fmts: @OMEGA@ install-omega-fmts
install-omega-fmts: ofmts $(ofmtdir)
ofmts="$(all_ofmts)"; \
for f in $$ofmts; do $(INSTALL_DATA) $$f $(ofmtdir)/$$f; done
ofmts="$(ofmts)"; \
for f in $$ofmts; do base=`basename $$f .fmt`; \
(cd $(bindir) && (rm -f $$base; $(LN) omega $$base)); done
# Auxiliary files.
install-data:: @OMEGA@ install-omega-data
install-omega-pool: omega.pool $(texpooldir)
$(INSTALL_DATA) omega.pool $(texpooldir)/omega.pool
# end of omega.mk
|