Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 1 | # RISC OS Python |
| 2 | LIBSROOT = $.AcornC_C++.Libraries |
| 3 | |
| 4 | # You may need to change some of the following |
| 5 | OSLIB = $(LIBSROOT).OSLib |
| 6 | CLIB = $(LIBSROOT).clib |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 7 | TCPIPLIB = $(LIBSROOT).TCPIPLibs |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 8 | DLKLIB = $(LIBSROOT).dlk |
| 9 | ZLIB = $(LIBSROOT).zlib |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 10 | BZLIB = $(LIBSROOT).bzlib |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 11 | EXPAT = $(LIBSROOT).expat.lib |
| 12 | |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 13 | OBJSCAN = $(DLKLIB).objscan |
| 14 | MAKEDLK = $(DLKLIB).makedlk |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 15 | |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 16 | # change from time to time (don't forget to change !Boot also) |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 17 | TARGET=Python23 |
| 18 | BUILD=40 |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 19 | |
| 20 | |
| 21 | # |
| 22 | # You shouldn't need to change anything below this line |
| 23 | # |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 24 | DLKFLAG= -DDLK |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 25 | DLKOBJS = $(DLKLIB).o.dlk_load @.o.linktab |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 26 | |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 27 | HEADERS = @,$(TCPIPLIB),@.^.Include,@.^.Modules,@.^.Objects,@.^.Python,$(CLIB),$(OSLIB),$(DLKLIB) |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 28 | |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 29 | CFLAGS = -c $(DLKFLAG) -DRISCOS -DHAVE_CONFIG_H -wadP -throwback -APCS 3/32bit/fpe3 |
| 30 | |
| 31 | CC = cc $(CFLAGS) -j$(HEADERS) |
| 32 | CCEXPAT = cc $(CFLAGS) -j$(HEADERS),$(EXPAT) -DHAVE_EXPAT_H |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 33 | |
| 34 | LINK = link |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 35 | LINKFLAGS = -aif #-NOUNUSED #-d |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 36 | LOADLIBS = $(TCPIPLIB).o.unixlib $(TCPIPLIB).o.inetlib $(TCPIPLIB).o.socklib $(CLIB).o.Stubs $(OSLIB).o.OSLib32 $(DLKOBJS) |
| 37 | |
| 38 | LIBFILE = libfile -c |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 39 | |
| 40 | |
| 41 | .c.o : |
| 42 | $(CC) -o $@ $*.c |
| 43 | |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 44 | MAIN_PYTHON =\ |
| 45 | @.^.Modules.o.python |
| 46 | |
| 47 | LIB_PYTHON =\ |
| 48 | @.^.LibPython |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 49 | |
| 50 | # code for main Python binary |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 51 | MODULES_STATIC =\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 52 | @.^.Modules.o.main\ |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 53 | @.Modules.o.config\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 54 | @.^.Modules.o.getbuildinfo\ |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 55 | @.Modules.o.getpath_riscos\ |
| 56 | @.Modules.o.riscosmodule\ |
| 57 | @.^.Modules.o.gcmodule |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 58 | |
| 59 | |
| 60 | # dynamic Modules |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 61 | MODULES_DYNAMIC =\ |
| 62 | @.^.Lib.array/pyd\ |
| 63 | @.^.Lib.audioop/pyd\ |
| 64 | @.^.Lib.binascii/pyd\ |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 65 | @.^.Lib.bz2/pyd\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 66 | @.^.Lib.cmath/pyd\ |
| 67 | @.^.Lib.cPickle/pyd\ |
| 68 | @.^.Lib.cStringIO/pyd\ |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 69 | @.^.Lib.datetime/pyd\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 70 | @.^.Lib.errno/pyd\ |
| 71 | @.^.Lib.imageop/pyd\ |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 72 | @.^.Lib.itertools/pyd\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 73 | @.^.Lib.math/pyd\ |
| 74 | @.^.Lib.md5/pyd\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 75 | @.^.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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 97 | @.^.Lib._sre/pyd\ |
| 98 | @.^.Lib.xxsubtype/pyd\ |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 99 | @.^.Lib._symtable/pyd\ |
| 100 | @.^.Lib._random/pyd\ |
| 101 | @.^.Lib.zipimport/pyd\ |
| 102 | @.^.Lib._csv/pyd |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 103 | |
| 104 | |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 105 | OBJECTS_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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 115 | @.^.Python.o.mysnprintf\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 116 | @.^.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 Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 134 | @.^.Python.o.codecs\ |
| 135 | @.^.Python.o.symtable\ |
| 136 | @.^.Python.o.future |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 137 | |
| 138 | |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 139 | OBJECTS_RISCOS = \ |
| 140 | @.Python.o.dynload_riscos\ |
| 141 | @.Python.o.getcwd_riscos\ |
| 142 | @.Python.o.getmtime_riscos\ |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 143 | @.o.unixstuff |
| 144 | |
| 145 | |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 146 | OBJECTS_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öwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 153 | @.^.Objects.o.obmalloc\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 154 | @.^.Objects.o.moduleobject\ |
| 155 | @.^.Objects.o.methodobject\ |
| 156 | @.^.Objects.o.longobject\ |
| 157 | @.^.Objects.o.listobject\ |
| 158 | @.^.Objects.o.intobject\ |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 159 | @.^.Objects.o.boolobject\ |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 160 | @.^.Objects.o.iterobject\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 161 | @.^.Objects.o.funcobject\ |
| 162 | @.^.Objects.o.frameobject\ |
| 163 | @.^.Objects.o.floatobject\ |
| 164 | @.^.Objects.o.fileobject\ |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 165 | @.^.Objects.o.enumobject\ |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 166 | @.^.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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 174 | @.^.Objects.o.unicodeobject\ |
Guido van Rossum | bd67d6f | 2001-10-27 21:16:16 +0000 | [diff] [blame] | 175 | @.^.Objects.o.descrobject\ |
| 176 | @.^.Objects.o.weakrefobject\ |
| 177 | @.^.Objects.o.structseq |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 178 | |
| 179 | |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 180 | OBJECTS_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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 194 | @.^.Parser.o.acceler |
| 195 | |
| 196 | SUPPORT_FILES = @.^.!Boot @.^.!Run @.^.!Sprites @.^.!Sprites22 @.^.AddToPath |
| 197 | |
| 198 | OBJECTS = $(OBJECTS_PYTHON) $(OBJECTS_PARSER) $(MODULES_STATIC) $(OBJECTS_OBJECTS) $(OBJECTS_RISCOS) |
| 199 | |
| 200 | |
| 201 | all: @.^.$(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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 207 | $(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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 212 | |
| 213 | |
| 214 | ######################################################################### |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 215 | # RISC OS support files |
| 216 | # |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 217 | @.^.!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öwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 255 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 258 | @.^.Lib.plat-riscos.drawf/pyd: Modules.o.drawfmodule #s.linktab |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 259 | $(LINK) -aof -o Modules.o.drawflink Modules.o.drawfmodule $(OSLIB).o.OSLIB32 |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 260 | $(MAKEDLK) -d @.^.Lib.plat-riscos.drawf/pyd -s s.linktab -o Modules.o.drawflink -e initdrawf |
| 261 | |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 262 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 265 | @.^.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öwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 271 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 274 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 284 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 310 | @.^.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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 317 | $(LINK) -aof -o Modules.o.swilink Modules.o.swimodule $(OSLIB).o.OSLIB32 |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 318 | $(MAKEDLK) -d @.^.Lib.plat-riscos.swi/pyd -s s.linktab -o Modules.o.swilink -e initswi |
| 319 | |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 320 | @.^.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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 341 | @.^.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öwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 344 | @.^.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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 347 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 349 | |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 350 | |
| 351 | ############################################################################ |
| 352 | # Dynamic Modules with other dependencies |
| 353 | # |
| 354 | @.^.Lib.select/pyd: @.^.Modules.o.selectmodule s.linktab |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 355 | $(LINK) -aof -o @.^.Modules.o.selectlink @.^.Modules.o.selectmodule $(TCPIPLIB).o.socklib5 |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 356 | $(MAKEDLK) -d @.^.Lib.select/pyd -s s.linktab -o @.^.Modules.o.selectlink -e initselect |
| 357 | |
| 358 | @.^.Modules.o.selectmodule: @.^.Modules.c.selectmodule |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 359 | $(CC) -I$(TCPIPLIB).include -o $@ @.^.Modules.c.selectmodule |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 360 | |
| 361 | @.^.Lib._socket/pyd: @.^.Modules.o.socketmodule s.linktab |
Martin v. Löwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 362 | $(LINK) -aof -o @.^.Modules.o._socketlink @.^.Modules.o.socketmodule $(TCPIPLIB).o.inetlib $(TCPIPLIB).o.unixlib $(TCPIPLIB).o.socklib5 |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 363 | $(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 Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 366 | $(CC) -I$(TCPIPLIB).include -o $@ @.^.Modules.c.socketmodule |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 367 | |
| 368 | |
| 369 | @.^.Lib.zlib/pyd: @.^.Modules.o.zlibmodule s.linktab |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 370 | $(LINK) -aof -o @.^.Modules.o.zliblink @.^.Modules.o.zlibmodule $(ZLIB).zlib |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 371 | $(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öwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 376 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 382 | |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 383 | @.^.Lib.time/pyd: @.^.Modules.o.timemodule s.linktab @.o.sleep |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 384 | $(LINK) -aof -o @.^.Modules.o.timelink @.^.Modules.o.timemodule @.o.sleep $(OSLIB).o.OSLib32 |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 385 | $(MAKEDLK) -d @.^.Lib.time/pyd -s s.linktab -o @.^.Modules.o.timelink -e inittime |
| 386 | |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 387 | #@.^.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 Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 391 | |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 392 | @.^.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öwis | a94568a | 2003-05-10 07:36:56 +0000 | [diff] [blame] | 399 | @.^.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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 403 | |
| 404 | ########################################################################## |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 405 | # dynamic linking symbol table |
| 406 | # |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 407 | o.linktab: s.linktab |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 408 | ObjAsm -APCS 3/32bit s.linktab o.linktab |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 409 | |
| 410 | s.linktab: $(OBJECTS) |
| 411 | $(OBJSCAN) -s s.linktab -o $(OBJECTS) $(clib).o.stubs |
| 412 | |
Guido van Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 413 | ########################################################################## |
| 414 | # special targets |
| 415 | # |
| 416 | libclean: |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 417 | -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 Rossum | bceccf5 | 2001-04-10 22:07:43 +0000 | [diff] [blame] | 435 | |
| 436 | clean: libclean |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 437 | -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 Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 444 | |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 445 | rebuild: 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 Rossum | bd67d6f | 2001-10-27 21:16:16 +0000 | [diff] [blame] | 450 | remove @.^.LibPython |
Guido van Rossum | 622cc03 | 2001-10-24 20:04:51 +0000 | [diff] [blame] | 451 | |
| 452 | clean-support: |
| 453 | -wipe @.^.!* ~C~V |
| 454 | remove @.^.AddToPath |
Guido van Rossum | 228d807 | 2001-03-02 05:58:11 +0000 | [diff] [blame] | 455 | |
| 456 | cdirs: |
| 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: |