Barry Warsaw | c7736b9 | 1997-09-04 13:05:14 +0000 | [diff] [blame] | 1 | # -*- makefile -*- |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 2 | # The file Setup is used by the makesetup script to construct the files |
| 3 | # Makefile and config.c, from Makefile.pre and config.c.in, |
| 4 | # respectively. The file Setup itself is initially copied from |
| 5 | # Setup.in; once it exists it will not be overwritten, so you can edit |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 6 | # Setup to your heart's content. Note that Makefile.pre is created |
| 7 | # from Makefile.pre.in by the toplevel configure script. |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 8 | |
| 9 | # (VPATH notes: Setup and Makefile.pre are in the build directory, as |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 10 | # are Makefile and config.c; the *.in files are in the source |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 11 | # directory.) |
| 12 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 13 | # Each line in this file describes one or more optional modules. |
| 14 | # Comment out lines to suppress modules. |
| 15 | # Lines have the following structure: |
| 16 | # |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 17 | # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...] |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 18 | # |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 19 | # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files) |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 20 | # <cpparg> is anything starting with -I, -D, -U or -C |
| 21 | # <library> is anything ending in .a or beginning with -l or -L |
| 22 | # <module> is anything else but should be a valid Python |
| 23 | # identifier (letters, digits, underscores, beginning with non-digit) |
| 24 | # |
Guido van Rossum | 613b943 | 1996-08-20 19:50:17 +0000 | [diff] [blame] | 25 | # (As the makesetup script changes, it may recognize some other |
| 26 | # arguments as well, e.g. *.so and *.sl as libraries. See the big |
| 27 | # case statement in the makesetup script.) |
| 28 | # |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 29 | # Lines can also have the form |
| 30 | # |
| 31 | # <name> = <value> |
| 32 | # |
| 33 | # which defines a Make variable definition inserted into Makefile.in |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame] | 34 | # |
Guido van Rossum | 30e817e | 1997-12-02 16:46:39 +0000 | [diff] [blame^] | 35 | # Finally, if a line contains just the word "*shared*" (without the |
| 36 | # quotes but with the stars), then the following modules will not be |
| 37 | # included in the config.c file, nor in the list of objects to be |
| 38 | # added to the library archive, and their linker options won't be |
| 39 | # added to the linker options, but rules to create their .o files and |
| 40 | # their shared libraries will still be added to the Makefile, and |
| 41 | # their names will be collected in the Make variable SHAREDMODS. This |
| 42 | # is used to build modules as shared libraries. (They must be |
| 43 | # installed using "make sharedinstall".) (For compatibility, |
| 44 | # *noconfig* has the same effect as *shared*.) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 45 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 46 | # NOTE: As a standard policy, as many modules as can be supported by a |
| 47 | # platform should be present. The distribution comes with all modules |
| 48 | # enabled that are supported by most platforms and don't require you |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 49 | # to ftp sources from elsewhere. |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 50 | |
| 51 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 52 | # Some special rules to define PYTHONPATH. |
| 53 | # Edit the definitions below to indicate which options you are using. |
| 54 | # Don't add any whitespace or comments! |
| 55 | |
Guido van Rossum | 0c5e3c8 | 1996-07-31 17:49:01 +0000 | [diff] [blame] | 56 | # Directories where library files get installed. |
| 57 | # DESTLIB is for Python modules; MACHDESTLIB for shared libraries. |
| 58 | DESTLIB=$(LIBDEST) |
| 59 | MACHDESTLIB=$(BINLIBDEST) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 60 | |
Guido van Rossum | 9722781 | 1997-04-11 17:19:54 +0000 | [diff] [blame] | 61 | # NOTE: all the paths are now relative to the prefix that is computed |
| 62 | # at run time! |
| 63 | |
Guido van Rossum | 0c5e3c8 | 1996-07-31 17:49:01 +0000 | [diff] [blame] | 64 | # Standard path -- don't edit. |
Guido van Rossum | 9722781 | 1997-04-11 17:19:54 +0000 | [diff] [blame] | 65 | # No leading colon since this is the first entry. |
| 66 | # Empty since this is now just the runtime prefix. |
| 67 | DESTPATH= |
Guido van Rossum | 1c20648 | 1995-09-13 18:39:04 +0000 | [diff] [blame] | 68 | |
Guido van Rossum | 0c5e3c8 | 1996-07-31 17:49:01 +0000 | [diff] [blame] | 69 | # Site specific path components -- should begin with : if non-empty |
| 70 | SITEPATH= |
| 71 | |
| 72 | # Standard path components for test modules |
Guido van Rossum | 9722781 | 1997-04-11 17:19:54 +0000 | [diff] [blame] | 73 | TESTPATH=:test |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 74 | |
Guido van Rossum | d3c1bd3 | 1996-07-30 16:54:03 +0000 | [diff] [blame] | 75 | # Path components for machine- or system-dependent modules and shared libraries |
Guido van Rossum | a9f02b8 | 1997-09-28 05:45:40 +0000 | [diff] [blame] | 76 | MACHDEPPATH=:plat-$(MACHDEP) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 77 | |
Guido van Rossum | 02ca3ab | 1996-07-30 20:36:59 +0000 | [diff] [blame] | 78 | COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH) |
Guido van Rossum | f5e0ea8 | 1994-09-12 15:35:36 +0000 | [diff] [blame] | 79 | PYTHONPATH=$(COREPYTHONPATH) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 80 | |
| 81 | |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 82 | # The modules listed here can't be built as shared libraries for |
| 83 | # various reasons; therefore they are listed here instead of in the |
| 84 | # normal order. |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 85 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 86 | # Some modules that are normally always on: |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 87 | |
Guido van Rossum | 007c80e | 1997-07-11 18:40:46 +0000 | [diff] [blame] | 88 | regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style |
Guido van Rossum | 176bb41 | 1997-10-07 16:17:55 +0000 | [diff] [blame] | 89 | reop reopmodule.c # Additional RE support (for re1.py) |
| 90 | pcre pcremodule.c pypcre.c # Regular expressions, Perl style (for re.py) |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 91 | posix posixmodule.c # posix (UNIX) system calls |
| 92 | signal signalmodule.c # signal(2) |
| 93 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 94 | # The SGI specific GL module: |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 95 | |
Guido van Rossum | 8105821 | 1997-04-29 16:07:45 +0000 | [diff] [blame] | 96 | #gl glmodule.c cgensupport.c -I$(srcdir) -lgl -lX11 |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 97 | |
Guido van Rossum | d3c1bd3 | 1996-07-30 16:54:03 +0000 | [diff] [blame] | 98 | # Thread module -- use only if Python has thread support for your OS. |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 99 | # Note that you must have configured (and built!) Python with the |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 100 | # --with-thread option passed to the configure script for this to work: |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 101 | |
| 102 | #thread threadmodule.c |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 103 | |
Barry Warsaw | e886ea9 | 1997-01-17 00:01:33 +0000 | [diff] [blame] | 104 | # Pure module. Cannot be linked dynamically. |
| 105 | # -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE |
| 106 | #WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE |
| 107 | #PURE_INCLS=-I/usr/local/include |
| 108 | #PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs |
| 109 | #pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS) |
| 110 | |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 111 | # Uncommenting the following line tells makesetup that all following |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 112 | # modules are to be built as shared libraries (see above for more |
| 113 | # detail): |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 114 | |
Guido van Rossum | 613b943 | 1996-08-20 19:50:17 +0000 | [diff] [blame] | 115 | #*shared* |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 116 | |
Guido van Rossum | 0969d36 | 1997-08-05 21:27:50 +0000 | [diff] [blame] | 117 | # GNU readline. Unlike previous Python incarnations, GNU readline is |
| 118 | # now incorporated in an optional module, configured in the Setup file |
| 119 | # instead of by a configure script switch. You may have to insert a |
| 120 | # -L option pointing to the directory where libreadline.* lives, |
| 121 | # and you may have to change -ltermcap to -ltermlib or perhaps remove |
| 122 | # it, depending on your system -- see the GNU readline instructions. |
| 123 | # It's okay for this to be a shared library, too. |
| 124 | |
| 125 | #readline readline.c -lreadline -ltermcap |
| 126 | |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 127 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 128 | # Modules that should always be present (non UNIX dependent): |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 129 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 130 | array arraymodule.c # array objects |
Guido van Rossum | 613b943 | 1996-08-20 19:50:17 +0000 | [diff] [blame] | 131 | cmath cmathmodule.c # -lm # complex math library functions |
| 132 | math mathmodule.c # -lm # math library functions, e.g. sin() |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 133 | strop stropmodule.c # fast string operations implemented in C |
| 134 | struct structmodule.c # binary structure packing/unpacking |
Guido van Rossum | 613b943 | 1996-08-20 19:50:17 +0000 | [diff] [blame] | 135 | time timemodule.c # -lm # time operations and variables |
Guido van Rossum | d3c1bd3 | 1996-07-30 16:54:03 +0000 | [diff] [blame] | 136 | operator operator.c # operator.add() and similar goodies |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 137 | |
Guido van Rossum | 3df69bc | 1997-11-19 18:57:48 +0000 | [diff] [blame] | 138 | #_locale _localemodule.c # access to ISO C locale support |
| 139 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 140 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 141 | # Modules with some UNIX dependencies -- on by default: |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 142 | # (If you have a really backward UNIX, select and socket may not be |
| 143 | # supported...) |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 144 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 145 | fcntl fcntlmodule.c # fcntl(2) and ioctl(2) |
| 146 | pwd pwdmodule.c # pwd(3) |
| 147 | grp grpmodule.c # grp(3) |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 148 | select selectmodule.c # select(2); not on ancient System V |
| 149 | socket socketmodule.c # socket(2); not on ancient System V |
Guido van Rossum | d3c1bd3 | 1996-07-30 16:54:03 +0000 | [diff] [blame] | 150 | errno errnomodule.c # posix (UNIX) errno values |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 151 | |
Guido van Rossum | f58575e | 1997-12-02 03:23:01 +0000 | [diff] [blame] | 152 | # The crypt module is now disabled by default because it breaks builds |
| 153 | # on many systems (where -lcrypt is needed), e.g. Linux (I believe). |
| 154 | #crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems |
| 155 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 156 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 157 | # Some more UNIX dependent modules -- off by default, since these |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 158 | # are not supported by all UNIX systems: |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 159 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 160 | #dbm dbmmodule.c # dbm(3) may require -lndbm or similar |
| 161 | #nis nismodule.c # Sun yellow pages -- not everywhere |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame] | 162 | #termios termios.c # Steen Lumholt's termios module |
Guido van Rossum | 2e63139 | 1996-12-18 18:37:27 +0000 | [diff] [blame] | 163 | #resource resource.c # Jeremy Hylton's rlimit interface |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 164 | |
| 165 | |
Guido van Rossum | 3f0bff6 | 1997-09-03 00:44:14 +0000 | [diff] [blame] | 166 | # Multimedia modules -- off by default. |
Guido van Rossum | 8700fe6 | 1997-11-22 17:35:19 +0000 | [diff] [blame] | 167 | # These don't work for 64-bit platforms!!! |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 168 | # These represent audio samples or images as strings: |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 169 | |
Guido van Rossum | 3f0bff6 | 1997-09-03 00:44:14 +0000 | [diff] [blame] | 170 | #audioop audioop.c # Operations on audio samples |
| 171 | #imageop imageop.c # Operations on images |
| 172 | #rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably) |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 173 | |
| 174 | |
| 175 | # The stdwin module provides a simple, portable (between X11 and Mac) |
| 176 | # windowing interface. You need to ftp the STDWIN library, e.g. from |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 177 | # ftp://ftp.cwi.nl/pub/stdwin. (If you get it elsewhere, be sure to |
| 178 | # get version 1.0 or higher!) The STDWIN variable must point to the |
| 179 | # STDWIN toplevel directory. |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 180 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 181 | # Uncomment and edit as needed: |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame] | 182 | #STDWIN=/ufs/guido/src/stdwin |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 183 | |
| 184 | # Uncomment these lines: |
Guido van Rossum | ab61c6b | 1997-09-08 01:54:43 +0000 | [diff] [blame] | 185 | #STDWINPATH=:lib-stdwin |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame] | 186 | #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a |
| 187 | #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame] | 188 | #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11 |
| 189 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 190 | # Use this instead of the last two lines above for alphanumeric stdwin: |
| 191 | #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame] | 192 | #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap |
| 193 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 194 | |
| 195 | # The md5 module implements the RSA Data Security, Inc. MD5 |
| 196 | # Message-Digest Algorithm, described in RFC 1321. The necessary files |
| 197 | # md5c.c and md5.h are included here. |
| 198 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 199 | md5 md5module.c md5c.c |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 200 | |
| 201 | |
| 202 | # The mpz module interfaces to the GNU Multiple Precision library. |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 203 | # You need to ftp the GNU MP library. |
| 204 | # The GMP variable must point to the GMP source directory. |
Guido van Rossum | 272841c | 1996-08-19 23:06:45 +0000 | [diff] [blame] | 205 | # This was originally written and tested against GMP 1.2 and 1.3.2. |
| 206 | # It has been modified by Rob Hooft to work with 2.0.2 as well, but I |
| 207 | # haven't tested it recently. |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 208 | |
Guido van Rossum | c370607 | 1994-10-06 16:12:06 +0000 | [diff] [blame] | 209 | # A compatible MP library unencombered by the GPL also exists. It was |
| 210 | # posted to comp.sources.misc in volume 40 and is widely available from |
| 211 | # FTP archive sites. One URL for it is: |
| 212 | # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z |
| 213 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 214 | #GMP=/ufs/guido/src/gmp |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 215 | #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 216 | |
| 217 | |
| 218 | # SGI IRIX specific modules -- off by default. |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 219 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 220 | # These module work on any SGI machine: |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 221 | |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 222 | # *** gl must be enabled higher up in this file *** |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 223 | #fm fmmodule.c -lfm -lgl # Font Manager |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 224 | #sgi sgimodule.c # sgi.nap() and a few more |
| 225 | |
| 226 | # This module requires the header file |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 227 | # /usr/people/4Dgifts/iristools/include/izoom.h: |
Guido van Rossum | d3d6f8f | 1997-05-05 20:48:00 +0000 | [diff] [blame] | 228 | #imgfile imgfile.c -limage -lgutil -lgl -lm # Image Processing Utilities |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 229 | |
| 230 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 231 | # These modules require the Multimedia Development Option (I think): |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 232 | |
| 233 | #al almodule.c -laudio # Audio Library |
| 234 | #cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library |
| 235 | #cl clmodule.c -lcl -lawareaudio # Compression Library |
| 236 | #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video |
| 237 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 238 | |
| 239 | # The FORMS library, by Mark Overmars, implements user interface |
| 240 | # components such as dialogs and buttons using SGI's GL and FM |
| 241 | # libraries. You must ftp the FORMS library separately from |
| 242 | # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a. |
| 243 | # The FORMS variable must point to the FORMS subdirectory of the forms |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 244 | # toplevel directory: |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 245 | |
| 246 | #FORMS=/ufs/guido/src/forms/FORMS |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 247 | #fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 248 | |
| 249 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 250 | # SunOS specific modules -- off by default: |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 251 | |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 252 | #sunaudiodev sunaudiodev.c |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 253 | |
| 254 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 255 | # George Neville-Neil's timing module: |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 256 | |
| 257 | #timing timingmodule.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 258 | |
| 259 | |
Guido van Rossum | 82df03e | 1996-08-08 19:08:47 +0000 | [diff] [blame] | 260 | # The _tkinter module. |
Guido van Rossum | d4837da | 1995-02-14 09:43:25 +0000 | [diff] [blame] | 261 | # |
Guido van Rossum | 8700fe6 | 1997-11-22 17:35:19 +0000 | [diff] [blame] | 262 | # The TKPATH variable is always enabled, to save you the effort. |
| 263 | TKPATH=:lib-tk |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 264 | |
Guido van Rossum | 8700fe6 | 1997-11-22 17:35:19 +0000 | [diff] [blame] | 265 | # The command for _tkinter is long and site specific. Please |
| 266 | # uncomment and/or edit those parts as indicated. If you don't have a |
| 267 | # specific extension (e.g. Tix or BLT), leave the corresponding line |
| 268 | # commented out. (Leave the trailing backslashes in! If you |
| 269 | # experience strange errors, you may want to join all uncommented |
| 270 | # lines and remove the backslashes -- the backslash interpretation is |
| 271 | # done by the shell's "read" command and it may not be implemented on |
| 272 | # every system. |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 273 | |
Guido van Rossum | 8700fe6 | 1997-11-22 17:35:19 +0000 | [diff] [blame] | 274 | # *** Always uncomment this (leave the leading underscore in!): |
| 275 | # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \ |
Guido van Rossum | f58575e | 1997-12-02 03:23:01 +0000 | [diff] [blame] | 276 | # *** Uncomment and edit to reflect where your X11 header files are: |
Guido van Rossum | 8700fe6 | 1997-11-22 17:35:19 +0000 | [diff] [blame] | 277 | # -I/usr/X11R6/include \ |
| 278 | # *** Or uncomment this for Solaris: |
| 279 | # -I/usr/openwin/include \ |
| 280 | # *** Uncomment and edit to reflect where your Tcl/Tk headers are: |
| 281 | # -I/usr/local/include \ |
| 282 | # *** Uncomment and edit for Tix extension only: |
| 283 | # -DWITH_TIX -ltix4.1.8.0 \ |
| 284 | # *** Uncomment and edit for BLT extension only: |
| 285 | # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \ |
| 286 | # *** Uncomment and edit for PIL (TkImaging) extension only: |
| 287 | # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \ |
Guido van Rossum | 8700fe6 | 1997-11-22 17:35:19 +0000 | [diff] [blame] | 288 | # *** Uncomment and edit for TOGL extension only: |
| 289 | # -DWITH_TOGL togl.c \ |
| 290 | # *** Uncomment and edit to reflect where your Tcl/Tk libraries are: |
| 291 | # -L/usr/local/lib \ |
| 292 | # *** Uncomment and edit to reflect your Tcl/Tk versions: |
| 293 | # -ltk8.0 -ltcl8.0 \ |
| 294 | # *** Uncomment and edit to reflect where your X11 libraries are: |
| 295 | # -L/usr/X11R6/lib \ |
| 296 | # *** Or uncomment this for Solaris: |
| 297 | # -L/usr/openwin/lib \ |
Guido van Rossum | f58575e | 1997-12-02 03:23:01 +0000 | [diff] [blame] | 298 | # *** Uncomment these for TOGL extension only: |
| 299 | # -lGL -lGLU -lXext -lXmu \ |
Guido van Rossum | 8700fe6 | 1997-11-22 17:35:19 +0000 | [diff] [blame] | 300 | # *** Always uncomment this; X11 libraries to link with: |
Guido van Rossum | f58575e | 1997-12-02 03:23:01 +0000 | [diff] [blame] | 301 | # -lX11 |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 302 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 303 | # Lance Ellinghaus's modules: |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 304 | |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 305 | rotor rotormodule.c # enigma-inspired encryption |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 306 | #syslog syslogmodule.c # syslog daemon interface |
Guido van Rossum | f8afdcf | 1995-07-26 17:31:41 +0000 | [diff] [blame] | 307 | |
| 308 | |
| 309 | # Lance's curses module. This requires the System V version of |
| 310 | # curses, sometimes known as ncurses (e.g. on Linux, link with |
Guido van Rossum | 37ba0bc | 1995-08-04 04:20:45 +0000 | [diff] [blame] | 311 | # -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include |
| 312 | # -L/usr/5lib before -lcurses). |
Guido van Rossum | f8afdcf | 1995-07-26 17:31:41 +0000 | [diff] [blame] | 313 | |
| 314 | #curses cursesmodule.c -lcurses -ltermcap |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 315 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 316 | |
| 317 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 318 | # Tommy Burnette's 'new' module (creates new empty objects of certain kinds): |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 319 | |
| 320 | #new newmodule.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 321 | |
| 322 | |
Guido van Rossum | a3c04b0 | 1995-01-12 11:29:01 +0000 | [diff] [blame] | 323 | # Generic (SunOS / SVR4) dynamic loading module. |
| 324 | # This is not needed for dynamic loading of Python modules -- |
| 325 | # it is a highly experimental and dangerous device for calling |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 326 | # *arbitrary* C functions in *arbitrary* shared libraries: |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 327 | |
| 328 | #dl dlmodule.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 329 | |
| 330 | |
Guido van Rossum | 4b4c664 | 1994-08-08 08:06:37 +0000 | [diff] [blame] | 331 | # Anthony Baxter's gdbm module (derived from Jack's dbm module) |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 332 | # GNU dbm(3) will require -lgdbm: |
Guido van Rossum | be9f149 | 1994-09-21 12:31:05 +0000 | [diff] [blame] | 333 | |
| 334 | #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 335 | |
Guido van Rossum | 4b4c664 | 1994-08-08 08:06:37 +0000 | [diff] [blame] | 336 | |
Guido van Rossum | d639b45 | 1995-08-28 02:59:06 +0000 | [diff] [blame] | 337 | # Berkeley DB interface. |
Guido van Rossum | ae75f49 | 1995-07-18 18:18:11 +0000 | [diff] [blame] | 338 | # |
| 339 | # This requires the Berkeley DB code, see |
| 340 | # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz |
| 341 | # |
| 342 | # Edit the variables DB and DBPORT to point to the db top directory |
| 343 | # and the subdirectory of PORT where you built it. |
Guido van Rossum | 7f400be | 1997-08-05 02:25:24 +0000 | [diff] [blame] | 344 | # |
| 345 | # (See http://www.jenkon-dev.com/~rd/python/ for an interface to |
| 346 | # BSD DB 2.1.0.) |
Guido van Rossum | ae75f49 | 1995-07-18 18:18:11 +0000 | [diff] [blame] | 347 | |
Guido van Rossum | 9687a921 | 1996-07-24 00:42:42 +0000 | [diff] [blame] | 348 | #DB=/depot/sundry/src/berkeley-db/db.1.85 |
| 349 | #DBPORT=$(DB)/PORT/irix.5.3 |
Guido van Rossum | 007c80e | 1997-07-11 18:40:46 +0000 | [diff] [blame] | 350 | #bsddb bsddbmodule.c -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a |
Guido van Rossum | ae75f49 | 1995-07-18 18:18:11 +0000 | [diff] [blame] | 351 | |
| 352 | |
| 353 | |
Guido van Rossum | 31affb2 | 1995-06-14 22:31:38 +0000 | [diff] [blame] | 354 | # David Wayne Williams' soundex module |
| 355 | #soundex soundex.c |
| 356 | |
Jack Jansen | 7278119 | 1995-08-07 14:34:15 +0000 | [diff] [blame] | 357 | # Helper module for various ascii-encoders |
Guido van Rossum | b50667d | 1995-10-12 00:41:40 +0000 | [diff] [blame] | 358 | binascii binascii.c |
| 359 | |
Guido van Rossum | f00eb71 | 1996-08-21 22:11:54 +0000 | [diff] [blame] | 360 | # Fred Drake's interface to the Python parser |
| 361 | parser parsermodule.c |
Jack Jansen | 7278119 | 1995-08-07 14:34:15 +0000 | [diff] [blame] | 362 | |
Guido van Rossum | ee88ff9 | 1997-01-11 19:29:30 +0000 | [diff] [blame] | 363 | # Digital Creations' cStringIO and cPickle |
| 364 | cStringIO cStringIO.c |
| 365 | cPickle cPickle.c |
Guido van Rossum | 31affb2 | 1995-06-14 22:31:38 +0000 | [diff] [blame] | 366 | |
Guido van Rossum | 53bb550 | 1997-03-04 23:36:04 +0000 | [diff] [blame] | 367 | |
Guido van Rossum | 10efb05 | 1997-02-14 23:03:31 +0000 | [diff] [blame] | 368 | # Lee Busby's SIGFPE modules. |
| 369 | # The library to link fpectl with is platform specific. |
Guido van Rossum | 53bb550 | 1997-03-04 23:36:04 +0000 | [diff] [blame] | 370 | # Choose *one* of the options below for fpectl: |
Guido van Rossum | 10efb05 | 1997-02-14 23:03:31 +0000 | [diff] [blame] | 371 | |
Guido van Rossum | 53bb550 | 1997-03-04 23:36:04 +0000 | [diff] [blame] | 372 | # For SGI IRIX (tested on 5.3): |
| 373 | #fpectl fpectlmodule.c -lfpe |
| 374 | |
Guido van Rossum | 159b77f | 1997-03-04 23:44:15 +0000 | [diff] [blame] | 375 | # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2): |
| 376 | # (Without the compiler you don't have -lsunmath.) |
Guido van Rossum | 53bb550 | 1997-03-04 23:36:04 +0000 | [diff] [blame] | 377 | #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm |
| 378 | |
| 379 | # For other systems: see instructions in fpectlmodule.c. |
| 380 | #fpectl fpectlmodule.c ... |
| 381 | |
| 382 | # Test module for fpectl. No extra libraries needed. |
Guido van Rossum | 10efb05 | 1997-02-14 23:03:31 +0000 | [diff] [blame] | 383 | #fpetest fpetestmodule.c |
| 384 | |
Guido van Rossum | 7fa3b75 | 1997-04-29 15:41:26 +0000 | [diff] [blame] | 385 | # Andrew Kuchling's zlib module. |
Guido van Rossum | d3d6f8f | 1997-05-05 20:48:00 +0000 | [diff] [blame] | 386 | # This require zlib 1.0.4 (or later). See http://quest.jpl.nasa.gov/zlib/ |
| 387 | #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz |
Guido van Rossum | 7fa3b75 | 1997-04-29 15:41:26 +0000 | [diff] [blame] | 388 | |
Guido van Rossum | 53bb550 | 1997-03-04 23:36:04 +0000 | [diff] [blame] | 389 | |
Guido van Rossum | f4449de | 1995-04-10 11:37:18 +0000 | [diff] [blame] | 390 | # Example -- included for reference only: |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 391 | # xx xxmodule.c |