blob: 1788b5c97c178d132b973665aa88f73f7ef1e347 [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\
Guido van Rossumbceccf52001-04-10 22:07:43 +000077 @.^.Lib.rgbimg/pyd\
Guido van Rossumbceccf52001-04-10 22:07:43 +000078 @.^.Lib.sha/pyd\
79 @.^.Lib.signal/pyd\
80 @.^.Lib.struct/pyd\
81 @.^.Lib.time/pyd\
82 @.^.Lib._locale/pyd\
83 @.^.Lib.zlib/pyd\
84 @.^.Lib.select/pyd\
85 @.^.Lib._socket/pyd\
86 @.^.Lib._codecs/pyd\
87 @.^.Lib._weakref/pyd\
88 @.^.Lib._testcapi/pyd\
89 @.^.Lib.unicodedata/pyd\
Guido van Rossumbceccf52001-04-10 22:07:43 +000090 @.^.Lib.pyexpat/pyd\
91 @.^.Lib.plat-riscos.drawf/pyd\
92 @.^.Lib.plat-riscos.swi/pyd\
Guido van Rossum622cc032001-10-24 20:04:51 +000093 @.^.Lib._sre/pyd\
94 @.^.Lib.xxsubtype/pyd\
Martin v. Löwisa94568a2003-05-10 07:36:56 +000095 @.^.Lib._symtable/pyd\
96 @.^.Lib._random/pyd\
97 @.^.Lib.zipimport/pyd\
98 @.^.Lib._csv/pyd
Guido van Rossum228d8072001-03-02 05:58:11 +000099
100
Guido van Rossumbceccf52001-04-10 22:07:43 +0000101OBJECTS_PYTHON =\
102 @.^.Python.o.traceback\
103 @.^.Python.o.sysmodule\
104 @.^.Python.o.structmember\
105 @.^.Python.o.strdup\
106 @.^.Python.o.sigcheck\
107 @.^.Python.o.pythonrun\
108 @.^.Python.o.pystate\
109 @.^.Python.o.pyfpe\
110 @.^.Python.o.mystrtoul\
Guido van Rossum622cc032001-10-24 20:04:51 +0000111 @.^.Python.o.mysnprintf\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000112 @.^.Python.o.modsupport\
113 @.^.Python.o.marshal\
114 @.^.Python.o.importdl\
115 @.^.Python.o.import\
116 @.^.Python.o.graminit\
117 @.^.Python.o.getversion\
118 @.^.Python.o.getplatform\
119 @.^.Python.o.getopt\
120 @.^.Python.o.getcopyright\
121 @.^.Python.o.getcompiler\
122 @.^.Python.o.getargs\
123 @.^.Python.o.frozenmain\
124 @.^.Python.o.frozen\
125 @.^.Python.o.errors\
126 @.^.Python.o.compile\
127 @.^.Python.o.ceval\
128 @.^.Python.o.bltinmodule\
129 @.^.Python.o.exceptions\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000130 @.^.Python.o.codecs\
131 @.^.Python.o.symtable\
132 @.^.Python.o.future
Guido van Rossum228d8072001-03-02 05:58:11 +0000133
134
Guido van Rossumbceccf52001-04-10 22:07:43 +0000135OBJECTS_RISCOS = \
136 @.Python.o.dynload_riscos\
137 @.Python.o.getcwd_riscos\
138 @.Python.o.getmtime_riscos\
Guido van Rossum228d8072001-03-02 05:58:11 +0000139 @.o.unixstuff
140
141
Guido van Rossumbceccf52001-04-10 22:07:43 +0000142OBJECTS_OBJECTS =\
143 @.^.Objects.o.typeobject\
144 @.^.Objects.o.tupleobject\
145 @.^.Objects.o.stringobject\
146 @.^.Objects.o.sliceobject\
147 @.^.Objects.o.rangeobject\
148 @.^.Objects.o.object\
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000149 @.^.Objects.o.obmalloc\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000150 @.^.Objects.o.moduleobject\
151 @.^.Objects.o.methodobject\
152 @.^.Objects.o.longobject\
153 @.^.Objects.o.listobject\
154 @.^.Objects.o.intobject\
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000155 @.^.Objects.o.boolobject\
Guido van Rossum622cc032001-10-24 20:04:51 +0000156 @.^.Objects.o.iterobject\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000157 @.^.Objects.o.funcobject\
158 @.^.Objects.o.frameobject\
159 @.^.Objects.o.floatobject\
160 @.^.Objects.o.fileobject\
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000161 @.^.Objects.o.enumobject\
Guido van Rossumbceccf52001-04-10 22:07:43 +0000162 @.^.Objects.o.dictobject\
163 @.^.Objects.o.complexobject\
164 @.^.Objects.o.cobject\
165 @.^.Objects.o.classobject\
166 @.^.Objects.o.cellobject\
167 @.^.Objects.o.bufferobject\
168 @.^.Objects.o.abstract\
169 @.^.Objects.o.unicodectype\
Guido van Rossum622cc032001-10-24 20:04:51 +0000170 @.^.Objects.o.unicodeobject\
Guido van Rossumbd67d6f2001-10-27 21:16:16 +0000171 @.^.Objects.o.descrobject\
172 @.^.Objects.o.weakrefobject\
173 @.^.Objects.o.structseq
Guido van Rossum228d8072001-03-02 05:58:11 +0000174
175
Guido van Rossumbceccf52001-04-10 22:07:43 +0000176OBJECTS_PARSER =\
177 @.^.Parser.o.tokenizer\
178 @.^.Parser.o.printgrammar\
179 @.^.Parser.o.parsetok\
180 @.^.Parser.o.parser\
181 @.^.Parser.o.node\
182 @.^.Parser.o.myreadline\
183 @.^.Parser.o.metagrammar\
184 @.^.Parser.o.listnode\
185 @.^.Parser.o.intrcheck\
186 @.^.Parser.o.grammar1\
187 @.^.Parser.o.grammar\
188 @.^.Parser.o.firstsets\
189 @.^.Parser.o.bitset\
Guido van Rossum228d8072001-03-02 05:58:11 +0000190 @.^.Parser.o.acceler
191
192SUPPORT_FILES = @.^.!Boot @.^.!Run @.^.!Sprites @.^.!Sprites22 @.^.AddToPath
193
194OBJECTS = $(OBJECTS_PYTHON) $(OBJECTS_PARSER) $(MODULES_STATIC) $(OBJECTS_OBJECTS) $(OBJECTS_RISCOS)
195
196
197all: @.^.$(TARGET) $(MODULES_DYNAMIC) $(SUPPORT_FILES)
198
199@.^.Modules.o.getbuildinfo: @.^.Modules.c.getbuildinfo
200 $(CC) -DBUILD=$(BUILD) -o @.^.Modules.o.getbuildinfo @.^.Modules.c.getbuildinfo
201
202
Guido van Rossum622cc032001-10-24 20:04:51 +0000203$(LIB_PYTHON): $(OBJECTS)
204 $(LIBFILE) $(LIB_PYTHON) $(OBJECTS)
205
206@.^.$(TARGET): o.linktab $(MAIN_PYTHON) $(LIB_PYTHON)
207 $(LINK) -o @.^.$(TARGET) $(MAIN_PYTHON) @.^.LibPython $(LOADLIBS)
Guido van Rossum228d8072001-03-02 05:58:11 +0000208
209
210#########################################################################
Guido van Rossumbceccf52001-04-10 22:07:43 +0000211# RISC OS support files
212#
Guido van Rossum228d8072001-03-02 05:58:11 +0000213@.^.!Boot: support.!Boot
214 copy support.!Boot @.^.!Boot ~C~VF
215 settype @.^.!Boot feb
216@.^.!Run: support.!Run
217 copy support.!Run @.^.!Run ~C~VF
218 settype @.^.!Run feb
219@.^.!Sprites: support.!Sprites
220 copy support.!Sprites @.^.!Sprites ~C~VF
221 settype @.^.!Sprites ff9
222@.^.!Sprites22: support.!Sprites22
223 copy support.!Sprites22 @.^.!Sprites22 ~C~VF
224 settype @.^.!Sprites22 ff9
225@.^.AddToPath: support.AddToPath
226 copy support.AddToPath @.^.AddToPath ~C~VF
227 settype @.^.AddToPath ffc
228
229
230#########################################################################
231# Dynamic Modules
232#
233@.^.Lib.array/pyd: @.^.Modules.o.arraymodule s.linktab
234 $(MAKEDLK) -d @.^.Lib.array/pyd -s s.linktab -o @.^.Modules.o.arraymodule -e initarray
235
236@.^.Lib.audioop/pyd: @.^.Modules.o.audioop # s.linktab
237 $(MAKEDLK) -d @.^.Lib.audioop/pyd -s s.linktab -o @.^.Modules.o.audioop -e initaudioop
238
239@.^.Lib.binascii/pyd: @.^.Modules.o.binascii s.linktab
240 $(MAKEDLK) -d @.^.Lib.binascii/pyd -s s.linktab -o @.^.Modules.o.binascii -e initbinascii
241
242@.^.Lib.cmath/pyd: @.^.Modules.o.cmathmodule s.linktab
243 $(MAKEDLK) -d @.^.Lib.cmath/pyd -s s.linktab -o @.^.Modules.o.cmathmodule -e initcmath
244
245@.^.Lib.cPickle/pyd: @.^.Modules.o.cPickle s.linktab
246 $(MAKEDLK) -d @.^.Lib.cPickle/pyd -s s.linktab -o @.^.Modules.o.cPickle -e initcPickle
247
248@.^.Lib.cStringIO/pyd: @.^.Modules.o.cStringIO s.linktab
249 $(MAKEDLK) -d @.^.Lib.cStringIO/pyd -s s.linktab -o @.^.Modules.o.cStringIO -e initcStringIO
250
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000251@.^.Lib._csv/pyd: @.^.Modules.o._csv s.linktab
252 $(MAKEDLK) -d @.^.Lib._csv/pyd -s s.linktab -o @.^.Modules.o._csv -e init_csv
253
Guido van Rossum228d8072001-03-02 05:58:11 +0000254@.^.Lib.plat-riscos.drawf/pyd: Modules.o.drawfmodule #s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000255 $(LINK) -aof -o Modules.o.drawflink Modules.o.drawfmodule $(OSLIB).o.OSLIB32
Guido van Rossum228d8072001-03-02 05:58:11 +0000256 $(MAKEDLK) -d @.^.Lib.plat-riscos.drawf/pyd -s s.linktab -o Modules.o.drawflink -e initdrawf
257
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000258@.^.Lib.datetime/pyd: @.^.Modules.o.datetimemodule s.linktab
259 $(MAKEDLK) -d @.^.Lib.datetime/pyd -s s.linktab -o @.^.Modules.o.datetimemodule -e initdatetime
260
Guido van Rossum228d8072001-03-02 05:58:11 +0000261@.^.Lib.errno/pyd: @.^.Modules.o.errnomodule #s.linktab
262 $(MAKEDLK) -d @.^.Lib.errno/pyd -s s.linktab -o @.^.Modules.o.errnomodule -e initerrno
263
264@.^.Lib.imageop/pyd: @.^.Modules.o.imageop s.linktab
265 $(MAKEDLK) -d @.^.Lib.imageop/pyd -s s.linktab -o @.^.Modules.o.imageop -e initimageop
266
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000267@.^.Lib.itertools/pyd: @.^.Modules.o.itertoolsmodule s.linktab
268 $(MAKEDLK) -d @.^.Lib.itertools/pyd -s s.linktab -o @.^.Modules.o.itertoolsmodule -e inititertools
269
Guido van Rossum228d8072001-03-02 05:58:11 +0000270@.^.Lib.math/pyd: @.^.Modules.o.mathmodule s.linktab
271 $(MAKEDLK) -d @.^.Lib.math/pyd -s s.linktab -o @.^.Modules.o.mathmodule -e initmath
272
273@.^.Lib.mmap/pyd: @.^.Modules.o.mmapmodule s.linktab
274 $(MAKEDLK) -d @.^.Lib.mmap/pyd -s s.linktab -o @.^.Modules.o.mmapmodule -e initmmap
275
276@.^.Lib.md5/pyd: @.^.Modules.o.md5c @.^.Modules.o.md5module s.linktab
277 $(LINK) -aof -o @.^.Modules.o.md5link @.^.Modules.o.md5c @.^.Modules.o.md5module
278 $(MAKEDLK) -d @.^.Lib.md5/pyd -s s.linktab -o @.^.Modules.o.md5link -e initmd5
279
Guido van Rossum228d8072001-03-02 05:58:11 +0000280@.^.Lib.operator/pyd: @.^.Modules.o.operator s.linktab
281 $(MAKEDLK) -d @.^.Lib.operator/pyd -s s.linktab -o @.^.Modules.o.operator -e initoperator
282
283@.^.Lib.parser/pyd: @.^.Modules.o.parsermodule s.linktab
284 $(MAKEDLK) -d @.^.Lib.parser/pyd -s s.linktab -o @.^.Modules.o.parsermodule -e initparser
285
Guido van Rossum228d8072001-03-02 05:58:11 +0000286@.^.Lib.rgbimg/pyd: @.^.Modules.o.rgbimgmodule s.linktab
287 $(MAKEDLK) -d @.^.Lib.rgbimg/pyd -s s.linktab -o @.^.Modules.o.rgbimgmodule -e initrgbimg
288
Guido van Rossum228d8072001-03-02 05:58:11 +0000289@.^.Lib.sha/pyd: @.^.Modules.o.shamodule s.linktab
290 $(MAKEDLK) -d @.^.Lib.sha/pyd -s s.linktab -o @.^.Modules.o.shamodule -e initsha
291
292@.^.Lib.signal/pyd: @.^.Modules.o.signalmodule s.linktab
293 $(MAKEDLK) -d @.^.Lib.signal/pyd -s s.linktab -o @.^.Modules.o.signalmodule -e initsignal
294
Guido van Rossum228d8072001-03-02 05:58:11 +0000295@.^.Lib.strop/pyd: @.^.Modules.o.stropmodule s.linktab
296 $(MAKEDLK) -d @.^.Lib.strop/pyd -s s.linktab -o @.^.Modules.o.stropmodule -e initstrop
297
298@.^.Lib.struct/pyd: @.^.Modules.o.structmodule s.linktab
299 $(MAKEDLK) -d @.^.Lib.struct/pyd -s s.linktab -o @.^.Modules.o.structmodule -e initstruct
300
301@.^.Lib.plat-riscos.swi/pyd: Modules.o.swimodule s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000302 $(LINK) -aof -o Modules.o.swilink Modules.o.swimodule $(OSLIB).o.OSLIB32
Guido van Rossum228d8072001-03-02 05:58:11 +0000303 $(MAKEDLK) -d @.^.Lib.plat-riscos.swi/pyd -s s.linktab -o Modules.o.swilink -e initswi
304
Guido van Rossum228d8072001-03-02 05:58:11 +0000305@.^.Lib._locale/pyd: @.^.Modules.o._localemodule s.linktab
306 $(MAKEDLK) -d @.^.Lib._locale/pyd -s s.linktab -o @.^.Modules.o._localemodule -e init_locale
307
308@.^.Lib._sre/pyd: @.^.Modules.o._sre s.linktab
309 $(MAKEDLK) -d @.^.Lib._sre/pyd -s s.linktab -o @.^.Modules.o._sre -e init_sre
310
311@.^.Lib._codecs/pyd: @.^.Modules.o._codecsmodule s.linktab
312 $(MAKEDLK) -d @.^.Lib._codecs/pyd -s s.linktab -o @.^.Modules.o._codecsmodule -e init_codecs
313
314@.^.Lib._weakref/pyd: @.^.Modules.o._weakref s.linktab
315 $(MAKEDLK) -d @.^.Lib._weakref/pyd -s s.linktab -o @.^.Modules.o._weakref -e init_weakref
316
317@.^.Lib._testcapi/pyd: @.^.Modules.o._testcapimodule s.linktab
318 $(MAKEDLK) -d @.^.Lib._testcapi/pyd -s s.linktab -o @.^.Modules.o._testcapimodule -e init_testcapi
319
320@.^.Lib.unicodedata/pyd: @.^.Modules.o.unicodedata s.linktab
321 $(MAKEDLK) -d @.^.Lib.unicodedata/pyd -s s.linktab -o @.^.Modules.o.unicodedata -e initunicodedata
322
Guido van Rossum622cc032001-10-24 20:04:51 +0000323@.^.Lib.xxsubtype/pyd: @.^.Modules.o.xxsubtype s.linktab
324 $(MAKEDLK) -d @.^.Lib.xxsubtype/pyd -s s.linktab -o @.^.Modules.o.xxsubtype -e initxxsubtype
325
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000326@.^.Lib._random/pyd: @.^.Modules.o._randommodule s.linktab
327 $(MAKEDLK) -d @.^.Lib._random/pyd -s s.linktab -o @.^.Modules.o._randommodule -e init_random
328
Guido van Rossum622cc032001-10-24 20:04:51 +0000329@.^.Lib._symtable/pyd: @.^.Modules.o.symtablemodule s.linktab
330 $(MAKEDLK) -d @.^.Lib._symtable/pyd -s s.linktab -o @.^.Modules.o.symtablemodule -e init_symtable
Guido van Rossum228d8072001-03-02 05:58:11 +0000331
Guido van Rossum228d8072001-03-02 05:58:11 +0000332
333############################################################################
334# Dynamic Modules with other dependencies
335#
336@.^.Lib.select/pyd: @.^.Modules.o.selectmodule s.linktab
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000337 $(LINK) -aof -o @.^.Modules.o.selectlink @.^.Modules.o.selectmodule $(TCPIPLIB).o.socklib5
Guido van Rossum228d8072001-03-02 05:58:11 +0000338 $(MAKEDLK) -d @.^.Lib.select/pyd -s s.linktab -o @.^.Modules.o.selectlink -e initselect
339
340@.^.Modules.o.selectmodule: @.^.Modules.c.selectmodule
Guido van Rossum622cc032001-10-24 20:04:51 +0000341 $(CC) -I$(TCPIPLIB).include -o $@ @.^.Modules.c.selectmodule
Guido van Rossum228d8072001-03-02 05:58:11 +0000342
343@.^.Lib._socket/pyd: @.^.Modules.o.socketmodule s.linktab
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000344 $(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 +0000345 $(MAKEDLK) -d @.^.Lib._socket/pyd -s s.linktab -o @.^.Modules.o._socketlink -e init_socket
346
347@.^.Modules.o.socketmodule: @.^.Modules.c.socketmodule
Guido van Rossum622cc032001-10-24 20:04:51 +0000348 $(CC) -I$(TCPIPLIB).include -o $@ @.^.Modules.c.socketmodule
Guido van Rossum228d8072001-03-02 05:58:11 +0000349
350
351@.^.Lib.zlib/pyd: @.^.Modules.o.zlibmodule s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000352 $(LINK) -aof -o @.^.Modules.o.zliblink @.^.Modules.o.zlibmodule $(ZLIB).zlib
Guido van Rossum228d8072001-03-02 05:58:11 +0000353 $(MAKEDLK) -d @.^.Lib.zlib/pyd -s s.linktab -o @.^.Modules.o.zliblink -e initzlib
354
355@.^.Modules.o.zlibmodule: @.^.Modules.c.zlibmodule
356 $(CC) -I$(ZLIB) -o $@ @.^.Modules.c.zlibmodule
357
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000358@.^.Lib.bz2/pyd: @.^.Modules.o.bz2module s.linktab
359 $(LINK) -aof -o @.^.Modules.o.bz2link @.^.Modules.o.bz2module $(BZLIB).bzlib
360 $(MAKEDLK) -d @.^.Lib.bz2/pyd -s s.linktab -o @.^.Modules.o.bz2link -e initbz2
361
362@.^.Modules.o.bz2module: @.^.Modules.c.bz2module
363 $(CC) -I$(BZLIB) -o $@ @.^.Modules.c.bz2module
Guido van Rossum228d8072001-03-02 05:58:11 +0000364
Guido van Rossumbceccf52001-04-10 22:07:43 +0000365@.^.Lib.time/pyd: @.^.Modules.o.timemodule s.linktab @.o.sleep
Guido van Rossum622cc032001-10-24 20:04:51 +0000366 $(LINK) -aof -o @.^.Modules.o.timelink @.^.Modules.o.timemodule @.o.sleep $(OSLIB).o.OSLib32
Guido van Rossumbceccf52001-04-10 22:07:43 +0000367 $(MAKEDLK) -d @.^.Lib.time/pyd -s s.linktab -o @.^.Modules.o.timelink -e inittime
368
Guido van Rossum622cc032001-10-24 20:04:51 +0000369#@.^.Lib.time/pyd: @.Modules.o.timemodule s.linktab
370# $(LINK) -aof -o @.Modules.o.timelink @.Modules.o.timemodule $(OSLIB).o.OSLib32
371# $(MAKEDLK) -d @.^.Lib.time/pyd -s s.linktab -o @.Modules.o.timelink -e inittime
372
Guido van Rossumbceccf52001-04-10 22:07:43 +0000373
Guido van Rossum228d8072001-03-02 05:58:11 +0000374@.^.Lib.pyexpat/pyd: @.^.Modules.o.pyexpat s.linktab
375 $(LINK) -aof -o @.^.Modules.o.pyexpatlink @.^.Modules.o.pyexpat $(EXPAT).expat_lib
376 $(MAKEDLK) -d @.^.Lib.pyexpat/pyd -s s.linktab -o @.^.Modules.o.pyexpatlink -e initpyexpat
377
378@.^.Modules.o.pyexpat: @.^.Modules.c.pyexpat
379 $(CCEXPAT) -o $@ @.^.Modules.c.pyexpat
380
Martin v. Löwisa94568a2003-05-10 07:36:56 +0000381@.^.Lib.zipimport/pyd: @.^.Modules.o.zipimport s.linktab
382 $(LINK) -aof -o @.^.Modules.o.zipimportlink @.^.Modules.o.zipimport o.unixstuff $(OSLIB).o.OSLib32
383 $(MAKEDLK) -d @.^.Lib.zipimport/pyd -s s.linktab -o @.^.Modules.o.zipimportlink -e initzipimport
384
Guido van Rossum228d8072001-03-02 05:58:11 +0000385
386##########################################################################
Guido van Rossumbceccf52001-04-10 22:07:43 +0000387# dynamic linking symbol table
388#
Guido van Rossum228d8072001-03-02 05:58:11 +0000389o.linktab: s.linktab
Guido van Rossum622cc032001-10-24 20:04:51 +0000390 ObjAsm -APCS 3/32bit s.linktab o.linktab
Guido van Rossum228d8072001-03-02 05:58:11 +0000391
392s.linktab: $(OBJECTS)
393 $(OBJSCAN) -s s.linktab -o $(OBJECTS) $(clib).o.stubs
394
Guido van Rossumbceccf52001-04-10 22:07:43 +0000395##########################################################################
396# special targets
397#
398libclean:
Guido van Rossum622cc032001-10-24 20:04:51 +0000399 -wipe @.^.Lib.*/pyc ~C~V
400 -wipe @.^.Lib.*/pyo ~C~V
401 -wipe @.^.Lib.plat-riscos.*/pyc ~C~V
402 -wipe @.^.Lib.plat-riscos.*/pyo ~C~V
403 -wipe @.^.Lib.test.*/pyc ~C~V
404 -wipe @.^.Lib.test.*/pyo ~C~V
405 -wipe @.^.Lib.encodings.*/pyc ~C~V
406 -wipe @.^.Lib.encodings.*/pyo ~C~V
407 -wipe @.^.Lib.curses.*/pyc ~C~V
408 -wipe @.^.Lib.curses.*/pyo ~C~V
409 -wipe @.^.Lib.xml.*/pyc ~C~V
410 -wipe @.^.Lib.xml.*/pyo ~C~V
411 -wipe @.^.Lib.xml.sax.*/pyc ~C~V
412 -wipe @.^.Lib.xml.sax.*/pyo ~C~V
413 -wipe @.^.Lib.xml.dom.*/pyc ~C~V
414 -wipe @.^.Lib.xml.dom.*/pyo ~C~V
415 -wipe @.^.Lib.xml.parsers.*/pyc ~C~V
416 -wipe @.^.Lib.xml.parsers.*/pyo ~C~V
Guido van Rossumbceccf52001-04-10 22:07:43 +0000417
418clean: libclean
Guido van Rossum622cc032001-10-24 20:04:51 +0000419 -wipe @.^.Modules.o.* ~C~V
420 -wipe @.^.Objects.o.* ~C~V
421 -wipe @.^.Parser.o.* ~C~V
422 -wipe @.^.Python.o.* ~C~V
423 -wipe @.Modules.o.* ~C~V
424 -wipe @.Python.o.* ~C~V
425 -wipe @.o.* ~C ~V
Guido van Rossum228d8072001-03-02 05:58:11 +0000426
Guido van Rossum622cc032001-10-24 20:04:51 +0000427rebuild: clean clean-support
428 remove @.^.$(TARGET)
429 -wipe @.^.Lib.*/pyd ~C ~V
430 -wipe @.^.Lib.plat-riscos.*/pyd ~C~V
431 remove s.linktab
Guido van Rossumbd67d6f2001-10-27 21:16:16 +0000432 remove @.^.LibPython
Guido van Rossum622cc032001-10-24 20:04:51 +0000433
434clean-support:
435 -wipe @.^.!* ~C~V
436 remove @.^.AddToPath
Guido van Rossum228d8072001-03-02 05:58:11 +0000437
438cdirs:
439 cdir @.Modules.o
440 cdir @.Python.o
441 cdir @.s
442 cdir @.o
443 cdir @.^.Python.o
444 cdir @.^.Parser.o
445 cdir @.^.Objects.o
446 cdir @.^.Modules.o
447
448
449# Dynamic dependencies: