home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-06 | 6.1 KB | 179 lines |
- #Makefile for Python For use with !Amu not !Make
-
- # You will need to alter these paths
-
- ROOT = <Main$Dir>.AcornC_C++.Libraries
- OSLIB = $(ROOT).OSLib
- OSLIBS = $(OSLIB).Computer,$(OSLIB).Core,$(OSLIB).User
- CLIB = $(ROOT).Clib
- DLKLIB = $(ROOT).dlk
- SOCKLIB = $(ROOT).sockets
-
- # End of paths
-
- # dlk version
-
- DLKFLAG= -DDLK
- DLKOBJS= $(DLKLIB).o.dlk_load o.linktab
-
-
- CC = cc -c -throwback -I@,@.Parser,$(CLIB),$(OSLIBS),$(SOCKLIB),$(DLKLIB) \
- $(DLKFLAG) \
- -DRISCOS -DHAVE_CONFIG_H -wad
-
-
- #Statically loaded modules
-
- MODULES = Modules.config.o Modules.riscosmodule.o Modules.main.o \
- Modules.getpath.o
-
- PARSER = Parser.acceler.o Parser.bitset.o Parser.firstsets.o \
- Parser.grammar.o Parser.grammar1.o Parser.intrcheck.o Parser.listnode.o \
- Parser.metagrammar.o Parser.myreadline.o Parser.node.o Parser.parser.o \
- Parser.parsetok.o Parser.pgen.o Parser.printgramm.o Parser.tokenizer.o
-
- OBJECTS = Objects.o.abstract Objects.o.classobject \
- Objects.o.cobject Objects.o.complexobject Objects.o.fileobject \
- Objects.o.floatobject Objects.o.frameobject Objects.o.funcobject \
- Objects.o.intobject Objects.o.listobject Objects.o.longobject \
- Objects.o.mappingobject Objects.o.methodobject Objects.o.moduleobject \
- Objects.o.object Objects.o.rangeobject Objects.o.sliceobject \
- Objects.o.stringobject Objects.o.tupleobject Objects.o.typeobject
-
- MONTY = Monty.o.bltinmodule Monty.o.ceval Monty.o.cgensupport \
- Monty.o.compile Monty.o.errors Monty.o.getargs Monty.o.getopt \
- Monty.o.graminit Monty.o.import Monty.o.marshal Monty.o.modsupport \
- Monty.o.frozen Monty.o.mystrtoul Monty.o.Pythonrun Monty.o.sigcheck \
- Monty.o.structmemb Monty.o.traceback Monty.o.unixstuff Monty.o.sysmodule \
- Monty.o.importdl Monty.o.getcompiler Monty.o.getversion Monty.o.getplatform \
- Monty.o.getcopyright
-
- .SUFFIXES: .o .c
-
- .c.o :
- $(CC) -o $@ $*.c
-
- all: Python alld
-
- Python: $(MODULES) Parser.Parselib.o Monty.Montylib.o Objects.Objectlib.o \
- o.linktab
- link -aif -o Python $(MODULES) Monty.Montylib.o \
- Parser.Parselib.o Objects.Objectlib.o $(DLKOBJS) \
- $(CLIB).o.Stubs $(OSLIB).o.OSLib
-
- Monty.Montylib.o: $(MONTY)
- libfile -c -o Monty.Montylib.o $(MONTY)
-
- Objects.Objectlib.o: $(OBJECTS)
- libfile -c -o Objects.Objectlib.o $(OBJECTS)
-
- Parser.Parselib.o: $(PARSER)
- libfile -c -o Parser.Parselib.o $(PARSER)
-
- # Dynamically loaded modules
-
- alld: dbinascii dmath dcmath dtime darray dregex dsignal dstrop dstruct \
- dsoundex drotor dmd5 doperator dnew ddrawf dswi dsocket
- echo Dynamic modules made
-
- dbinascii: modules.o.binascii o.linktab
- makedlk -d lib.lib1.d.binascii -s s.linktab -o modules.o.binascii \
- -e initbinascii
-
- dmath: modules.o.mathmodule o.linktab
- makedlk -d lib.lib1.d.math -s s.linktab -o modules.o.mathmodule \
- -e initmath
-
- dcmath: modules.o.cmathmodule o.linktab
- makedlk -d lib.lib1.d.cmath -s s.linktab -o modules.o.cmathmodule \
- -e initcmath
-
- dtime: modules.o.timemodule o.linktab
- makedlk -d lib.lib1.d.time -s s.linktab -o modules.o.timemodule \
- -e inittime
-
- darray: modules.o.arraymodule o.linktab
- makedlk -d lib.lib1.d.array -s s.linktab -o modules.o.arraymodule \
- -e initarray
-
- dregex: modules.o.regexmodule modules.o.regexpr o.linktab
- link -aof -o modules.o.regexlink modules.o.regexpr modules.o.regexmodule
- makedlk -d lib.lib1.d.regex -s s.linktab -o modules.o.regexlink \
- -e initregex
-
- dsignal: modules.o.signalmodule o.linktab
- makedlk -d lib.lib1.d.signal -s s.linktab -o modules.o.signalmodule \
- -e initsignal
-
- dstrop: modules.o.stropmodule o.linktab
- makedlk -d lib.lib1.d.strop -s s.linktab -o modules.o.stropmodule \
- -e initstrop
-
- dstruct: modules.o.structmodule o.linktab
- makedlk -d lib.lib1.d.struct -s s.linktab -o modules.o.structmodule \
- -e initstruct
-
- dsoundex: modules.o.soundex o.linktab
- makedlk -d lib.lib1.d.soundex -s s.linktab -o modules.o.soundex \
- -e initsoundex
-
- drotor: modules.o.rotormodule o.linktab
- makedlk -d lib.lib1.d.rotor -s s.linktab -o modules.o.rotormodule \
- -e initrotor
-
- dmd5: modules.o.md5module modules.o.md5c o.linktab
- link -aof -o modules.o.md5link modules.o.md5module modules.o.md5c
- makedlk -d lib.lib1.d.md5 -s s.linktab -o modules.o.md5link \
- -e initmd5
-
- doperator: modules.o.operator o.linktab
- makedlk -d lib.lib1.d.operator -s s.linktab -o modules.o.operator \
- -e initoperator
-
- dnew: modules.o.newmodule o.linktab
- makedlk -d lib.lib1.d.new -s s.linktab -o modules.o.newmodule \
- -e initnew
-
- dparser: modules.o.parsermodule o.linktab
- makedlk -d lib.lib1.d.parser -s s.linktab -o modules.o.parsermodule \
- -e initparser
-
- ddrawf: modules.o.drawfmodule o.linktab
- link -aof -o modules.o.drawflink modules.o.drawfmodule $(OSLIB).o.OSLib
- makedlk -d lib.lib1.d.drawf -s s.linktab -o modules.o.drawflink \
- -e initdrawf
-
- dswi: modules.o.swimodule o.linktab
- link -aof -o modules.o.swilink modules.o.swimodule $(OSLIB).o.OSLib
- makedlk -d lib.lib1.d.swi -s s.linktab -o modules.o.swilink \
- -e initswi
-
- dsocket: modules.o.socketmodule o.linktab
- link -aof -o modules.o.socketlink modules.o.socketmodule \
- $(SOCKLIB).o.unixlib $(SOCKLIB).o.inetlib $(SOCKLIB).o.socklib
- makedlk -d lib.lib1.d._socket -s s.linktab -o modules.o.socketlink \
- -e init_socket
-
- o.linktab: s.linktab
- ObjAsm s.linktab o.linktab
-
- s.linktab: Parser.Parselib.o Monty.Montylib.o Objects.Objectlib.o \
- Modules.o.config
- objscan -s s.linktab -o $(MONTY) $(OBJECTS) \
- Modules.o.config $(CLIB).o.stubs
-
- clean:
- wipe Monty.o.* ~C~R~F~V
- wipe Objects.o.* ~C~R~F~V
- wipe Parser.o.* ~C~R~F~V
- wipe Modules.o.* ~C~R~F~V
- wipe Lib.Lib1.pyc.* ~C~R~F~V
- wipe Lib.Lib2.pyc.* ~C~R~F~V
- wipe Lib.NetLib.pyc.* ~C~R~F~V
- wipe Lib.RiscLib.pyc.* ~C~R~F~V
- wipe test.pyc.* ~C~R~F~V
- wipe s.linktab ~C~R~F~V
-
- rebuild:
- wipe Python ~C~R~F~V
- wipe Lib.Lib1.d.* ~C~R~F~V