home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Modules / Setup.OpenStep-MACH < prev    next >
Encoding:
Text File  |  1997-03-23  |  11.1 KB  |  332 lines

  1. # The file Setup is used by the makesetup script to construct the files
  2. # Makefile and config.c, from Makefile.pre and config.c.in,
  3. # respectively.  The file Setup itself is initially copied from
  4. # Setup.in; once it exists it will not be overwritten, so you can edit
  5. # Setup to your heart's content.  Note that Makefile.pre is created
  6. # from Makefile.pre.in by the toplevel configure script.
  7.  
  8. # (VPATH notes: Setup and Makefile.pre are in the build directory, as
  9. # are Makefile and config.c; the *.in files are in the source
  10. # directory.)
  11.  
  12. # Each line in this file describes one or more optional modules.
  13. # Comment out lines to suppress modules.
  14. # Lines have the following structure:
  15. #
  16. # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
  17. #
  18. # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
  19. # <cpparg> is anything starting with -I, -D, -U or -C
  20. # <library> is anything ending in .a or beginning with -l or -L
  21. # <module> is anything else but should be a valid Python
  22. # identifier (letters, digits, underscores, beginning with non-digit)
  23. #
  24. # (As the makesetup script changes, it may recognize some other
  25. # arguments as well, e.g. *.so and *.sl as libraries.  See the big
  26. # case statement in the makesetup script.)
  27. #
  28. # Lines can also have the form
  29. #
  30. # <name> = <value>
  31. #
  32. # which defines a Make variable definition inserted into Makefile.in
  33. #
  34. # Finally, if a line has the literal form
  35. #
  36. # *shared*
  37. #
  38. # (that is including the '*' and '*' !) then the following modules will
  39. # not be included in the config.c file, nor in the list of objects to be
  40. # added to the library archive, and their linker options won't be added 
  41. # to the linker options, but rules to create their .o files and their
  42. # shared libraries will still be added to the Makefile, and their
  43. # names will be collected in the Make variable SHAREDMODS.  This is
  44. # used to build modules as shared libraries.  (They must be installed
  45. # using "make sharedinstall".)  (For compatibility, *noconfig* has the
  46. # same effect as *shared*.)
  47.  
  48. # NOTE: As a standard policy, as many modules as can be supported by a
  49. # platform should be present.  The distribution comes with all modules
  50. # enabled that are supported by most platforms and don't require you
  51. # to ftp sources from elsewhere.
  52.  
  53.  
  54. # -------> Uncomment this line if you are running AIX    <----------
  55. # -------> and if you are building with shared libraries <----------
  56. #LINKCC= makexp_aix python.exp "" $(MYLIBS) $(ADDOBJS) ; $(CC)
  57.  
  58.  
  59. # Some special rules to define PYTHONPATH.
  60. # Edit the definitions below to indicate which options you are using.
  61. # Don't add any whitespace or comments!
  62.  
  63. # Directories where library files get installed.
  64. # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
  65. DESTLIB=$(LIBDEST)
  66. MACHDESTLIB=$(BINLIBDEST)
  67.  
  68. # Standard path -- don't edit.
  69. # No leading colon since this is the first entry
  70. DESTPATH=$(DESTLIB)
  71.  
  72. # Site specific path components -- should begin with : if non-empty
  73. #
  74. # In OpenStep, this should be hardwired 
  75. # [as LIBDIR will refer to somewhere within the framework..]
  76. #SITEPATH=:/usr/local/lib/site/python
  77. SITEPATH=:/usr/local/lib/site/python:$(LIBDIR)/site/python
  78.  
  79. # Standard path components for test modules
  80. TESTPATH=:$(DESTLIB)/test
  81.  
  82. # Path components for machine- or system-dependent modules and shared libraries
  83. MACHDEPPATH=:$(DESTLIB)/$(MACHDEP):$(MACHDESTLIB)/sharedmodules
  84.  
  85. COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
  86. PYTHONPATH=$(COREPYTHONPATH)
  87.  
  88.  
  89. # The modules listed here can't be built as shared libraries for
  90. # various reasons; therefore they are listed here instead of in the
  91. # normal order.
  92.  
  93. # Some modules that are normally always on:
  94.  
  95. posix posixmodule.c        # posix (UNIX) system calls
  96. signal signalmodule.c        # signal(2)
  97.  
  98. # The SGI specific GL module:
  99.  
  100. #gl glmodule.c -lgl -lX11    # Graphics Library -- SGI only
  101.  
  102. # Thread module -- use only if Python has thread support for your OS.
  103. # Note that you must have configured (and built!) Python with the
  104. # --with-thread option passed to the configure script for this to work:
  105.  
  106. thread threadmodule.c
  107.  
  108. # Uncommenting the following line tells makesetup that all following
  109. # modules are to be built as shared libraries (see above for more
  110. # detail):
  111.  
  112. #*shared*
  113.  
  114.  
  115. # Modules that should always be present (non UNIX dependent):
  116.  
  117. array arraymodule.c    # array objects
  118. cmath cmathmodule.c # -lm # complex math library functions
  119. math mathmodule.c # -lm # math library functions, e.g. sin()
  120. regex regexmodule.c regexpr.c    # Regular expressions, GNU Emacs style
  121. strop stropmodule.c    # fast string operations implemented in C
  122. struct structmodule.c    # binary structure packing/unpacking
  123. time timemodule.c # -lm # time operations and variables
  124. operator operator.c    # operator.add() and similar goodies
  125.  
  126.  
  127. # Modules with some UNIX dependencies -- on by default:
  128. # (If you have a really backward UNIX, select and socket may not be
  129. # supported...)
  130.  
  131. fcntl fcntlmodule.c    # fcntl(2) and ioctl(2)
  132. pwd pwdmodule.c        # pwd(3) 
  133. grp grpmodule.c        # grp(3)
  134. crypt cryptmodule.c # -lcrypt    # crypt(3); needs -lcrypt on some systems
  135. select selectmodule.c    # select(2); not on ancient System V
  136. socket socketmodule.c    # socket(2); not on ancient System V
  137. errno errnomodule.c    # posix (UNIX) errno values
  138.  
  139.  
  140. # Some more UNIX dependent modules -- off by default, since these
  141. # are not supported by all UNIX systems:
  142.  
  143. #dbm dbmmodule.c     # dbm(3) may require -lndbm or similar
  144. #nis nismodule.c     # Sun yellow pages -- not everywhere
  145. #termios termios.c    # Steen Lumholt's termios module
  146. #_xdr _xdrmodule.c # -lnsl # Helper for xdrlib.py
  147.  
  148.  
  149. # Multimedia modules -- on by default.
  150. # These represent audio samples or images as strings:
  151.  
  152. audioop audioop.c    # Operations on audio samples
  153. imageop imageop.c    # Operations on images
  154. rgbimg rgbimgmodule.c   # Read SGI RGB image files (but coded portably)
  155.  
  156.  
  157. # The stdwin module provides a simple, portable (between X11 and Mac)
  158. # windowing interface.  You need to ftp the STDWIN library, e.g. from
  159. # ftp://ftp.cwi.nl/pub/stdwin.  (If you get it elsewhere, be sure to
  160. # get version 1.0 or higher!)  The STDWIN variable must point to the
  161. # STDWIN toplevel directory.
  162.  
  163. # Uncomment and edit as needed:
  164. #STDWIN=/ufs/guido/src/stdwin
  165.  
  166. # Uncomment these lines:
  167. #STDWINPATH=:$(DESTLIB)/stdwin
  168. #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
  169. #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
  170. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
  171.  
  172. # Use this instead of the last two lines above for alphanumeric stdwin:
  173. #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
  174. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
  175.  
  176.  
  177. # The md5 module implements the RSA Data Security, Inc. MD5
  178. # Message-Digest Algorithm, described in RFC 1321.  The necessary files
  179. # md5c.c and md5.h are included here.
  180.  
  181. md5 md5module.c md5c.c
  182.  
  183.  
  184. # The mpz module interfaces to the GNU Multiple Precision library.
  185. # You need to ftp the GNU MP library.  
  186. # The GMP variable must point to the GMP source directory.
  187. # This was originally written and tested against GMP 1.2 and 1.3.2.
  188. # It has been modified by Rob Hooft to work with 2.0.2 as well, but I
  189. # haven't tested it recently.
  190.  
  191. # A compatible MP library unencombered by the GPL also exists.  It was
  192. # posted to comp.sources.misc in volume 40 and is widely available from
  193. # FTP archive sites. One URL for it is:
  194. # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
  195.  
  196. #GMP=/ufs/guido/src/gmp
  197. #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
  198.  
  199.  
  200. # SGI IRIX specific modules -- off by default.
  201.  
  202. # These module work on any SGI machine:
  203.  
  204. # *** gl must be enabled higher up in this file ***
  205. #fm fmmodule.c -lfm -lgl        # Font Manager
  206. #sgi sgimodule.c            # sgi.nap() and a few more
  207.  
  208. # This module requires the header file
  209. # /usr/people/4Dgifts/iristools/include/izoom.h:
  210.  
  211. #imgfile imgfile.c -limage -lgutil    # Image Processing Utilities
  212.  
  213.  
  214. # These modules require the Multimedia Development Option (I think):
  215.  
  216. #al almodule.c -laudio            # Audio Library
  217. #cd cdmodule.c -lcdaudio -lds -lmediad    # CD Audio Library
  218. #cl clmodule.c -lcl -lawareaudio    # Compression Library
  219. #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11    # Starter Video
  220.  
  221.  
  222. # The FORMS library, by Mark Overmars, implements user interface
  223. # components such as dialogs and buttons using SGI's GL and FM
  224. # libraries.  You must ftp the FORMS library separately from
  225. # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS.  It was tested with FORMS 2.2a.
  226. # The FORMS variable must point to the FORMS subdirectory of the forms
  227. # toplevel directory:
  228.  
  229. #FORMS=/ufs/guido/src/forms/FORMS
  230. #fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
  231.  
  232.  
  233. # SunOS specific modules -- off by default:
  234.  
  235. #sunaudiodev sunaudiodev.c
  236.  
  237.  
  238. # George Neville-Neil's timing module:
  239.  
  240. #timing timingmodule.c
  241.  
  242.  
  243. # The _tkinter module.
  244. #
  245. # See the section "The Tk interface" in ../README for more info.
  246. #
  247. # Enable the TKPATH line and choose the most applicable _tkinter line.
  248. # You may have to change /usr/local to wherever Tcl/Tk are installed.
  249. # Change the -l arguments to use Tcl 7.4 and Tk 4.0!
  250.  
  251. # *** ALWAYS enable this line:
  252. #TKPATH=:$(DESTLIB)/tkinter
  253.  
  254. # *** Enable *one* of the following lines:
  255. # For Solaris:
  256. #_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
  257. # For generic system (may have to add -I/-L options to find X11):
  258. #_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
  259.  
  260.  
  261. # Lance Ellinghaus's modules:
  262.  
  263. rotor rotormodule.c        # enigma-inspired encryption
  264. syslog syslogmodule.c        # syslog daemon interface
  265.  
  266.  
  267. # Lance's curses module.  This requires the System V version of
  268. # curses, sometimes known as ncurses (e.g. on Linux, link with
  269. # -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
  270. # -L/usr/5lib before -lcurses).
  271.  
  272. #curses cursesmodule.c -lcurses -ltermcap
  273.  
  274.  
  275.  
  276. # Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
  277.  
  278. #new newmodule.c
  279.  
  280.  
  281. # Generic (SunOS / SVR4) dynamic loading module.
  282. # This is not needed for dynamic loading of Python modules --
  283. # it is a highly experimental and dangerous device for calling
  284. # *arbitrary* C functions in *arbitrary* shared libraries:
  285.  
  286. #dl dlmodule.c
  287.  
  288.  
  289. # Anthony Baxter's gdbm module (derived from Jack's dbm module)
  290. # GNU dbm(3) will require -lgdbm:
  291.  
  292. gdbm gdbmmodule.c -I/usr/local/gnu/include
  293.  
  294. # Berkeley DB interface.
  295. #
  296. # This requires the Berkeley DB code, see
  297. # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
  298. #
  299. # Edit the variables DB and DBPORT to point to the db top directory
  300. # and the subdirectory of PORT where you built it.
  301.  
  302. #DB=/depot/sundry/src/berkeley-db/db.1.85
  303. #DBPORT=$(DB)/PORT/irix.5.3
  304. #bsddb bsddbmodule.o -I$(DBPORT)/include $(DBPORT)/libdb.a
  305.  
  306.  
  307.  
  308. # David Wayne Williams' soundex module
  309. #soundex soundex.c
  310.  
  311. # Helper module for various ascii-encoders
  312. binascii binascii.c
  313.  
  314. # Fred Drake's interface to the Python parser
  315. parser parsermodule.c
  316.  
  317.  
  318. # Example -- included for reference only:
  319. # xx xxmodule.c
  320.  
  321. ### there is a bug in the way python handles Setup files such that these
  322. ### really want to be here.
  323. # Lele Gaifax's interface NeXTSTEP Defaults System
  324. #nsdefaults nsdefaults.c
  325.  
  326. # Lele Gaifax's interface to GNU Readline: $PYRL_LIBS is computed by
  327. # the autoconfigure script.
  328. #
  329. # Do not add this if building the OpenStep Python.framework
  330. # pyrl pyrl.c $(PYRL_LIBS) -I/usr/local/gnu/include -L/usr/local/gnu/lib
  331.