jpayne@68: # -*- makefile -*- jpayne@68: # The file Setup is used by the makesetup script to construct the files jpayne@68: # Makefile and config.c, from Makefile.pre and config.c.in, jpayne@68: # respectively. Note that Makefile.pre is created from Makefile.pre.in jpayne@68: # by the toplevel configure script. jpayne@68: jpayne@68: # (VPATH notes: Setup and Makefile.pre are in the build directory, as jpayne@68: # are Makefile and config.c; the *.in files are in the source directory.) jpayne@68: jpayne@68: # Each line in this file describes one or more optional modules. jpayne@68: # Modules configured here will not be compiled by the setup.py script, jpayne@68: # so the file can be used to override setup.py's behavior. jpayne@68: # Tag lines containing just the word "*static*", "*shared*" or "*disabled*" jpayne@68: # (without the quotes but with the stars) are used to tag the following module jpayne@68: # descriptions. Tag lines may alternate throughout this file. Modules are jpayne@68: # built statically when they are preceded by a "*static*" tag line or when jpayne@68: # there is no tag line between the start of the file and the module jpayne@68: # description. Modules are built as a shared library when they are preceded by jpayne@68: # a "*shared*" tag line. Modules are not built at all, not by the Makefile, jpayne@68: # nor by the setup.py script, when they are preceded by a "*disabled*" tag jpayne@68: # line. jpayne@68: jpayne@68: # Lines have the following structure: jpayne@68: # jpayne@68: # ... [ ...] [ ...] [ ...] jpayne@68: # jpayne@68: # is anything ending in .c (.C, .cc, .c++ are C++ files) jpayne@68: # is anything starting with -I, -D, -U or -C jpayne@68: # is anything ending in .a or beginning with -l or -L jpayne@68: # is anything else but should be a valid Python jpayne@68: # identifier (letters, digits, underscores, beginning with non-digit) jpayne@68: # jpayne@68: # (As the makesetup script changes, it may recognize some other jpayne@68: # arguments as well, e.g. *.so and *.sl as libraries. See the big jpayne@68: # case statement in the makesetup script.) jpayne@68: # jpayne@68: # Lines can also have the form jpayne@68: # jpayne@68: # = jpayne@68: # jpayne@68: # which defines a Make variable definition inserted into Makefile.in jpayne@68: # jpayne@68: # The build process works like this: jpayne@68: # jpayne@68: # 1. Build all modules that are declared as static in Modules/Setup, jpayne@68: # combine them into libpythonxy.a, combine that into python. jpayne@68: # 2. Build all modules that are listed as shared in Modules/Setup. jpayne@68: # 3. Invoke setup.py. That builds all modules that jpayne@68: # a) are not builtin, and jpayne@68: # b) are not listed in Modules/Setup, and jpayne@68: # c) can be build on the target jpayne@68: # jpayne@68: # Therefore, modules declared to be shared will not be jpayne@68: # included in the config.c file, nor in the list of objects to be jpayne@68: # added to the library archive, and their linker options won't be jpayne@68: # added to the linker options. Rules to create their .o files and jpayne@68: # their shared libraries will still be added to the Makefile, and jpayne@68: # their names will be collected in the Make variable SHAREDMODS. This jpayne@68: # is used to build modules as shared libraries. (They can be jpayne@68: # installed using "make sharedinstall", which is implied by the jpayne@68: # toplevel "make install" target.) (For compatibility, jpayne@68: # *noconfig* has the same effect as *shared*.) jpayne@68: # jpayne@68: # NOTE: As a standard policy, as many modules as can be supported by a jpayne@68: # platform should be present. The distribution comes with all modules jpayne@68: # enabled that are supported by most platforms and don't require you jpayne@68: # to ftp sources from elsewhere. jpayne@68: jpayne@68: jpayne@68: # Some special rules to define PYTHONPATH. jpayne@68: # Edit the definitions below to indicate which options you are using. jpayne@68: # Don't add any whitespace or comments! jpayne@68: jpayne@68: # Directories where library files get installed. jpayne@68: # DESTLIB is for Python modules; MACHDESTLIB for shared libraries. jpayne@68: DESTLIB=$(LIBDEST) jpayne@68: MACHDESTLIB=$(BINLIBDEST) jpayne@68: jpayne@68: # NOTE: all the paths are now relative to the prefix that is computed jpayne@68: # at run time! jpayne@68: jpayne@68: # Standard path -- don't edit. jpayne@68: # No leading colon since this is the first entry. jpayne@68: # Empty since this is now just the runtime prefix. jpayne@68: DESTPATH= jpayne@68: jpayne@68: # Site specific path components -- should begin with : if non-empty jpayne@68: SITEPATH= jpayne@68: jpayne@68: # Standard path components for test modules jpayne@68: TESTPATH= jpayne@68: jpayne@68: COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH) jpayne@68: PYTHONPATH=$(COREPYTHONPATH) jpayne@68: jpayne@68: jpayne@68: # The modules listed here can't be built as shared libraries for jpayne@68: # various reasons; therefore they are listed here instead of in the jpayne@68: # normal order. jpayne@68: jpayne@68: # This only contains the minimal set of modules required to run the jpayne@68: # setup.py script in the root of the Python source tree. jpayne@68: jpayne@68: posix -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal posixmodule.c # posix (UNIX) system calls jpayne@68: errno errnomodule.c # posix (UNIX) errno values jpayne@68: pwd pwdmodule.c # this is needed to find out the user's home dir jpayne@68: # if $HOME is not set jpayne@68: _sre _sre.c # Fredrik Lundh's new regular expressions jpayne@68: _codecs _codecsmodule.c # access to the builtin codecs and codec registry jpayne@68: _weakref _weakref.c # weak references jpayne@68: _functools -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal _functoolsmodule.c # Tools for working with functions and callable objects jpayne@68: _operator _operator.c # operator.add() and similar goodies jpayne@68: _collections _collectionsmodule.c # Container types jpayne@68: _abc _abc.c # Abstract base classes jpayne@68: itertools itertoolsmodule.c # Functions creating iterators for efficient looping jpayne@68: atexit atexitmodule.c # Register functions to be run at interpreter-shutdown jpayne@68: _signal -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal signalmodule.c jpayne@68: _stat _stat.c # stat.h interface jpayne@68: time -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal timemodule.c # -lm # time operations and variables jpayne@68: _thread -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal _threadmodule.c # low-level threading interface jpayne@68: jpayne@68: # access to ISO C locale support jpayne@68: _locale -DPy_BUILD_CORE_BUILTIN _localemodule.c # -lintl jpayne@68: jpayne@68: # Standard I/O baseline jpayne@68: _io -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c jpayne@68: jpayne@68: # faulthandler module jpayne@68: faulthandler faulthandler.c jpayne@68: jpayne@68: # debug tool to trace memory blocks allocated by Python jpayne@68: # jpayne@68: # bpo-35053: The module must be builtin since _Py_NewReference() jpayne@68: # can call _PyTraceMalloc_NewReference(). jpayne@68: _tracemalloc _tracemalloc.c hashtable.c jpayne@68: jpayne@68: # The rest of the modules listed in this file are all commented out by jpayne@68: # default. Usually they can be detected and built as dynamically jpayne@68: # loaded modules by the new setup.py script added in Python 2.1. If jpayne@68: # you're on a platform that doesn't support dynamic loading, want to jpayne@68: # compile modules statically into the Python binary, or need to jpayne@68: # specify some odd set of compiler switches, you can uncomment the jpayne@68: # appropriate lines below. jpayne@68: jpayne@68: # ====================================================================== jpayne@68: jpayne@68: # The Python symtable module depends on .h files that setup.py doesn't track jpayne@68: _symtable symtablemodule.c jpayne@68: jpayne@68: # Uncommenting the following line tells makesetup that all following jpayne@68: # modules are to be built as shared libraries (see above for more jpayne@68: # detail; also note that *static* or *disabled* cancels this effect): jpayne@68: jpayne@68: #*shared* jpayne@68: jpayne@68: # GNU readline. Unlike previous Python incarnations, GNU readline is jpayne@68: # now incorporated in an optional module, configured in the Setup file jpayne@68: # instead of by a configure script switch. You may have to insert a jpayne@68: # -L option pointing to the directory where libreadline.* lives, jpayne@68: # and you may have to change -ltermcap to -ltermlib or perhaps remove jpayne@68: # it, depending on your system -- see the GNU readline instructions. jpayne@68: # It's okay for this to be a shared library, too. jpayne@68: jpayne@68: #readline readline.c -lreadline -ltermcap jpayne@68: jpayne@68: jpayne@68: # Modules that should always be present (non UNIX dependent): jpayne@68: jpayne@68: #array arraymodule.c # array objects jpayne@68: #cmath cmathmodule.c _math.c # -lm # complex math library functions jpayne@68: #math mathmodule.c _math.c # -lm # math library functions, e.g. sin() jpayne@68: #_contextvars _contextvarsmodule.c # Context Variables jpayne@68: #_struct _struct.c # binary structure packing/unpacking jpayne@68: #_weakref _weakref.c # basic weak reference support jpayne@68: #_testcapi _testcapimodule.c # Python C API test module jpayne@68: #_testinternalcapi _testinternalcapi.c -I$(srcdir)/Include/internal -DPy_BUILD_CORE_MODULE # Python internal C API test module jpayne@68: #_random _randommodule.c # Random number generator jpayne@68: #_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator jpayne@68: #_pickle _pickle.c # pickle accelerator jpayne@68: #_datetime _datetimemodule.c # datetime accelerator jpayne@68: #_bisect _bisectmodule.c # Bisection algorithms jpayne@68: #_heapq _heapqmodule.c # Heap queue algorithm jpayne@68: #_asyncio _asynciomodule.c # Fast asyncio Future jpayne@68: #_json -I$(srcdir)/Include/internal -DPy_BUILD_CORE_BUILTIN _json.c # _json speedups jpayne@68: #_statistics _statisticsmodule.c # statistics accelerator jpayne@68: jpayne@68: #unicodedata unicodedata.c # static Unicode character database jpayne@68: jpayne@68: jpayne@68: # Modules with some UNIX dependencies -- on by default: jpayne@68: # (If you have a really backward UNIX, select and socket may not be jpayne@68: # supported...) jpayne@68: jpayne@68: #fcntl fcntlmodule.c # fcntl(2) and ioctl(2) jpayne@68: #spwd spwdmodule.c # spwd(3) jpayne@68: #grp grpmodule.c # grp(3) jpayne@68: #select selectmodule.c # select(2); not on ancient System V jpayne@68: jpayne@68: # Memory-mapped files (also works on Win32). jpayne@68: #mmap mmapmodule.c jpayne@68: jpayne@68: # CSV file helper jpayne@68: #_csv _csv.c jpayne@68: jpayne@68: # Socket module helper for socket(2) jpayne@68: #_socket socketmodule.c jpayne@68: jpayne@68: # Socket module helper for SSL support; you must comment out the other jpayne@68: # socket line above, and possibly edit the SSL variable: jpayne@68: #SSL=/usr/local/ssl jpayne@68: #_ssl _ssl.c \ jpayne@68: # -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ jpayne@68: # -L$(SSL)/lib -lssl -lcrypto jpayne@68: jpayne@68: # The crypt module is now disabled by default because it breaks builds jpayne@68: # on many systems (where -lcrypt is needed), e.g. Linux (I believe). jpayne@68: jpayne@68: #_crypt _cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems jpayne@68: jpayne@68: jpayne@68: # Some more UNIX dependent modules -- off by default, since these jpayne@68: # are not supported by all UNIX systems: jpayne@68: jpayne@68: #nis nismodule.c -lnsl # Sun yellow pages -- not everywhere jpayne@68: #termios termios.c # Steen Lumholt's termios module jpayne@68: #resource resource.c # Jeremy Hylton's rlimit interface jpayne@68: jpayne@68: #_posixsubprocess _posixsubprocess.c # POSIX subprocess module helper jpayne@68: jpayne@68: # Multimedia modules -- off by default. jpayne@68: # These don't work for 64-bit platforms!!! jpayne@68: # #993173 says audioop works on 64-bit platforms, though. jpayne@68: # These represent audio samples or images as strings: jpayne@68: jpayne@68: #audioop audioop.c # Operations on audio samples jpayne@68: jpayne@68: jpayne@68: # Note that the _md5 and _sha modules are normally only built if the jpayne@68: # system does not have the OpenSSL libs containing an optimized version. jpayne@68: jpayne@68: # The _md5 module implements the RSA Data Security, Inc. MD5 jpayne@68: # Message-Digest Algorithm, described in RFC 1321. jpayne@68: jpayne@68: #_md5 md5module.c jpayne@68: jpayne@68: jpayne@68: # The _sha module implements the SHA checksum algorithms. jpayne@68: # (NIST's Secure Hash Algorithms.) jpayne@68: #_sha1 sha1module.c jpayne@68: #_sha256 sha256module.c jpayne@68: #_sha512 sha512module.c jpayne@68: #_sha3 _sha3/sha3module.c jpayne@68: jpayne@68: # _blake module jpayne@68: #_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c jpayne@68: jpayne@68: # The _tkinter module. jpayne@68: # jpayne@68: # The command for _tkinter is long and site specific. Please jpayne@68: # uncomment and/or edit those parts as indicated. If you don't have a jpayne@68: # specific extension (e.g. Tix or BLT), leave the corresponding line jpayne@68: # commented out. (Leave the trailing backslashes in! If you jpayne@68: # experience strange errors, you may want to join all uncommented jpayne@68: # lines and remove the backslashes -- the backslash interpretation is jpayne@68: # done by the shell's "read" command and it may not be implemented on jpayne@68: # every system. jpayne@68: jpayne@68: # *** Always uncomment this (leave the leading underscore in!): jpayne@68: # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \ jpayne@68: # *** Uncomment and edit to reflect where your Tcl/Tk libraries are: jpayne@68: # -L/usr/local/lib \ jpayne@68: # *** Uncomment and edit to reflect where your Tcl/Tk headers are: jpayne@68: # -I/usr/local/include \ jpayne@68: # *** Uncomment and edit to reflect where your X11 header files are: jpayne@68: # -I/usr/X11R6/include \ jpayne@68: # *** Or uncomment this for Solaris: jpayne@68: # -I/usr/openwin/include \ jpayne@68: # *** Uncomment and edit for Tix extension only: jpayne@68: # -DWITH_TIX -ltix8.1.8.2 \ jpayne@68: # *** Uncomment and edit for BLT extension only: jpayne@68: # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \ jpayne@68: # *** Uncomment and edit for PIL (TkImaging) extension only: jpayne@68: # (See http://www.pythonware.com/products/pil/ for more info) jpayne@68: # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \ jpayne@68: # *** Uncomment and edit for TOGL extension only: jpayne@68: # -DWITH_TOGL togl.c \ jpayne@68: # *** Uncomment and edit to reflect your Tcl/Tk versions: jpayne@68: # -ltk8.2 -ltcl8.2 \ jpayne@68: # *** Uncomment and edit to reflect where your X11 libraries are: jpayne@68: # -L/usr/X11R6/lib \ jpayne@68: # *** Or uncomment this for Solaris: jpayne@68: # -L/usr/openwin/lib \ jpayne@68: # *** Uncomment these for TOGL extension only: jpayne@68: # -lGL -lGLU -lXext -lXmu \ jpayne@68: # *** Uncomment for AIX: jpayne@68: # -lld \ jpayne@68: # *** Always uncomment this; X11 libraries to link with: jpayne@68: # -lX11 jpayne@68: jpayne@68: # Lance Ellinghaus's syslog module jpayne@68: #syslog syslogmodule.c # syslog daemon interface jpayne@68: jpayne@68: jpayne@68: # Curses support, requiring the System V version of curses, often jpayne@68: # provided by the ncurses library. e.g. on Linux, link with -lncurses jpayne@68: # instead of -lcurses). jpayne@68: jpayne@68: #_curses _cursesmodule.c -lcurses -ltermcap jpayne@68: # Wrapper for the panel library that's part of ncurses and SYSV curses. jpayne@68: #_curses_panel _curses_panel.c -lpanel -lncurses jpayne@68: jpayne@68: jpayne@68: # Modules that provide persistent dictionary-like semantics. You will jpayne@68: # probably want to arrange for at least one of them to be available on jpayne@68: # your machine, though none are defined by default because of library jpayne@68: # dependencies. The Python module dbm/__init__.py provides an jpayne@68: # implementation independent wrapper for these; dbm/dumb.py provides jpayne@68: # similar functionality (but slower of course) implemented in Python. jpayne@68: jpayne@68: #_dbm _dbmmodule.c # dbm(3) may require -lndbm or similar jpayne@68: jpayne@68: # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm: jpayne@68: jpayne@68: #_gdbm _gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm jpayne@68: jpayne@68: jpayne@68: # Helper module for various ascii-encoders jpayne@68: #binascii binascii.c jpayne@68: jpayne@68: # Fred Drake's interface to the Python parser jpayne@68: #parser parsermodule.c jpayne@68: jpayne@68: jpayne@68: # Andrew Kuchling's zlib module. jpayne@68: # This require zlib 1.1.3 (or later). jpayne@68: # See http://www.gzip.org/zlib/ jpayne@68: #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz jpayne@68: jpayne@68: # Interface to the Expat XML parser jpayne@68: # More information on Expat can be found at www.libexpat.org. jpayne@68: # jpayne@68: #pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY -DUSE_PYEXPAT_CAPI jpayne@68: jpayne@68: # Hye-Shik Chang's CJKCodecs jpayne@68: jpayne@68: # multibytecodec is required for all the other CJK codec modules jpayne@68: #_multibytecodec cjkcodecs/multibytecodec.c jpayne@68: jpayne@68: #_codecs_cn cjkcodecs/_codecs_cn.c jpayne@68: #_codecs_hk cjkcodecs/_codecs_hk.c jpayne@68: #_codecs_iso2022 cjkcodecs/_codecs_iso2022.c jpayne@68: #_codecs_jp cjkcodecs/_codecs_jp.c jpayne@68: #_codecs_kr cjkcodecs/_codecs_kr.c jpayne@68: #_codecs_tw cjkcodecs/_codecs_tw.c jpayne@68: jpayne@68: # Example -- included for reference only: jpayne@68: # xx xxmodule.c jpayne@68: jpayne@68: # Another example -- the 'xxsubtype' module shows C-level subtyping in action jpayne@68: xxsubtype xxsubtype.c jpayne@68: jpayne@68: # Uncommenting the following line tells makesetup that all following modules jpayne@68: # are not built (see above for more detail). jpayne@68: # jpayne@68: #*disabled* jpayne@68: # jpayne@68: #_sqlite3 _tkinter _curses pyexpat jpayne@68: #_codecs_jp _codecs_kr _codecs_tw unicodedata