blob: 36cdce3a87439a47a080d3028e66e240b8c6bf8a [file] [log] [blame]
Guido van Rossum4b35ef51994-01-03 01:26:03 +00001# 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 Rossum42f69da1994-01-13 16:01:38 +000030# Don't edit this (usually)
Guido van Rossum6eb1d4a1994-01-11 11:31:44 +000031DESTLIB=$(prefix)/lib/python
Guido van Rossum42f69da1994-01-13 16:01:38 +000032
33# Standard enabled (tests are always available)
Guido van Rossum75901931994-01-13 16:03:27 +000034TESTPATH=:$(DESTLIB)/test
Guido van Rossum42f69da1994-01-13 16:01:38 +000035
36# Enable this for SGI systems
Guido van Rossum6eb1d4a1994-01-11 11:31:44 +000037ARCHPATH=:$(DESTLIB)/sgi
Guido van Rossum42f69da1994-01-13 16:01:38 +000038
39# Enable this for Sun systems
Guido van Rossum6eb1d4a1994-01-11 11:31:44 +000040#ARCHPATH=:$(DESTLIB)/sun4
Guido van Rossum42f69da1994-01-13 16:01:38 +000041
42# Enable this if stdwin installed
Guido van Rossum6eb1d4a1994-01-11 11:31:44 +000043STDWINPATH=:$(DESTLIB)/stdwin
Guido van Rossum4b35ef51994-01-03 01:26:03 +000044
Guido van Rossum42f69da1994-01-13 16:01:38 +000045PYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(ARCHPATH)$(STDWINPATH)
Guido van Rossum4b35ef51994-01-03 01:26:03 +000046
47
48# Modules that should always be present (non UNIX dependent)
49
50array arraymodule.o # array objects
51math mathmodule.o # math library functions, e.g. sin()
52parser parsermodule.o # raw interface to the Python parser
53posix posixmodule.o # posix (UNIX) system calls
54regex regexmodule.o regexpr.o # Regular expressions, GNU Emacs style
55strop stropmodule.o # fast string operations implemented in C
56struct structmodule.o # binary structure packing/unpacking
57time 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
64dbm dbmmodule.o # dbm(3) may require -ldbm or similar
65fcntl fcntlmodule.o # fcntl(2) and ioctl(2)
66nis nismodule.o # Sun yellow pages -- not everywhere
67pwd grp pwdmodule.o # pwd(3) and grp(3)
68select selectmodule.o # select(2); not on ancient System V
69socket socketmodule.o # socket(2); not on ancient System V
70
71
Guido van Rossum7dd31d01994-01-04 22:08:35 +000072# Multimedia modules -- on by default
Guido van Rossum4b35ef51994-01-03 01:26:03 +000073# These represent audio samples or images as strings
74
75audioop audioopmodule.o # Operations on audio samples
76imageop imageopmodule.o # Operations on images
77rgbimg 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
88STDWIN=/ufs/guido/src/stdwin
89ARCH=sgi
90stdwin 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
97md5 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
106GMP=/ufs/guido/src/gmp
107mpz 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
113rotor 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
122al almodule.o -laudio # audio
123cd cdmodule.o -lcdaudio -lds #
124cl clmodule.o -lcl
125fm fmmodule.o -lfm_s -lgl_s
126gl glmodule.o -lgl_s
127imgfile imgfilemodule.o -limage -lgutil -lm
128sgi sgimodule.o
129sv 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
138FORMS=/ufs/guido/src/forms/FORMS
139fl 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
151thread threadmodule.o
152
153
154# GNN's timing module
155timing timingmodule.o
156
157
158# Example -- included for reference only
159
160# xx xxmodule.o