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 |
Fred Drake | cf3bc8c | 2000-10-26 17:07:40 +0000 | [diff] [blame] | 5 | # Setup.dist; 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 |
Fred Drake | cf3bc8c | 2000-10-26 17:07:40 +0000 | [diff] [blame] | 10 | # are Makefile and config.c; the *.in and *.dist 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 |
Guido van Rossum | 7fef86e | 1998-10-07 14:41:54 +0000 | [diff] [blame] | 42 | # is used to build modules as shared libraries. (They can be |
| 43 | # installed using "make sharedinstall", which is implied by the |
| 44 | # toplevel "make install" target.) (For compatibility, |
Guido van Rossum | 30e817e | 1997-12-02 16:46:39 +0000 | [diff] [blame] | 45 | # *noconfig* has the same effect as *shared*.) |
Guido van Rossum | b71c570 | 1999-02-22 18:11:18 +0000 | [diff] [blame] | 46 | # |
| 47 | # In addition, *static* reverses this effect (negating a previous |
| 48 | # *shared* line). |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 49 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 50 | # NOTE: As a standard policy, as many modules as can be supported by a |
| 51 | # platform should be present. The distribution comes with all modules |
| 52 | # 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] | 53 | # to ftp sources from elsewhere. |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 54 | |
| 55 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 56 | # Some special rules to define PYTHONPATH. |
| 57 | # Edit the definitions below to indicate which options you are using. |
| 58 | # Don't add any whitespace or comments! |
| 59 | |
Guido van Rossum | 0c5e3c8 | 1996-07-31 17:49:01 +0000 | [diff] [blame] | 60 | # Directories where library files get installed. |
| 61 | # DESTLIB is for Python modules; MACHDESTLIB for shared libraries. |
| 62 | DESTLIB=$(LIBDEST) |
| 63 | MACHDESTLIB=$(BINLIBDEST) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 64 | |
Guido van Rossum | 9722781 | 1997-04-11 17:19:54 +0000 | [diff] [blame] | 65 | # NOTE: all the paths are now relative to the prefix that is computed |
| 66 | # at run time! |
| 67 | |
Guido van Rossum | 0c5e3c8 | 1996-07-31 17:49:01 +0000 | [diff] [blame] | 68 | # Standard path -- don't edit. |
Guido van Rossum | 9722781 | 1997-04-11 17:19:54 +0000 | [diff] [blame] | 69 | # No leading colon since this is the first entry. |
| 70 | # Empty since this is now just the runtime prefix. |
| 71 | DESTPATH= |
Guido van Rossum | 1c20648 | 1995-09-13 18:39:04 +0000 | [diff] [blame] | 72 | |
Guido van Rossum | 0c5e3c8 | 1996-07-31 17:49:01 +0000 | [diff] [blame] | 73 | # Site specific path components -- should begin with : if non-empty |
| 74 | SITEPATH= |
| 75 | |
| 76 | # Standard path components for test modules |
Guido van Rossum | 7d83a5e | 1999-02-08 21:49:22 +0000 | [diff] [blame] | 77 | TESTPATH= |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 78 | |
Guido van Rossum | d3c1bd3 | 1996-07-30 16:54:03 +0000 | [diff] [blame] | 79 | # Path components for machine- or system-dependent modules and shared libraries |
Guido van Rossum | a9f02b8 | 1997-09-28 05:45:40 +0000 | [diff] [blame] | 80 | MACHDEPPATH=:plat-$(MACHDEP) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 81 | |
Guido van Rossum | 2808b74 | 2000-05-03 22:34:12 +0000 | [diff] [blame] | 82 | COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(TKPATH) |
Guido van Rossum | f5e0ea8 | 1994-09-12 15:35:36 +0000 | [diff] [blame] | 83 | PYTHONPATH=$(COREPYTHONPATH) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 84 | |
| 85 | |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 86 | # The modules listed here can't be built as shared libraries for |
| 87 | # various reasons; therefore they are listed here instead of in the |
| 88 | # normal order. |
Guido van Rossum | 05bf280 | 1994-10-20 22:01:38 +0000 | [diff] [blame] | 89 | |
Andrew M. Kuchling | 3712d39 | 2001-01-17 18:55:13 +0000 | [diff] [blame^] | 90 | # This only contains the minimal set of modules required to run the |
| 91 | # setup.py script in the root of the Python source tree. |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 92 | |
| 93 | posix posixmodule.c # posix (UNIX) system calls |
Guido van Rossum | e567935 | 2000-03-31 15:01:27 +0000 | [diff] [blame] | 94 | _sre _sre.c # Fredrik Lundh's new regular expressions |
Andrew M. Kuchling | 3712d39 | 2001-01-17 18:55:13 +0000 | [diff] [blame^] | 95 | strop stropmodule.c # fast string operations implemented in C |
Guido van Rossum | caffcdf | 1995-03-10 15:14:13 +0000 | [diff] [blame] | 96 | |
Andrew M. Kuchling | 3712d39 | 2001-01-17 18:55:13 +0000 | [diff] [blame^] | 97 | # The rest of the modules previously listed in this file are built |
| 98 | # by the setup.py script in Python 2.1. |