home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyth_os2.zip / python-1.0.2 / OS2 / Modules / Makefile < prev    next >
Makefile  |  1994-06-02  |  6KB  |  169 lines

  1. # Generated automatically from Makefile.pre by makesetup.
  2. # Generated automatically from Makefile.pre.in by configure.
  3. # META-NOTE: this note is different from the note in the other Makefiles!
  4. # NOTE: Makefile.pre.in is converted into Makefile.pre by the configure
  5. # script in the toplevel directory or by ../config.status.
  6. # Makefile.pre is converted into Makefile by running the makesetup
  7. # script in the source directory.  Once Makefile exists, it can be
  8. # brought up to date by running "make Makefile".  (The makesetup also
  9. # creates config.c from config.c.in in the source directory.)
  10.  
  11. # === Variables set by makesetup ===
  12.  
  13. MODOBJS=      arraymodule.o  mathmodule.o  parsermodule.o  posixmodule.o  regexmodule.o regexpr.o  stropmodule.o  structmodule.o  timemodule.o  fcntlmodule.o  pwdmodule.o  selectmodule.o  socketmodule.o  audioopmodule.o  imageopmodule.o  rgbimgmodule.o  md5module.o md5c.o  rotormodule.o
  14. MODLIBS=    
  15.  
  16. # === Definitions added by makesetup ===
  17.  
  18. PYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(ARCHPATH)$(STDWINPATH)
  19. TESTPATH=:$(DESTLIB)/test
  20. DESTLIB=$(prefix)/lib/python
  21.  
  22.  
  23. # === Variables set by configure ===
  24.  
  25. srcdir=        .
  26.  
  27. CC=        gcc
  28. RANLIB=        ar -s
  29. AR=        ar
  30.  
  31. DEFS=        -DHAVE_CONFIG_H
  32. LIBS=        
  33. LIBM=        -lm
  34. LIBC=        
  35.  
  36. # Install prefix, may be changed by configure
  37. prefix=        /usr/local
  38.  
  39.  
  40. # === Variables that are customizable by hand ===
  41.  
  42. INCLDIR=    $(srcdir)/../Include
  43. OPT=        -O
  44. CFLAGS=        $(OPT) -I$(INCLDIR) -I.. $(DEFS)
  45.  
  46. MKDEP=        mkdep
  47. SHELL=        /bin/sh
  48.  
  49. MAKESETUP=    $(srcdir)/makesetup
  50.  
  51. # === Fixed definitions ===
  52.  
  53. OBJS=        $(MODOBJS)
  54.  
  55. LIB=        libModules.a
  56.  
  57. MYLIBS=        $(LIB) \
  58.         ../Python/libPython.a \
  59.         ../Objects/libObjects.a \
  60.         ../Parser/libParser.a
  61.  
  62. SYSLIBS=    $(LIBM) $(LIBC)
  63.  
  64.  
  65. # === Rules ===
  66.  
  67. all:        $(LIB) ../python
  68.  
  69. $(LIB):        $(OBJS)
  70.         $(AR) cr $(LIB) $(OBJS)
  71.         $(RANLIB) $(LIB)
  72.  
  73. ../python.exe:    config.o $(MYLIBS)
  74.         $(CC) config.o $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python.exe
  75.         mv python.exe ../python.exe
  76.  
  77. config.o:    config.c Makefile
  78.         $(CC) $(CFLAGS) -DPYTHONPATH=\"$(PYTHONPATH)\" -c config.c
  79.  
  80. clean:
  81.         -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
  82.  
  83. clobber:    clean
  84.         -rm -f *.a tags TAGS
  85.  
  86. #config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup
  87. #        $(SHELL) $(MAKESETUP) Setup
  88. #
  89. #Setup:
  90. #        cp $(srcdir)/Setup.in Setup
  91. #
  92. #Makefile.pre:    Makefile.pre.in ../config.status
  93. #        (cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
  94. #        $(SHELL) config.status)
  95.  
  96. depend:
  97.         $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  98.                     sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  99.  
  100. .PRECIOUS:    ../python
  101.  
  102. glmodule.c:    $(srcdir)/cgen.py $(srcdir)/cstubs
  103.         python $(srcdir)/cgen.py <$(srcdir)/cstubs >glmodule.c
  104.  
  105. almodule.o: almodule.c
  106. arraymodule.o: arraymodule.c
  107. audioopmodule.o: audioopmodule.c
  108. cdmodule.o: cdmodule.c
  109. clmodule.o: clmodule.c
  110. dbmmodule.o: dbmmodule.c
  111. fcntlmodule.o: fcntlmodule.c
  112. flmodule.o: flmodule.c
  113. fmmodule.o: fmmodule.c
  114. glmodule.o: glmodule.c
  115. imageopmodule.o: imageopmodule.c
  116. imgfilemodule.o: imgfilemodule.c
  117. mathmodule.o: mathmodule.c
  118. md5c.o: md5c.c
  119. md5module.o: md5module.c
  120. mpzmodule.o: mpzmodule.c
  121. nismodule.o: nismodule.c
  122. parsermodule.o: parsermodule.c
  123. posixmodule.o: posixmodule.c
  124. pwdmodule.o: pwdmodule.c
  125. regexmodule.o: regexmodule.c
  126. regexpr.o: regexpr.c
  127. rgbimgmodule.o: rgbimgmodule.c
  128. rotormodule.o: rotormodule.c
  129. selectmodule.o: selectmodule.c
  130. sgimodule.o: sgimodule.c
  131. socketmodule.o: socketmodule.c
  132. stdwinmodule.o: stdwinmodule.c
  133. stropmodule.o: stropmodule.c
  134. structmodule.o: structmodule.c
  135. sunaudiodevmodule.o: sunaudiodevmodule.c
  136. svmodule.o: svmodule.c
  137. threadmodule.o: threadmodule.c
  138. timemodule.o: timemodule.c
  139. timingmodule.o: timingmodule.c
  140. xxmodule.o: xxmodule.c
  141. yuvconvert.o: yuvconvert.c
  142.  
  143. # === Rules added by makesetup ===
  144.  
  145. arraymodule.o: $(srcdir)/arraymodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/arraymodule.c
  146. mathmodule.o: $(srcdir)/mathmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/mathmodule.c
  147. parsermodule.o: $(srcdir)/parsermodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/parsermodule.c
  148. posixmodule.o: $(srcdir)/posixmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/posixmodule.c
  149. regexmodule.o: $(srcdir)/regexmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/regexmodule.c
  150. regexpr.o: $(srcdir)/regexpr.c; $(CC) $(CFLAGS)  -c $(srcdir)/regexpr.c
  151. stropmodule.o: $(srcdir)/stropmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/stropmodule.c
  152. structmodule.o: $(srcdir)/structmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/structmodule.c
  153. timemodule.o: $(srcdir)/timemodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/timemodule.c
  154. fcntlmodule.o: $(srcdir)/fcntlmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/fcntlmodule.c
  155. pwdmodule.o: $(srcdir)/pwdmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/pwdmodule.c
  156. selectmodule.o: $(srcdir)/selectmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/selectmodule.c
  157. socketmodule.o: $(srcdir)/socketmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/socketmodule.c
  158. audioopmodule.o: $(srcdir)/audioopmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/audioopmodule.c
  159. imageopmodule.o: $(srcdir)/imageopmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/imageopmodule.c
  160. rgbimgmodule.o: $(srcdir)/rgbimgmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/rgbimgmodule.c
  161. md5module.o: $(srcdir)/md5module.c; $(CC) $(CFLAGS)  -c $(srcdir)/md5module.c
  162. md5c.o: $(srcdir)/md5c.c; $(CC) $(CFLAGS)  -c $(srcdir)/md5c.c
  163. rotormodule.o: $(srcdir)/rotormodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/rotormodule.c
  164.  
  165.  
  166. # DO NOT DELETE THIS LINE -- mkdep uses it.
  167. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  168. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  169.