Guido van Rossum | 4b35ef5 | 1994-01-03 01:26:03 +0000 | [diff] [blame] | 1 | # Each line in this file describes one or more optional modules. |
| 2 | # Comment out lines to suppress modules. |
| 3 | # Lines have the following structure: |
| 4 | # |
| 5 | # <module> ... [<objectfile> ...] [<cpparg> ...] [<library> ...] |
| 6 | # |
| 7 | # <objectfile> is anything ending in .o |
| 8 | # <cpparg> is anything starting with -I, -D, -U or -C |
| 9 | # <library> is anything ending in .a or beginning with -l or -L |
| 10 | # <module> is anything else but should be a valid Python |
| 11 | # identifier (letters, digits, underscores, beginning with non-digit) |
| 12 | # |
| 13 | # Lines can also have the form |
| 14 | # |
| 15 | # <name> = <value> |
| 16 | # |
| 17 | # which defines a Make variable definition inserted into Makefile.in |
| 18 | # |
| 19 | # NOTE: As a standard policy, as many modules as can be supported by a |
| 20 | # platform should be present. The distribution comes with all modules |
| 21 | # enabled that are supported by most platforms and don't require you |
| 22 | # to ftp sources from elsewhere. To make this easier for SGI |
| 23 | # platforms, you can copy Setup.sgi to Setup (or edit Makefile.in.in |
| 24 | # to use Setup.sgi instead of Setup). |
| 25 | |
| 26 | |
| 27 | # Some special rules to define PYTHONPATH |
| 28 | # Edit the definitions below to indicate which options you are using |
| 29 | |
Guido van Rossum | 42f69da | 1994-01-13 16:01:38 +0000 | [diff] [blame] | 30 | # Don't edit this (usually) |
Guido van Rossum | 6eb1d4a | 1994-01-11 11:31:44 +0000 | [diff] [blame] | 31 | DESTLIB=$(prefix)/lib/python |
Guido van Rossum | 42f69da | 1994-01-13 16:01:38 +0000 | [diff] [blame] | 32 | |
| 33 | # Standard enabled (tests are always available) |
Guido van Rossum | 7590193 | 1994-01-13 16:03:27 +0000 | [diff] [blame] | 34 | TESTPATH=:$(DESTLIB)/test |
Guido van Rossum | 42f69da | 1994-01-13 16:01:38 +0000 | [diff] [blame] | 35 | |
| 36 | # Enable this for SGI systems |
Guido van Rossum | 6eb1d4a | 1994-01-11 11:31:44 +0000 | [diff] [blame] | 37 | ARCHPATH=:$(DESTLIB)/sgi |
Guido van Rossum | 42f69da | 1994-01-13 16:01:38 +0000 | [diff] [blame] | 38 | |
| 39 | # Enable this for Sun systems |
Guido van Rossum | 6eb1d4a | 1994-01-11 11:31:44 +0000 | [diff] [blame] | 40 | #ARCHPATH=:$(DESTLIB)/sun4 |
Guido van Rossum | 42f69da | 1994-01-13 16:01:38 +0000 | [diff] [blame] | 41 | |
| 42 | # Enable this if stdwin installed |
Guido van Rossum | 6eb1d4a | 1994-01-11 11:31:44 +0000 | [diff] [blame] | 43 | STDWINPATH=:$(DESTLIB)/stdwin |
Guido van Rossum | 4b35ef5 | 1994-01-03 01:26:03 +0000 | [diff] [blame] | 44 | |
Guido van Rossum | 42f69da | 1994-01-13 16:01:38 +0000 | [diff] [blame] | 45 | PYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(ARCHPATH)$(STDWINPATH) |
Guido van Rossum | 4b35ef5 | 1994-01-03 01:26:03 +0000 | [diff] [blame] | 46 | |
| 47 | |
| 48 | # Modules that should always be present (non UNIX dependent) |
| 49 | |
| 50 | array arraymodule.o # array objects |
| 51 | math mathmodule.o # math library functions, e.g. sin() |
| 52 | parser parsermodule.o # raw interface to the Python parser |
| 53 | posix posixmodule.o # posix (UNIX) system calls |
| 54 | regex regexmodule.o regexpr.o # Regular expressions, GNU Emacs style |
| 55 | strop stropmodule.o # fast string operations implemented in C |
| 56 | struct structmodule.o # binary structure packing/unpacking |
| 57 | time timemodule.o # time operations and variables |
| 58 | |
| 59 | |
| 60 | # Modules with some UNIX dependencies -- on by default. |
| 61 | # Note that some UNIX versions still don't support all of these |
| 62 | # so you may have to comment them out before the build completes. |
| 63 | |
| 64 | dbm dbmmodule.o # dbm(3) may require -ldbm or similar |
| 65 | fcntl fcntlmodule.o # fcntl(2) and ioctl(2) |
| 66 | nis nismodule.o # Sun yellow pages -- not everywhere |
| 67 | pwd grp pwdmodule.o # pwd(3) and grp(3) |
| 68 | select selectmodule.o # select(2); not on ancient System V |
| 69 | socket socketmodule.o # socket(2); not on ancient System V |
| 70 | |
| 71 | |
Guido van Rossum | 7dd31d0 | 1994-01-04 22:08:35 +0000 | [diff] [blame] | 72 | # Multimedia modules -- on by default |
Guido van Rossum | 4b35ef5 | 1994-01-03 01:26:03 +0000 | [diff] [blame] | 73 | # These represent audio samples or images as strings |
| 74 | |
| 75 | audioop audioopmodule.o # Operations on audio samples |
| 76 | imageop imageopmodule.o # Operations on images |
| 77 | rgbimg rgbimgmodule.o # Read SGI RGB image files (but coded portably) |
| 78 | |
| 79 | |
| 80 | # The stdwin module provides a simple, portable (between X11 and Mac) |
| 81 | # windowing interface. You need to ftp the STDWIN library, e.g. from |
| 82 | # ftp://ftp.cwi.nl/pub/stdwin. The STDWIN variable must point to the |
| 83 | # STDWIN toplevel directory. The ARCH variable must be set to the |
| 84 | # architecture identifier used to build STDWIN. NB if you combine this |
| 85 | # with the gl module on an SGI machine, you should replace "-lX11" with |
| 86 | # "-lX11_s". |
| 87 | |
| 88 | STDWIN=/ufs/guido/src/stdwin |
| 89 | ARCH=sgi |
| 90 | stdwin stdwinmodule.o -I$(STDWIN)/H $(STDWIN)/Build/$(ARCH)/x11/lib/lib.a -lX11_s |
| 91 | |
| 92 | |
| 93 | # The md5 module implements the RSA Data Security, Inc. MD5 |
| 94 | # Message-Digest Algorithm, described in RFC 1321. The necessary files |
| 95 | # md5c.c and md5.h are included here. |
| 96 | |
| 97 | md5 md5module.o md5c.o |
| 98 | |
| 99 | |
| 100 | # The mpz module interfaces to the GNU Multiple Precision library. |
| 101 | # You need to ftp the GNU MP library. This was last tested with a |
| 102 | # somewhat modified (to get around bugs) version of GMP 1.2; it will |
| 103 | # likely need some work for more recent versions. The GMP variable |
| 104 | # must point to the GMP source directory. |
| 105 | |
| 106 | GMP=/ufs/guido/src/gmp |
| 107 | mpz mpzmodule.o -I$(GMP) $(GMP)/libgmp.a |
| 108 | |
| 109 | |
| 110 | # The rotor module (contributed by Lance Ellinghouse) implements a |
| 111 | # rotor-based encryption algorithm. It is self-contained. |
| 112 | |
| 113 | rotor rotormodule.o |
| 114 | |
| 115 | |
| 116 | # SGI IRIX specific modules -- off by default. |
| 117 | # Switch this on if you have an SGI machine. |
| 118 | # Note that some required libraries and header files aren't always |
| 119 | # installed; you may be better off switching on only 'fm' and 'gl' |
| 120 | # (Font Manager and Graphics Library). |
| 121 | |
| 122 | al almodule.o -laudio # audio |
| 123 | cd cdmodule.o -lcdaudio -lds # |
| 124 | cl clmodule.o -lcl |
| 125 | fm fmmodule.o -lfm_s -lgl_s |
| 126 | gl glmodule.o -lgl_s |
| 127 | imgfile imgfilemodule.o -limage -lgutil -lm |
| 128 | sgi sgimodule.o |
| 129 | sv svmodule.o yuvconvert.o -lsvideo -lXext -lX11_s |
| 130 | |
| 131 | # The FORMS library, by Mark Overmars, implements user interface |
| 132 | # components such as dialogs and buttons using SGI's GL and FM |
| 133 | # libraries. You must ftp the FORMS library separately from |
| 134 | # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a. |
| 135 | # The FORMS variable must point to the FORMS subdirectory of the forms |
| 136 | # toplevel directory. |
| 137 | |
| 138 | FORMS=/ufs/guido/src/forms/FORMS |
| 139 | fl flmodule.o -I$(FORMS) $(FORMS)/libforms.a |
| 140 | |
| 141 | |
| 142 | # SunOS specific modules -- off by default |
| 143 | |
| 144 | # sunaudiodev sunaudiodevmodule.o |
| 145 | |
| 146 | |
| 147 | # Thread module -- works on SGI IRIX and on SunOS 5.x (SOLARIS) only. |
| 148 | # Note that you must have configured (and built!) Python with the |
| 149 | # --with-thread option passed to the configure script for this to work. |
| 150 | |
| 151 | thread threadmodule.o |
| 152 | |
| 153 | |
| 154 | # GNN's timing module |
| 155 | timing timingmodule.o |
| 156 | |
| 157 | |
| 158 | # Example -- included for reference only |
| 159 | |
| 160 | # xx xxmodule.o |