home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pytexdoc / ext / source / !Python / Makefile
Encoding:
Makefile  |  1996-11-06  |  6.1 KB  |  179 lines

  1. #Makefile for Python For use with !Amu not !Make
  2.  
  3. # You will need to alter these paths
  4.  
  5. ROOT  = <Main$Dir>.AcornC_C++.Libraries
  6. OSLIB = $(ROOT).OSLib
  7. OSLIBS = $(OSLIB).Computer,$(OSLIB).Core,$(OSLIB).User
  8. CLIB = $(ROOT).Clib
  9. DLKLIB = $(ROOT).dlk
  10. SOCKLIB = $(ROOT).sockets
  11.  
  12. # End of paths
  13.  
  14. # dlk version
  15.  
  16. DLKFLAG= -DDLK
  17. DLKOBJS= $(DLKLIB).o.dlk_load  o.linktab
  18.  
  19.  
  20. CC = cc -c -throwback -I@,@.Parser,$(CLIB),$(OSLIBS),$(SOCKLIB),$(DLKLIB) \
  21.      $(DLKFLAG) \
  22.   -DRISCOS -DHAVE_CONFIG_H -wad
  23.  
  24.  
  25. #Statically loaded modules
  26.  
  27. MODULES = Modules.config.o Modules.riscosmodule.o Modules.main.o \
  28.   Modules.getpath.o
  29.  
  30. PARSER = Parser.acceler.o Parser.bitset.o Parser.firstsets.o \
  31.   Parser.grammar.o Parser.grammar1.o Parser.intrcheck.o Parser.listnode.o \
  32.   Parser.metagrammar.o Parser.myreadline.o Parser.node.o Parser.parser.o \
  33.   Parser.parsetok.o Parser.pgen.o Parser.printgramm.o Parser.tokenizer.o
  34.  
  35. OBJECTS = Objects.o.abstract Objects.o.classobject \
  36.   Objects.o.cobject Objects.o.complexobject  Objects.o.fileobject \
  37.   Objects.o.floatobject Objects.o.frameobject Objects.o.funcobject \
  38.   Objects.o.intobject Objects.o.listobject Objects.o.longobject \
  39.   Objects.o.mappingobject Objects.o.methodobject Objects.o.moduleobject \
  40.   Objects.o.object Objects.o.rangeobject Objects.o.sliceobject \
  41.   Objects.o.stringobject Objects.o.tupleobject Objects.o.typeobject
  42.  
  43. MONTY = Monty.o.bltinmodule Monty.o.ceval Monty.o.cgensupport \
  44.   Monty.o.compile Monty.o.errors Monty.o.getargs Monty.o.getopt \
  45.   Monty.o.graminit Monty.o.import Monty.o.marshal Monty.o.modsupport \
  46.   Monty.o.frozen Monty.o.mystrtoul  Monty.o.Pythonrun Monty.o.sigcheck \
  47.   Monty.o.structmemb Monty.o.traceback Monty.o.unixstuff Monty.o.sysmodule \
  48.   Monty.o.importdl Monty.o.getcompiler Monty.o.getversion Monty.o.getplatform \
  49.   Monty.o.getcopyright
  50.  
  51. .SUFFIXES: .o .c
  52.  
  53. .c.o  :
  54.        $(CC) -o $@ $*.c
  55.  
  56. all: Python alld
  57.  
  58. Python: $(MODULES) Parser.Parselib.o Monty.Montylib.o Objects.Objectlib.o \
  59.         o.linktab
  60.         link -aif -o Python $(MODULES)   Monty.Montylib.o \
  61.         Parser.Parselib.o Objects.Objectlib.o $(DLKOBJS) \
  62.         $(CLIB).o.Stubs $(OSLIB).o.OSLib 
  63.  
  64. Monty.Montylib.o: $(MONTY)
  65.         libfile -c -o Monty.Montylib.o $(MONTY)
  66.  
  67. Objects.Objectlib.o: $(OBJECTS)
  68.         libfile -c -o Objects.Objectlib.o $(OBJECTS)
  69.  
  70. Parser.Parselib.o: $(PARSER) 
  71.         libfile -c -o Parser.Parselib.o $(PARSER)
  72.  
  73. # Dynamically loaded modules
  74.  
  75. alld: dbinascii dmath dcmath dtime darray dregex dsignal dstrop dstruct \
  76.       dsoundex drotor dmd5 doperator dnew ddrawf dswi dsocket
  77.    echo Dynamic modules made
  78.  
  79. dbinascii: modules.o.binascii o.linktab
  80.     makedlk  -d lib.lib1.d.binascii -s s.linktab -o modules.o.binascii \
  81.              -e initbinascii
  82.  
  83. dmath: modules.o.mathmodule o.linktab
  84.     makedlk  -d lib.lib1.d.math -s s.linktab -o modules.o.mathmodule \
  85.              -e initmath
  86.  
  87. dcmath: modules.o.cmathmodule o.linktab
  88.     makedlk  -d lib.lib1.d.cmath -s s.linktab -o modules.o.cmathmodule \
  89.              -e initcmath
  90.  
  91. dtime: modules.o.timemodule o.linktab
  92.     makedlk  -d lib.lib1.d.time -s s.linktab -o modules.o.timemodule \
  93.              -e inittime
  94.  
  95. darray: modules.o.arraymodule o.linktab
  96.     makedlk  -d lib.lib1.d.array -s s.linktab -o modules.o.arraymodule \
  97.              -e initarray
  98.  
  99. dregex: modules.o.regexmodule modules.o.regexpr o.linktab
  100.     link -aof -o modules.o.regexlink modules.o.regexpr modules.o.regexmodule
  101.     makedlk  -d lib.lib1.d.regex -s s.linktab -o modules.o.regexlink \
  102.              -e initregex
  103.  
  104. dsignal: modules.o.signalmodule o.linktab
  105.     makedlk  -d lib.lib1.d.signal -s s.linktab -o modules.o.signalmodule \
  106.              -e initsignal
  107.  
  108. dstrop: modules.o.stropmodule o.linktab
  109.     makedlk  -d lib.lib1.d.strop -s s.linktab -o modules.o.stropmodule \
  110.              -e initstrop
  111.  
  112. dstruct: modules.o.structmodule o.linktab
  113.     makedlk  -d lib.lib1.d.struct -s s.linktab -o modules.o.structmodule \
  114.              -e initstruct
  115.  
  116. dsoundex: modules.o.soundex o.linktab
  117.     makedlk  -d lib.lib1.d.soundex -s s.linktab -o modules.o.soundex \
  118.              -e initsoundex
  119.  
  120. drotor: modules.o.rotormodule o.linktab
  121.     makedlk  -d lib.lib1.d.rotor -s s.linktab -o modules.o.rotormodule \
  122.              -e initrotor
  123.  
  124. dmd5: modules.o.md5module modules.o.md5c o.linktab
  125.     link -aof -o modules.o.md5link modules.o.md5module modules.o.md5c
  126.     makedlk  -d lib.lib1.d.md5 -s s.linktab -o modules.o.md5link \
  127.              -e initmd5
  128.  
  129. doperator: modules.o.operator  o.linktab
  130.     makedlk  -d lib.lib1.d.operator -s s.linktab -o modules.o.operator \
  131.              -e initoperator
  132.  
  133. dnew:  modules.o.newmodule  o.linktab
  134.     makedlk  -d lib.lib1.d.new -s s.linktab -o modules.o.newmodule \
  135.              -e initnew
  136.  
  137. dparser:  modules.o.parsermodule  o.linktab
  138.     makedlk  -d lib.lib1.d.parser -s s.linktab -o modules.o.parsermodule \
  139.              -e initparser
  140.  
  141. ddrawf: modules.o.drawfmodule o.linktab
  142.     link -aof -o modules.o.drawflink modules.o.drawfmodule $(OSLIB).o.OSLib
  143.     makedlk  -d lib.lib1.d.drawf -s s.linktab -o modules.o.drawflink \
  144.              -e initdrawf
  145.  
  146. dswi: modules.o.swimodule o.linktab
  147.     link -aof -o modules.o.swilink modules.o.swimodule $(OSLIB).o.OSLib
  148.     makedlk  -d lib.lib1.d.swi -s s.linktab -o modules.o.swilink \
  149.              -e initswi
  150.  
  151. dsocket: modules.o.socketmodule o.linktab
  152.     link -aof -o modules.o.socketlink modules.o.socketmodule \
  153.          $(SOCKLIB).o.unixlib $(SOCKLIB).o.inetlib $(SOCKLIB).o.socklib
  154.     makedlk  -d lib.lib1.d._socket -s s.linktab -o modules.o.socketlink \
  155.              -e init_socket
  156.  
  157. o.linktab: s.linktab
  158.     ObjAsm s.linktab o.linktab
  159.  
  160. s.linktab: Parser.Parselib.o Monty.Montylib.o Objects.Objectlib.o \
  161.               Modules.o.config
  162.     objscan -s s.linktab -o  $(MONTY) $(OBJECTS) \
  163.               Modules.o.config $(CLIB).o.stubs
  164.  
  165. clean:
  166.        wipe Monty.o.* ~C~R~F~V
  167.        wipe Objects.o.* ~C~R~F~V
  168.        wipe Parser.o.* ~C~R~F~V
  169.        wipe Modules.o.* ~C~R~F~V
  170.        wipe Lib.Lib1.pyc.* ~C~R~F~V
  171.        wipe Lib.Lib2.pyc.* ~C~R~F~V
  172.        wipe Lib.NetLib.pyc.* ~C~R~F~V
  173.        wipe Lib.RiscLib.pyc.* ~C~R~F~V
  174.        wipe test.pyc.*  ~C~R~F~V
  175.        wipe s.linktab ~C~R~F~V
  176.  
  177. rebuild:
  178.         wipe Python ~C~R~F~V
  179.         wipe Lib.Lib1.d.* ~C~R~F~V