home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Modules / Makefile.pre.in < prev    next >
Encoding:
Makefile  |  1994-09-12  |  3.6 KB  |  156 lines  |  [TEXT/R*ch]

  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. # Machine-dependent subdirectories
  31. MACHDEP=    @MACHDEP@
  32.  
  33. # Install prefix, may be changed by configure
  34. prefix=        /usr/local
  35.  
  36. # Symbols used for using shared libraries
  37. SO=        @SO@
  38. LDSHARED=    @LDSHARED@
  39. CCSHARED=    @CCSHARED@
  40. LINKFORSHARED=    @LINKFORSHARED@
  41. DESTSHARED=    $(prefix)/lib/python/$(MACHDEP)
  42.  
  43.  
  44. # === Variables that are customizable by hand ===
  45.  
  46. INCLDIR=    $(srcdir)/../Include
  47. OPT=        @OPT@
  48. CFLAGS=        $(OPT) -I$(INCLDIR) -I.. $(DEFS)
  49.  
  50. MKDEP=        mkdep
  51. SHELL=        /bin/sh
  52.  
  53. MAKESETUP=    $(srcdir)/makesetup
  54.  
  55. # === Fixed definitions ===
  56.  
  57. OBJS=        $(MODOBJS)
  58.  
  59. LIB=        libModules.a
  60.  
  61. MYLIBS=        $(LIB) \
  62.         ../Python/libPython.a \
  63.         ../Objects/libObjects.a \
  64.         ../Parser/libParser.a
  65.  
  66. SYSLIBS=    $(LIBM) $(LIBC)
  67.  
  68.  
  69. # === Rules ===
  70.  
  71. all:        $(LIB) ../python
  72.  
  73. $(LIB):        $(OBJS) Makefile
  74.         -rm -f $(LIB)
  75.         $(AR) cr $(LIB) $(OBJS)
  76.         $(RANLIB) $(LIB)
  77.  
  78. ../python:    config.o $(MYLIBS) Makefile
  79.         $(CC) $(OPT) config.o $(LINKFORSHARED) \
  80.               $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
  81.         mv python ../python
  82.  
  83. config.o:    config.c Makefile $(MYLIBS)
  84.         $(CC) $(CFLAGS) -DPYTHONPATH=\"$(PYTHONPATH)\" -c config.c
  85.  
  86. clean:
  87.         -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
  88.  
  89. clobber:    clean
  90.         -rm -f *.a tags TAGS config.c glmodule.c Makefile.pre
  91.         -rm -f *.so so_locations
  92.  
  93. config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup
  94.         $(SHELL) $(MAKESETUP) Setup
  95.  
  96. Setup:
  97.         cp $(srcdir)/Setup.in Setup
  98.  
  99. Makefile.pre:    Makefile.pre.in ../config.status
  100.         (cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
  101.         $(SHELL) config.status)
  102.  
  103. depend:
  104.         $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  105.                     sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  106.  
  107. .PRECIOUS:    ../python
  108.  
  109. glmodule.c:    $(srcdir)/cgen.py $(srcdir)/cstubs
  110.         python $(srcdir)/cgen.py <$(srcdir)/cstubs >glmodule.c
  111.  
  112. almodule.o: almodule.c
  113. arraymodule.o: arraymodule.c
  114. audioop.o: audioop.c
  115. cdmodule.o: cdmodule.c
  116. clmodule.o: clmodule.c
  117. dbmmodule.o: dbmmodule.c
  118. fcntlmodule.o: fcntlmodule.c
  119. flmodule.o: flmodule.c
  120. fmmodule.o: fmmodule.c
  121. glmodule.o: glmodule.c
  122. imageop.o: imageop.c
  123. imgfile.o: imgfile.c
  124. mathmodule.o: mathmodule.c
  125. md5c.o: md5c.c
  126. md5module.o: md5module.c
  127. mpzmodule.o: mpzmodule.c
  128. nismodule.o: nismodule.c
  129. parsermodule.o: parsermodule.c
  130. posixmodule.o: posixmodule.c
  131. pwdmodule.o: pwdmodule.c
  132. regexmodule.o: regexmodule.c
  133. regexpr.o: regexpr.c
  134. rgbimgmodule.o: rgbimgmodule.c
  135. rotormodule.o: rotormodule.c
  136. selectmodule.o: selectmodule.c
  137. sgimodule.o: sgimodule.c
  138. socketmodule.o: socketmodule.c
  139. stdwinmodule.o: stdwinmodule.c
  140. stropmodule.o: stropmodule.c
  141. structmodule.o: structmodule.c
  142. sunaudiodev.o: sunaudiodev.c
  143. svmodule.o: svmodule.c
  144. threadmodule.o: threadmodule.c
  145. timemodule.o: timemodule.c
  146. timingmodule.o: timingmodule.c
  147. xxmodule.o: xxmodule.c
  148. yuvconvert.o: yuvconvert.c
  149.  
  150. # Rules to build and install all shared modules
  151. sharedmods:    $(SHAREDMODS)
  152. sharedinstall:    $(SHAREDMODS)
  153.         mv $(SHAREDMODS) $(DESTSHARED)
  154.  
  155. # Stuff is appended here by makesetup and make depend
  156.