blob: 97f10fb3741cf7786d9ba9e5d93abadebc4ef6e0 [file] [log] [blame]
Guido van Rossum228d8072001-03-02 05:58:11 +00001# RISC OS Python
2LIBSROOT = $.AcornC_C++.Libraries
3
4# You may need to change some of the following
5OSLIB = $(LIBSROOT).OSLib
6CLIB = $(LIBSROOT).clib
Guido van Rossum622cc032001-10-24 20:04:51 +00007TCPIPLIB = $(LIBSROOT).TCPIPLibs
Guido van Rossum228d8072001-03-02 05:58:11 +00008DLKLIB = $(LIBSROOT).dlk
9ZLIB = $(LIBSROOT).zlib
Martin v. Löwisa94568a2003-05-10 07:36:56 +000010BZLIB = $(LIBSROOT).bzlib
Guido van Rossum228d8072001-03-02 05:58:11 +000011EXPAT = $(LIBSROOT).expat.lib
12
Martin v. Löwisa94568a2003-05-10 07:36:56 +000013OBJSCAN = $(DLKLIB).objscan
14MAKEDLK = $(DLKLIB).makedlk
Guido van Rossum228d8072001-03-02 05:58:11 +000015
Guido van Rossumbceccf52001-04-10 22:07:43 +000016# change from time to time (don't forget to change !Boot also)
Martin v. Löwisa94568a2003-05-10 07:36:56 +000017TARGET=Python23
18BUILD=40
Guido van Rossum228d8072001-03-02 05:58:11 +000019
20
21#
22# You shouldn't need to change anything below this line
23#
Guido van Rossum228d8072001-03-02 05:58:11 +000024DLKFLAG= -DDLK
Guido van Rossumbceccf52001-04-10 22:07:43 +000025DLKOBJS = $(DLKLIB).o.dlk_load @.o.linktab
Guido van Rossum228d8072001-03-02 05:58:11 +000026
Guido van Rossum622cc032001-10-24 20:04:51 +000027HEADERS = @,$(TCPIPLIB),@.^.Include,@.^.Modules,@.^.Objects,@.^.Python,$(CLIB),$(OSLIB),$(DLKLIB)
Guido van Rossum228d8072001-03-02 05:58:11 +000028
Guido van Rossum622cc032001-10-24 20:04:51 +000029CFLAGS = -c $(DLKFLAG) -DRISCOS -DHAVE_CONFIG_H -wadP -throwback -APCS 3/32bit/fpe3
30
31CC = cc $(CFLAGS) -j$(HEADERS)
32CCEXPAT = cc $(CFLAGS) -j$(HEADERS),$(EXPAT) -DHAVE_EXPAT_H
Guido van Rossum228d8072001-03-02 05:58:11 +000033
34LINK = link
Guido van Rossumbceccf52001-04-10 22:07:43 +000035LINKFLAGS = -aif #-NOUNUSED #-d
Guido van Rossum622cc032001-10-24 20:04:51 +000036LOADLIBS = $(TCPIPLIB).o.unixlib $(TCPIPLIB).o.inetlib $(TCPIPLIB).o.socklib $(CLIB).o.Stubs $(OSLIB).o.OSLib32 $(DLKOBJS)
37
38LIBFILE = libfile -c
Guido van Rossum228d8072001-03-02 05:58:11 +000039
40
41.c.o :
42 $(CC) -o $@ $*.c
43
Guido van Rossum622cc032001-10-24 20:04:51 +000044MAIN_PYTHON =\
45 @.^.Modules.o.python
46
47LIB_PYTHON =\
48 @.^.LibPython
Guido van Rossum228d8072001-03-02 05:58:11 +000049
50# code for main Python binary
Guido van Rossumbceccf52001-04-10 22:07:43 +000051MODULES_STATIC =\
Guido van Rossumbceccf52001-04-10 22:07:43 +000052 @.^.Modules.o.main\
Guido van Rossum622cc032001-10-24 20:04:51 +000053 @.Modules.o.config\
Guido van Rossumbceccf52001-04-10 22:07:43 +000054 @.^.Modules.o.getbuildinfo\
Guido van Rossum622cc032001-10-24 20:04:51 +000055 @.Modules.o.getpath_riscos\
56 @.Modules.o.riscosmodule\
57 @.^.Modules.o.gcmodule
Guido van Rossum228d8072001-03-02 05:58:11 +000058
59
60# dynamic Modules
Guido van Rossumbceccf52001-04-10 22:07:43 +000061MODULES_DYNAMIC =\
62 @.^.Lib.array/pyd\
63 @.^.Lib.audioop/pyd\
64 @.^.Lib.binascii/pyd\
Martin v. Löwisa94568a2003-05-10 07:36:56 +000065 @.^.Lib.bz2/pyd\
Guido van Rossumbceccf52001-04-10 22:07:43 +000066 @.^.Lib.cmath/pyd\
67 @.^.Lib.cPickle/pyd\
68 @.^.Lib.cStringIO/pyd\
Martin v. Löwisa94568a2003-05-10 07:36:56 +000069 @.^.Lib.datetime/pyd\
Guido van Rossumbceccf52001-04-10 22:07:43 +000070 @.^.Lib.errno/pyd\
71 @.^.Lib.imageop/pyd\
Martin v. Löwisa94568a2003-05-10 07:36:56 +000072 @.^.Lib.itertools/pyd\
Guido van Rossumbceccf52001-04-10 22:07:43 +000073 @.^.Lib.math/pyd\
74 @.^.Lib.md5/pyd\
Guido van Rossumbceccf52001-04-10 22:07:43 +000075 @.^.Lib.operator/pyd\
76 @.^.Lib.parser/pyd\
77 @.^.Lib.pcre/pyd\
78 @.^.Lib.regex/pyd\
79 @.^.Lib.rgbimg/pyd\
80 @.^.Lib.rotor/pyd\
81 @.^.Lib.sha/pyd\
82 @.^.Lib.signal/pyd\
83 @.^.Lib.struct/pyd\
84 @.^.Lib.time/pyd\
85 @.^.Lib._locale/pyd\
86 @.^.Lib.zlib/pyd\
87 @.^.Lib.select/pyd\
88 @.^.Lib._socket/pyd\
89 @.^.Lib._codecs/pyd\
90 @.^.Lib._weakref/pyd\
91 @.^.Lib._testcapi/pyd\
92 @.^.Lib.unicodedata/pyd\
93 @.^.Lib.xreadlines/pyd\
94 @.^.Lib.pyexpat/pyd\
95 @.^.Lib.plat-riscos.drawf/pyd\
96 @.^.Lib.plat-riscos.swi/pyd\
Guido van Rossum622cc032001-10-24 20:04:51 +000097 @.^.Lib._sre/pyd\
98 @.^.Lib.xxsubtype/pyd\
Martin v. Löwisa94568a2003-05-10 07:36:56 +000099 @.^.Lib._symtable/pyd\
100 @.^.Lib._random/pyd\
101 @.^.Lib.zipimport/pyd\
102 @.^.Lib._csv/pyd
Guido van Rossum228d8072001-03-02 05:58:11 +0000103
104
Guido van Rossumbceccf52001-04-10 22:07:43 +0000105OBJECTS_PYTHON =\
106 @.^.Python.o.traceback\
107 @.^.Python.o.sysmodule\
108 @.^.Python.o.structmember\
109 @.^.Python.o.strdup\
110 @.^.Python.o.sigcheck\
111 @.^.Python.o.pythonrun\
112 @.^.Python.o.pystate\
113 @.^.Python.o.pyfpe\
114 @.^.Python.o.mystrtoul\
Guido van Rossum622cc032001-10-24 20:04:51 +0000115 @.^.Python.o.mysnprintf\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000116 @.^.Python.o.modsupport\
117 @.^.Python.o.marshal\
118 @.^.Python.o.importdl\
119 @.^.Python.o.import\
120 @.^.Python.o.graminit\
121 @.^.Python.o.getversion\
122 @.^.Python.o.getplatform\
123 @.^.Python.o.getopt\
124 @.^.Python.o.getcopyright\
125 @.^.Python.o.getcompiler\
126 @.^.Python.o.getargs\
127 @.^.Python.o.frozenmain\
128 @.^.Python.o.frozen\
129 @.^.Python.o.errors\
130 @.^.Python.o.compile\
131 @.^.Python.o.ceval\
132 @.^.Python.o.bltinmodule\
133 @.^.Python.o.exceptions\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000134 @.^.Python.o.codecs\
135 @.^.Python.o.symtable\
136 @.^.Python.o.future
Guido van Rossum228d8072001-03-02 05:58:11 +0000137
138
Guido van Rossumbceccf52001-04-10 22:07:43 +0000139OBJECTS_RISCOS = \
140 @.Python.o.dynload_riscos\
141 @.Python.o.getcwd_riscos\
142 @.Python.o.getmtime_riscos\
Guido van Rossum228d8072001-03-02 05:58:11 +0000143 @.o.unixstuff
144
145
Guido van Rossumbceccf52001-04-10 22:07:43 +0000146OBJECTS_OBJECTS =\
147 @.^.Objects.o.typeobject\
148 @.^.Objects.o.tupleobject\
149 @.^.Objects.o.stringobject\
150 @.^.Objects.o.sliceobject\
151 @.^.Objects.o.rangeobject\
152 @.^.Objects.o.object\
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000153 @.^.Objects.o.obmalloc\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000154 @.^.Objects.o.moduleobject\
155 @.^.Objects.o.methodobject\
156 @.^.Objects.o.longobject\
157 @.^.Objects.o.listobject\
158 @.^.Objects.o.intobject\
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000159 @.^.Objects.o.boolobject\
Guido van Rossum622cc032001-10-24 20:04:51 +0000160 @.^.Objects.o.iterobject\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000161 @.^.Objects.o.funcobject\
162 @.^.Objects.o.frameobject\
163 @.^.Objects.o.floatobject\
164 @.^.Objects.o.fileobject\
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000165 @.^.Objects.o.enumobject\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000166 @.^.Objects.o.dictobject\
167 @.^.Objects.o.complexobject\
168 @.^.Objects.o.cobject\
169 @.^.Objects.o.classobject\
170 @.^.Objects.o.cellobject\
171 @.^.Objects.o.bufferobject\
172 @.^.Objects.o.abstract\
173 @.^.Objects.o.unicodectype\
Guido van Rossum622cc032001-10-24 20:04:51 +0000174 @.^.Objects.o.unicodeobject\
Guido van Rossumbd67d6f2001-10-27 21:16:16 +0000175 @.^.Objects.o.descrobject\
176 @.^.Objects.o.weakrefobject\
177 @.^.Objects.o.structseq
Guido van Rossum228d8072001-03-02 05:58:11 +0000178
179
Guido van Rossumbceccf52001-04-10 22:07:43 +0000180OBJECTS_PARSER =\
181 @.^.Parser.o.tokenizer\
182 @.^.Parser.o.printgrammar\
183 @.^.Parser.o.parsetok\
184 @.^.Parser.o.parser\
185 @.^.Parser.o.node\
186 @.^.Parser.o.myreadline\
187 @.^.Parser.o.metagrammar\
188 @.^.Parser.o.listnode\
189 @.^.Parser.o.intrcheck\
190 @.^.Parser.o.grammar1\
191 @.^.Parser.o.grammar\
192 @.^.Parser.o.firstsets\
193 @.^.Parser.o.bitset\
Guido van Rossum228d8072001-03-02 05:58:11 +0000194 @.^.Parser.o.acceler
195
196SUPPORT_FILES = @.^.!Boot @.^.!Run @.^.!Sprites @.^.!Sprites22 @.^.AddToPath
197
198OBJECTS = $(OBJECTS_PYTHON) $(OBJECTS_PARSER) $(MODULES_STATIC) $(OBJECTS_OBJECTS) $(OBJECTS_RISCOS)
199
200
201all: @.^.$(TARGET) $(MODULES_DYNAMIC) $(SUPPORT_FILES)
202
203@.^.Modules.o.getbuildinfo: @.^.Modules.c.getbuildinfo
204 $(CC) -DBUILD=$(BUILD) -o @.^.Modules.o.getbuildinfo @.^.Modules.c.getbuildinfo
205
206
Guido van Rossum622cc032001-10-24 20:04:51 +0000207$(LIB_PYTHON): $(OBJECTS)
208 $(LIBFILE) $(LIB_PYTHON) $(OBJECTS)
209
210@.^.$(TARGET): o.linktab $(MAIN_PYTHON) $(LIB_PYTHON)
211 $(LINK) -o @.^.$(TARGET) $(MAIN_PYTHON) @.^.LibPython $(LOADLIBS)
Guido van Rossum228d8072001-03-02 05:58:11 +0000212
213
214#########################################################################
Guido van Rossumbceccf52001-04-10 22:07:43 +0000215# RISC OS support files
216#
Guido van Rossum228d8072001-03-02 05:58:11 +0000217@.^.!Boot: support.!Boot
218 copy support.!Boot @.^.!Boot ~C~VF
219 settype @.^.!Boot feb
220@.^.!Run: support.!Run
221 copy support.!Run @.^.!Run ~C~VF
222 settype @.^.!Run feb
223@.^.!Sprites: support.!Sprites
224 copy support.!Sprites @.^.!Sprites ~C~VF
225 settype @.^.!Sprites ff9
226@.^.!Sprites22: support.!Sprites22
227 copy support.!Sprites22 @.^.!Sprites22 ~C~VF
228 settype @.^.!Sprites22 ff9
229@.^.AddToPath: support.AddToPath
230 copy support.AddToPath @.^.AddToPath ~C~VF
231 settype @.^.AddToPath ffc
232
233
234#########################################################################
235# Dynamic Modules
236#
237@.^.Lib.array/pyd: @.^.Modules.o.arraymodule s.linktab
238 $(MAKEDLK) -d @.^.Lib.array/pyd -s s.linktab -o @.^.Modules.o.arraymodule -e initarray
239
240@.^.Lib.audioop/pyd: @.^.Modules.o.audioop # s.linktab
241 $(MAKEDLK) -d @.^.Lib.audioop/pyd -s s.linktab -o @.^.Modules.o.audioop -e initaudioop
242
243@.^.Lib.binascii/pyd: @.^.Modules.o.binascii s.linktab
244 $(MAKEDLK) -d @.^.Lib.binascii/pyd -s s.linktab -o @.^.Modules.o.binascii -e initbinascii
245
246@.^.Lib.cmath/pyd: @.^.Modules.o.cmathmodule s.linktab
247 $(MAKEDLK) -d @.^.Lib.cmath/pyd -s s.linktab -o @.^.Modules.o.cmathmodule -e initcmath
248
249@.^.Lib.cPickle/pyd: @.^.Modules.o.cPickle s.linktab
250 $(MAKEDLK) -d @.^.Lib.cPickle/pyd -s s.linktab -o @.^.Modules.o.cPickle -e initcPickle
251
252@.^.Lib.cStringIO/pyd: @.^.Modules.o.cStringIO s.linktab
253 $(MAKEDLK) -d @.^.Lib.cStringIO/pyd -s s.linktab -o @.^.Modules.o.cStringIO -e initcStringIO
254
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000255@.^.Lib._csv/pyd: @.^.Modules.o._csv s.linktab
256 $(MAKEDLK) -d @.^.Lib._csv/pyd -s s.linktab -o @.^.Modules.o._csv -e init_csv
257
Guido van Rossum228d8072001-03-02 05:58:11 +0000258@.^.Lib.plat-riscos.drawf/pyd: Modules.o.drawfmodule #s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000259 $(LINK) -aof -o Modules.o.drawflink Modules.o.drawfmodule $(OSLIB).o.OSLIB32
Guido van Rossum228d8072001-03-02 05:58:11 +0000260 $(MAKEDLK) -d @.^.Lib.plat-riscos.drawf/pyd -s s.linktab -o Modules.o.drawflink -e initdrawf
261
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000262@.^.Lib.datetime/pyd: @.^.Modules.o.datetimemodule s.linktab
263 $(MAKEDLK) -d @.^.Lib.datetime/pyd -s s.linktab -o @.^.Modules.o.datetimemodule -e initdatetime
264
Guido van Rossum228d8072001-03-02 05:58:11 +0000265@.^.Lib.errno/pyd: @.^.Modules.o.errnomodule #s.linktab
266 $(MAKEDLK) -d @.^.Lib.errno/pyd -s s.linktab -o @.^.Modules.o.errnomodule -e initerrno
267
268@.^.Lib.imageop/pyd: @.^.Modules.o.imageop s.linktab
269 $(MAKEDLK) -d @.^.Lib.imageop/pyd -s s.linktab -o @.^.Modules.o.imageop -e initimageop
270
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000271@.^.Lib.itertools/pyd: @.^.Modules.o.itertoolsmodule s.linktab
272 $(MAKEDLK) -d @.^.Lib.itertools/pyd -s s.linktab -o @.^.Modules.o.itertoolsmodule -e inititertools
273
Guido van Rossum228d8072001-03-02 05:58:11 +0000274@.^.Lib.math/pyd: @.^.Modules.o.mathmodule s.linktab
275 $(MAKEDLK) -d @.^.Lib.math/pyd -s s.linktab -o @.^.Modules.o.mathmodule -e initmath
276
277@.^.Lib.mmap/pyd: @.^.Modules.o.mmapmodule s.linktab
278 $(MAKEDLK) -d @.^.Lib.mmap/pyd -s s.linktab -o @.^.Modules.o.mmapmodule -e initmmap
279
280@.^.Lib.md5/pyd: @.^.Modules.o.md5c @.^.Modules.o.md5module s.linktab
281 $(LINK) -aof -o @.^.Modules.o.md5link @.^.Modules.o.md5c @.^.Modules.o.md5module
282 $(MAKEDLK) -d @.^.Lib.md5/pyd -s s.linktab -o @.^.Modules.o.md5link -e initmd5
283
Guido van Rossum228d8072001-03-02 05:58:11 +0000284@.^.Lib.operator/pyd: @.^.Modules.o.operator s.linktab
285 $(MAKEDLK) -d @.^.Lib.operator/pyd -s s.linktab -o @.^.Modules.o.operator -e initoperator
286
287@.^.Lib.parser/pyd: @.^.Modules.o.parsermodule s.linktab
288 $(MAKEDLK) -d @.^.Lib.parser/pyd -s s.linktab -o @.^.Modules.o.parsermodule -e initparser
289
290@.^.Lib.pcre/pyd: @.^.Modules.o.pcremodule @.^.Modules.o.pypcre s.linktab
291 $(LINK) -aof -o @.^.Modules.o.pcrelink @.^.Modules.o.pcremodule @.^.Modules.o.pypcre
292 $(MAKEDLK) -d @.^.Lib.pcre/pyd -s s.linktab -o @.^.Modules.o.pcrelink -e initpcre
293
294@.^.Lib.regex/pyd: @.^.Modules.o.regexmodule @.^.Modules.o.regexpr s.linktab
295 $(LINK) -aof -o @.^.Modules.o.regexlink @.^.Modules.o.regexmodule @.^.Modules.o.regexpr
296 $(MAKEDLK) -d @.^.Lib.regex/pyd -s s.linktab -o @.^.Modules.o.regexlink -e initregex
297
298@.^.Lib.rgbimg/pyd: @.^.Modules.o.rgbimgmodule s.linktab
299 $(MAKEDLK) -d @.^.Lib.rgbimg/pyd -s s.linktab -o @.^.Modules.o.rgbimgmodule -e initrgbimg
300
301@.^.Lib.rotor/pyd: @.^.Modules.o.rotormodule s.linktab
302 $(MAKEDLK) -d @.^.Lib.rotor/pyd -s s.linktab -o @.^.Modules.o.rotormodule -e initrotor
303
304@.^.Lib.sha/pyd: @.^.Modules.o.shamodule s.linktab
305 $(MAKEDLK) -d @.^.Lib.sha/pyd -s s.linktab -o @.^.Modules.o.shamodule -e initsha
306
307@.^.Lib.signal/pyd: @.^.Modules.o.signalmodule s.linktab
308 $(MAKEDLK) -d @.^.Lib.signal/pyd -s s.linktab -o @.^.Modules.o.signalmodule -e initsignal
309
Guido van Rossum228d8072001-03-02 05:58:11 +0000310@.^.Lib.strop/pyd: @.^.Modules.o.stropmodule s.linktab
311 $(MAKEDLK) -d @.^.Lib.strop/pyd -s s.linktab -o @.^.Modules.o.stropmodule -e initstrop
312
313@.^.Lib.struct/pyd: @.^.Modules.o.structmodule s.linktab
314 $(MAKEDLK) -d @.^.Lib.struct/pyd -s s.linktab -o @.^.Modules.o.structmodule -e initstruct
315
316@.^.Lib.plat-riscos.swi/pyd: Modules.o.swimodule s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000317 $(LINK) -aof -o Modules.o.swilink Modules.o.swimodule $(OSLIB).o.OSLIB32
Guido van Rossum228d8072001-03-02 05:58:11 +0000318 $(MAKEDLK) -d @.^.Lib.plat-riscos.swi/pyd -s s.linktab -o Modules.o.swilink -e initswi
319
Guido van Rossum228d8072001-03-02 05:58:11 +0000320@.^.Lib._locale/pyd: @.^.Modules.o._localemodule s.linktab
321 $(MAKEDLK) -d @.^.Lib._locale/pyd -s s.linktab -o @.^.Modules.o._localemodule -e init_locale
322
323@.^.Lib._sre/pyd: @.^.Modules.o._sre s.linktab
324 $(MAKEDLK) -d @.^.Lib._sre/pyd -s s.linktab -o @.^.Modules.o._sre -e init_sre
325
326@.^.Lib._codecs/pyd: @.^.Modules.o._codecsmodule s.linktab
327 $(MAKEDLK) -d @.^.Lib._codecs/pyd -s s.linktab -o @.^.Modules.o._codecsmodule -e init_codecs
328
329@.^.Lib._weakref/pyd: @.^.Modules.o._weakref s.linktab
330 $(MAKEDLK) -d @.^.Lib._weakref/pyd -s s.linktab -o @.^.Modules.o._weakref -e init_weakref
331
332@.^.Lib._testcapi/pyd: @.^.Modules.o._testcapimodule s.linktab
333 $(MAKEDLK) -d @.^.Lib._testcapi/pyd -s s.linktab -o @.^.Modules.o._testcapimodule -e init_testcapi
334
335@.^.Lib.unicodedata/pyd: @.^.Modules.o.unicodedata s.linktab
336 $(MAKEDLK) -d @.^.Lib.unicodedata/pyd -s s.linktab -o @.^.Modules.o.unicodedata -e initunicodedata
337
338@.^.Lib.xreadlines/pyd: @.^.Modules.o.xreadlinesmodule s.linktab
339 $(MAKEDLK) -d @.^.Lib.xreadlines/pyd -s s.linktab -o @.^.Modules.o.xreadlinesmodule -e initxreadlines
340
Guido van Rossum622cc032001-10-24 20:04:51 +0000341@.^.Lib.xxsubtype/pyd: @.^.Modules.o.xxsubtype s.linktab
342 $(MAKEDLK) -d @.^.Lib.xxsubtype/pyd -s s.linktab -o @.^.Modules.o.xxsubtype -e initxxsubtype
343
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000344@.^.Lib._random/pyd: @.^.Modules.o._randommodule s.linktab
345 $(MAKEDLK) -d @.^.Lib._random/pyd -s s.linktab -o @.^.Modules.o._randommodule -e init_random
346
Guido van Rossum622cc032001-10-24 20:04:51 +0000347@.^.Lib._symtable/pyd: @.^.Modules.o.symtablemodule s.linktab
348 $(MAKEDLK) -d @.^.Lib._symtable/pyd -s s.linktab -o @.^.Modules.o.symtablemodule -e init_symtable
Guido van Rossum228d8072001-03-02 05:58:11 +0000349
Guido van Rossum228d8072001-03-02 05:58:11 +0000350
351############################################################################
352# Dynamic Modules with other dependencies
353#
354@.^.Lib.select/pyd: @.^.Modules.o.selectmodule s.linktab
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000355 $(LINK) -aof -o @.^.Modules.o.selectlink @.^.Modules.o.selectmodule $(TCPIPLIB).o.socklib5
Guido van Rossum228d8072001-03-02 05:58:11 +0000356 $(MAKEDLK) -d @.^.Lib.select/pyd -s s.linktab -o @.^.Modules.o.selectlink -e initselect
357
358@.^.Modules.o.selectmodule: @.^.Modules.c.selectmodule
Guido van Rossum622cc032001-10-24 20:04:51 +0000359 $(CC) -I$(TCPIPLIB).include -o $@ @.^.Modules.c.selectmodule
Guido van Rossum228d8072001-03-02 05:58:11 +0000360
361@.^.Lib._socket/pyd: @.^.Modules.o.socketmodule s.linktab
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000362 $(LINK) -aof -o @.^.Modules.o._socketlink @.^.Modules.o.socketmodule $(TCPIPLIB).o.inetlib $(TCPIPLIB).o.unixlib $(TCPIPLIB).o.socklib5
Guido van Rossum228d8072001-03-02 05:58:11 +0000363 $(MAKEDLK) -d @.^.Lib._socket/pyd -s s.linktab -o @.^.Modules.o._socketlink -e init_socket
364
365@.^.Modules.o.socketmodule: @.^.Modules.c.socketmodule
Guido van Rossum622cc032001-10-24 20:04:51 +0000366 $(CC) -I$(TCPIPLIB).include -o $@ @.^.Modules.c.socketmodule
Guido van Rossum228d8072001-03-02 05:58:11 +0000367
368
369@.^.Lib.zlib/pyd: @.^.Modules.o.zlibmodule s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000370 $(LINK) -aof -o @.^.Modules.o.zliblink @.^.Modules.o.zlibmodule $(ZLIB).zlib
Guido van Rossum228d8072001-03-02 05:58:11 +0000371 $(MAKEDLK) -d @.^.Lib.zlib/pyd -s s.linktab -o @.^.Modules.o.zliblink -e initzlib
372
373@.^.Modules.o.zlibmodule: @.^.Modules.c.zlibmodule
374 $(CC) -I$(ZLIB) -o $@ @.^.Modules.c.zlibmodule
375
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000376@.^.Lib.bz2/pyd: @.^.Modules.o.bz2module s.linktab
377 $(LINK) -aof -o @.^.Modules.o.bz2link @.^.Modules.o.bz2module $(BZLIB).bzlib
378 $(MAKEDLK) -d @.^.Lib.bz2/pyd -s s.linktab -o @.^.Modules.o.bz2link -e initbz2
379
380@.^.Modules.o.bz2module: @.^.Modules.c.bz2module
381 $(CC) -I$(BZLIB) -o $@ @.^.Modules.c.bz2module
Guido van Rossum228d8072001-03-02 05:58:11 +0000382
Guido van Rossumbceccf52001-04-10 22:07:43 +0000383@.^.Lib.time/pyd: @.^.Modules.o.timemodule s.linktab @.o.sleep
Guido van Rossum622cc032001-10-24 20:04:51 +0000384 $(LINK) -aof -o @.^.Modules.o.timelink @.^.Modules.o.timemodule @.o.sleep $(OSLIB).o.OSLib32
Guido van Rossumbceccf52001-04-10 22:07:43 +0000385 $(MAKEDLK) -d @.^.Lib.time/pyd -s s.linktab -o @.^.Modules.o.timelink -e inittime
386
Guido van Rossum622cc032001-10-24 20:04:51 +0000387#@.^.Lib.time/pyd: @.Modules.o.timemodule s.linktab
388# $(LINK) -aof -o @.Modules.o.timelink @.Modules.o.timemodule $(OSLIB).o.OSLib32
389# $(MAKEDLK) -d @.^.Lib.time/pyd -s s.linktab -o @.Modules.o.timelink -e inittime
390
Guido van Rossumbceccf52001-04-10 22:07:43 +0000391
Guido van Rossum228d8072001-03-02 05:58:11 +0000392@.^.Lib.pyexpat/pyd: @.^.Modules.o.pyexpat s.linktab
393 $(LINK) -aof -o @.^.Modules.o.pyexpatlink @.^.Modules.o.pyexpat $(EXPAT).expat_lib
394 $(MAKEDLK) -d @.^.Lib.pyexpat/pyd -s s.linktab -o @.^.Modules.o.pyexpatlink -e initpyexpat
395
396@.^.Modules.o.pyexpat: @.^.Modules.c.pyexpat
397 $(CCEXPAT) -o $@ @.^.Modules.c.pyexpat
398
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000399@.^.Lib.zipimport/pyd: @.^.Modules.o.zipimport s.linktab
400 $(LINK) -aof -o @.^.Modules.o.zipimportlink @.^.Modules.o.zipimport o.unixstuff $(OSLIB).o.OSLib32
401 $(MAKEDLK) -d @.^.Lib.zipimport/pyd -s s.linktab -o @.^.Modules.o.zipimportlink -e initzipimport
402
Guido van Rossum228d8072001-03-02 05:58:11 +0000403
404##########################################################################
Guido van Rossumbceccf52001-04-10 22:07:43 +0000405# dynamic linking symbol table
406#
Guido van Rossum228d8072001-03-02 05:58:11 +0000407o.linktab: s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000408 ObjAsm -APCS 3/32bit s.linktab o.linktab
Guido van Rossum228d8072001-03-02 05:58:11 +0000409
410s.linktab: $(OBJECTS)
411 $(OBJSCAN) -s s.linktab -o $(OBJECTS) $(clib).o.stubs
412
Guido van Rossumbceccf52001-04-10 22:07:43 +0000413##########################################################################
414# special targets
415#
416libclean:
Guido van Rossum622cc032001-10-24 20:04:51 +0000417 -wipe @.^.Lib.*/pyc ~C~V
418 -wipe @.^.Lib.*/pyo ~C~V
419 -wipe @.^.Lib.plat-riscos.*/pyc ~C~V
420 -wipe @.^.Lib.plat-riscos.*/pyo ~C~V
421 -wipe @.^.Lib.test.*/pyc ~C~V
422 -wipe @.^.Lib.test.*/pyo ~C~V
423 -wipe @.^.Lib.encodings.*/pyc ~C~V
424 -wipe @.^.Lib.encodings.*/pyo ~C~V
425 -wipe @.^.Lib.curses.*/pyc ~C~V
426 -wipe @.^.Lib.curses.*/pyo ~C~V
427 -wipe @.^.Lib.xml.*/pyc ~C~V
428 -wipe @.^.Lib.xml.*/pyo ~C~V
429 -wipe @.^.Lib.xml.sax.*/pyc ~C~V
430 -wipe @.^.Lib.xml.sax.*/pyo ~C~V
431 -wipe @.^.Lib.xml.dom.*/pyc ~C~V
432 -wipe @.^.Lib.xml.dom.*/pyo ~C~V
433 -wipe @.^.Lib.xml.parsers.*/pyc ~C~V
434 -wipe @.^.Lib.xml.parsers.*/pyo ~C~V
Guido van Rossumbceccf52001-04-10 22:07:43 +0000435
436clean: libclean
Guido van Rossum622cc032001-10-24 20:04:51 +0000437 -wipe @.^.Modules.o.* ~C~V
438 -wipe @.^.Objects.o.* ~C~V
439 -wipe @.^.Parser.o.* ~C~V
440 -wipe @.^.Python.o.* ~C~V
441 -wipe @.Modules.o.* ~C~V
442 -wipe @.Python.o.* ~C~V
443 -wipe @.o.* ~C ~V
Guido van Rossum228d8072001-03-02 05:58:11 +0000444
Guido van Rossum622cc032001-10-24 20:04:51 +0000445rebuild: clean clean-support
446 remove @.^.$(TARGET)
447 -wipe @.^.Lib.*/pyd ~C ~V
448 -wipe @.^.Lib.plat-riscos.*/pyd ~C~V
449 remove s.linktab
Guido van Rossumbd67d6f2001-10-27 21:16:16 +0000450 remove @.^.LibPython
Guido van Rossum622cc032001-10-24 20:04:51 +0000451
452clean-support:
453 -wipe @.^.!* ~C~V
454 remove @.^.AddToPath
Guido van Rossum228d8072001-03-02 05:58:11 +0000455
456cdirs:
457 cdir @.Modules.o
458 cdir @.Python.o
459 cdir @.s
460 cdir @.o
461 cdir @.^.Python.o
462 cdir @.^.Parser.o
463 cdir @.^.Objects.o
464 cdir @.^.Modules.o
465
466
467# Dynamic dependencies: