blob: 60e44d1acd75dd5f68293ffb9c0d5f747eeb02a9 [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 Rossum6eb1d4a1994-01-11 11:31:44 +000030DESTLIB=$(prefix)/lib/python
31ARCHPATH=:$(DESTLIB)/sgi
32#ARCHPATH=:$(DESTLIB)/sun4
33STDWINPATH=:$(DESTLIB)/stdwin
Guido van Rossum4b35ef51994-01-03 01:26:03 +000034
35PYTHONPATH=.:$(DESTLIB)$(ARCHPATH)$(STDWINPATH)
36
37
38# Modules that should always be present (non UNIX dependent)
39
40array arraymodule.o # array objects
41math mathmodule.o # math library functions, e.g. sin()
42parser parsermodule.o # raw interface to the Python parser
43posix posixmodule.o # posix (UNIX) system calls
44regex regexmodule.o regexpr.o # Regular expressions, GNU Emacs style
45strop stropmodule.o # fast string operations implemented in C
46struct structmodule.o # binary structure packing/unpacking
47time timemodule.o # time operations and variables
48
49
50# Modules with some UNIX dependencies -- on by default.
51# Note that some UNIX versions still don't support all of these
52# so you may have to comment them out before the build completes.
53
54dbm dbmmodule.o # dbm(3) may require -ldbm or similar
55fcntl fcntlmodule.o # fcntl(2) and ioctl(2)
56nis nismodule.o # Sun yellow pages -- not everywhere
57pwd grp pwdmodule.o # pwd(3) and grp(3)
58select selectmodule.o # select(2); not on ancient System V
59socket socketmodule.o # socket(2); not on ancient System V
60
61
Guido van Rossum7dd31d01994-01-04 22:08:35 +000062# Multimedia modules -- on by default
Guido van Rossum4b35ef51994-01-03 01:26:03 +000063# These represent audio samples or images as strings
64
65audioop audioopmodule.o # Operations on audio samples
66imageop imageopmodule.o # Operations on images
67rgbimg rgbimgmodule.o # Read SGI RGB image files (but coded portably)
68
69
70# The stdwin module provides a simple, portable (between X11 and Mac)
71# windowing interface. You need to ftp the STDWIN library, e.g. from
72# ftp://ftp.cwi.nl/pub/stdwin. The STDWIN variable must point to the
73# STDWIN toplevel directory. The ARCH variable must be set to the
74# architecture identifier used to build STDWIN. NB if you combine this
75# with the gl module on an SGI machine, you should replace "-lX11" with
76# "-lX11_s".
77
78STDWIN=/ufs/guido/src/stdwin
79ARCH=sgi
80stdwin stdwinmodule.o -I$(STDWIN)/H $(STDWIN)/Build/$(ARCH)/x11/lib/lib.a -lX11_s
81
82
83# The md5 module implements the RSA Data Security, Inc. MD5
84# Message-Digest Algorithm, described in RFC 1321. The necessary files
85# md5c.c and md5.h are included here.
86
87md5 md5module.o md5c.o
88
89
90# The mpz module interfaces to the GNU Multiple Precision library.
91# You need to ftp the GNU MP library. This was last tested with a
92# somewhat modified (to get around bugs) version of GMP 1.2; it will
93# likely need some work for more recent versions. The GMP variable
94# must point to the GMP source directory.
95
96GMP=/ufs/guido/src/gmp
97mpz mpzmodule.o -I$(GMP) $(GMP)/libgmp.a
98
99
100# The rotor module (contributed by Lance Ellinghouse) implements a
101# rotor-based encryption algorithm. It is self-contained.
102
103rotor rotormodule.o
104
105
106# SGI IRIX specific modules -- off by default.
107# Switch this on if you have an SGI machine.
108# Note that some required libraries and header files aren't always
109# installed; you may be better off switching on only 'fm' and 'gl'
110# (Font Manager and Graphics Library).
111
112al almodule.o -laudio # audio
113cd cdmodule.o -lcdaudio -lds #
114cl clmodule.o -lcl
115fm fmmodule.o -lfm_s -lgl_s
116gl glmodule.o -lgl_s
117imgfile imgfilemodule.o -limage -lgutil -lm
118sgi sgimodule.o
119sv svmodule.o yuvconvert.o -lsvideo -lXext -lX11_s
120
121# The FORMS library, by Mark Overmars, implements user interface
122# components such as dialogs and buttons using SGI's GL and FM
123# libraries. You must ftp the FORMS library separately from
124# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
125# The FORMS variable must point to the FORMS subdirectory of the forms
126# toplevel directory.
127
128FORMS=/ufs/guido/src/forms/FORMS
129fl flmodule.o -I$(FORMS) $(FORMS)/libforms.a
130
131
132# SunOS specific modules -- off by default
133
134# sunaudiodev sunaudiodevmodule.o
135
136
137# Thread module -- works on SGI IRIX and on SunOS 5.x (SOLARIS) only.
138# Note that you must have configured (and built!) Python with the
139# --with-thread option passed to the configure script for this to work.
140
141thread threadmodule.o
142
143
144# GNN's timing module
145timing timingmodule.o
146
147
148# Example -- included for reference only
149
150# xx xxmodule.o