home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyth_os2.zip / python-1.0.2 / Modules / Makefile_pre.in < prev    next >
Makefile  |  1994-01-14  |  3KB  |  142 lines

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