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