blob: 923eca7bce069d7c274c340b2008bda6de2116ef (
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
|
################################################################################
#
# Makefile : Omega, web2c win32.mak makefile fragment to build Omega
# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <04/03/20 16:43:02 popineau>
#
################################################################################
# e-Omega itself.
# We build eomega
eomega = $(objdir)\eomega.exe
!ifdef TEX_DLL
eomega = $(eomega) $(objdir)\$(library_prefix)eomega.dll
!endif
# The C sources.
eomega_c = eomega.c
eomega_o = $(objdir)\eomega.obj $(objdir)\eomegafirst.obj $(objdir)\eomegabis.obj
# Generation of the web and ch files.
omegadir = .\omegadir-1.15
eomegadir = .\eomegadir
#
# e-Omega is build without the xml support
# so we can't reuse omega.web and omega.ch
# we need to build stripped down versions
#
eomega_files = \
# $(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)\omxml.ch # We don't want this one, really, do we?
$(eomegadir)\eocprt.ch \
$(eomegadir)\eobase.ch \
$(eomegadir)\eomem-rc1.ch \
$(eomegadir)\eo16bit-rc1.ch \
$(eomegadir)\eofix.ch \
$(eomegadir)\eofix2.ch \
$(eomegadir)\eoeqtb.ch \
$(eomegadir)\eonewdir-rc1.ch \
$(eomegadir)\eover-rc1.ch
eomega_changefiles = \
$(eomegadir)\omega.ch0 \
# $(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 \
$(omegadir)\comw32.ch \
$(eomegadir)\omega.ch1 \
$(eomegadir)\eomega.ech \
$(eomegadir)\omega.ch2
# Linking
!ifdef TEX_DLL
$(ojbdir)\$(library_prefix)eomega.exp: $(objdir)\$(library_prefix)eomega.lib
$(objdir)\$(library_prefix)eomega.lib: $(eomega_o)
$(archive) /DEF $(eomega_o)
$(objdir)\$(library_prefix)eomega.dll: $(eomega_o) $(objdir)\$(library_prefix)eomega.exp $(objdir)\eomega.res $(omegalibsdep) $(kpathsealib) $(proglib)
$(link_dll) $(**) $(conlibs)
$(objdir)\eomega.exe: $(objdir)\win32main.obj $(objdir)\$(library_prefix)eomega.lib $(proglib)
$(link) $(**) $(socketslib) $(conlibs)
!else
$(objdir)\eomega.exe: $(eomega_o) $(objdir)\win32main.obj $(kpathsealib) $(proglib)
$(link) $(**) $(socketlibs) $(conlibs)
!endif
# The C files
$(eomega_c) eomegacoerce.h eomegad.h: eomega.p $(web2c_texmf)
$(web2c) eomega
# Additional C files, just copy them.
eomegafirst.c: omegadir\omega.c
-$(del) $@
$(copy) $(srcdir)\omegadir\omega.c $@
eomegabis.c: omegadir\omegabis.c
-$(del) $@
$(copy) $(srcdir)\omegadir\omegabis.c $@
eomegamem.h: omegadir\omegamem.h
-$(del) $@
$(copy) $(srcdir)\omegadir\omegamem.h $@
# The Pascal file
eomega.p eomega.pool: $(objdir)\otangle.exe eomega.web eomega.ch
$(objdir)\otangle eomega.web eomega.ch
# Generation of the web and ch files.
eomega.web: $(objdir)\tie.exe tex.web $(eomega_files)
$(objdir)\tie.exe -m $@ tex.web $(eomega_files)
eomega.ch: $(objdir)\tie.exe eomega.web $(eomega_changefiles)
$(objdir)\tie.exe -c $@ eomega.web $(eomega_changefiles)
# Check: right now all we do is build the format.
check: eomega-check
eomega-check: eomega eomega.eoft
# Cleaning up from building omega
clean:: eomega-clean
eomega-clean:
-@echo $(verbose) & ( \
for %%i in ($(eomega_c) eomegaextra.c eomegacoerce.h eomegad.h \
eomegafirst.c eomegabis.c eomegamem.h \
eomega.p eomega.pool eomega.web eomega.ch) do $(del) %%i $(redir_stderr) \
)
#
# Dumps.
# all_eofmts = eomega.eoft $(eofmts)
#
# dumps: eofmts
# eofmts: $(all_eofmts)
#
# eomega.eoft: $(eomega)
# $(dumpenv) $(make) progname=eomega files="omega.tex" prereq-check
# $(dumpenv) .\$(objdir)\eomega --ini --progname=eomega --jobname=eomega "\\input omega.tex \\dump" < nul
#
# elambda.eoft: $(eomega)
# $(dumpenv) $(make) progname=elambda files="lambda.tex" prereq-check
# $(dumpenv) .\$(objdir)\eomega --ini --progname=elambda --progname=elambda --jobname=elambda "\\input lambda.tex" < nul
#
# Installation.
install-eomega: install-eomega-exec install-eomega-data
install-eomega-exec: install-eomega-links
# install-eomega-data: install-eomega-dumps
install-eomega-dumps: install-eomega-fmts
# The actual binary executables and pool files.
install-programs: install-eomega-programs
install-eomega-programs: $(eomega) $(bindir)
-@echo $(verbose) & ( \
for %%p in ($(eomega)) do copy %%p $(bindir) $(redir_stdout) \
)
install-links: install-eomega-links
install-eomega-links: install-eomega-programs
# -@echo $(verbose) & ( \
# pushd $(bindir) & \
# $(del) inieomega.exe vireomega.exe & \
# $(lnexe) .\eomega.exe .\inieomega.exe & \
# $(lnexe) .\eomega.exe .\vireomega.exe & \
# popd \
# ) $(redir_stdout)
-@echo $(verbose) & ( \
if not "$(eofmts)"=="" \
for %%i in ($(eofmts)) do \
pushd $(bindir) & \
$(del) .\%%~ni.exe & \
$(lnexe) .\eomega.exe $(bindir)\%%~ni.exe & \
popd \
) $(redir_stdout)
install-fmts: install-eomega-fmts
install-eomega-fmts: eofmts $(fmtdir)
-@echo $(verbose) & ( \
if not "$(eofmts)"=="" \
for %%f in ($(eofmts)) do $(copy) %%f $(fmtdir)\%%f $(redir_stdout) \
) $(redir_stdout)
# Auxiliary files.
install-data:: install-eomega-data
install-eomega-data: $(texpooldir)
@$(copy) eomega.pool $(texpooldir)\eomega.pool $(redir_stdout)
# end of eomega.mak
#
# Local variables:
# page-delimiter: "^# \f"
# mode: Makefile
# End:
|