# Generated automatically from Makefile.pre by makesetup.
# Top-level Makefile for Python
# As distributed, this file is called Makefile.pre.in; it is processed
# into the real Makefile by running the script ./configure, which
# replaces things like @spam@ with values appropriate for your system.
# This means that if you edit Makefile, your changes get lost the next
# time you run the configure script. Ideally, you can do:
# If you have a previous version of Python installed that you don't
# want to overwrite, you can use "make altinstall" instead of "make
# install". Refer to the "Installing" section in the README file for
# See also the section "Build instructions" in the README file.
# === Variables set by makesetup ===
MODOBJS
= Modules
/threadmodule.o Modules
/signalmodule.o Modules
/posixmodule.o Modules
/errnomodule.o Modules
/_sre.o Modules
/_codecsmodule.o Modules
/zipimport.o Modules
/symtablemodule.o Modules
/xxsubtype.o Modules
/readline.o Modules
/pyexpat.o Modules
/_tkinter.o Modules
/tkappinit.o
MODLIBS
= $(LOCALMODLIBS
) $(BASEMODLIBS
)
# === Variables set by configure
CC
= /import
/datools
/vendor
/sun
/studio11
/SUNWspro
/bin
/cc
CXX
= /import
/datools
/vendor
/sun
/studio11
/SUNWspro
/bin
/CC
# Shell used by make (some versions default to the login shell, which is bad)
# Use this to make a link between python$(VERSION) and python in $(BINDIR)
# Portable install script (configure doesn't always guess right)
INSTALL_PROGRAM
=${INSTALL}
INSTALL_SCRIPT
= ${INSTALL}
INSTALL_DATA
= ${INSTALL} -m
644
# Shared libraries must be installed with executable mode on some systems;
# rather than figuring out exactly which, we always give them executable mode.
# Also, making them read-only seems to be a good idea...
INSTALL_SHARED
= ${INSTALL} -m
555
MAKESETUP
= $(srcdir)/Modules
/makesetup
OPT
= -DNDEBUG
-DNDEBUG
-xO4
-xarch
=v8plusa
-KPIC
-mt
BASECFLAGS
= -I
/import
/archperf
/ws
/devtools
/4/v8plus
/include
CFLAGS
= $(BASECFLAGS
) $(OPT
)
CPPFLAGS
= -I.
-I
$(srcdir)/Include
LDFLAGS
=-R
/import
/archperf
/ws
/devtools
/4/v8plus
/lib
-xarch
=v8plusa
-KPIC
-L
/import
/archperf
/ws
/devtools
/4/v8plus
/lib
# Extra C flags added for building the interpreter object files.
CFLAGSFORSHARED
=$(CCSHARED
)
# C flags used for building the interpreter object files
PY_CFLAGS
= $(CFLAGS
) $(CPPFLAGS
) $(CFLAGSFORSHARED
) -DPy_BUILD_CORE
# Machine-dependent subdirectories
# Install prefix for architecture-independent files
prefix= /import
/archperf
/ws
/devtools
/4/v8plus
# Install prefix for architecture-dependent files
BINDIR
= $(exec_prefix)/bin
LIBDIR
= $(exec_prefix)/lib
INCLUDEDIR
= ${prefix}/include
CONFINCLUDEDIR
= $(exec_prefix)/include
# Detailed destination directories
BINLIBDEST
= $(LIBDIR
)/python
$(VERSION
)
LIBDEST
= $(SCRIPTDIR
)/python
$(VERSION
)
INCLUDEPY
= $(INCLUDEDIR
)/python
$(VERSION
)
CONFINCLUDEPY
= $(CONFINCLUDEDIR
)/python
$(VERSION
)
LIBP
= $(LIBDIR
)/python
$(VERSION
)
# Symbols used for using shared libraries
LDSHARED
= /import
/datools
/vendor
/sun
/studio11
/SUNWspro
/bin
/cc -G
-xarch
=v8plusa
-KPIC
-L
/import
/archperf
/ws
/devtools
/4/v8plus
/lib
BLDSHARED
= /import
/datools
/vendor
/sun
/studio11
/SUNWspro
/bin
/cc -G
-xarch
=v8plusa
-KPIC
-L
/import
/archperf
/ws
/devtools
/4/v8plus
/lib
DESTSHARED
= $(BINLIBDEST
)/lib-dynload
# Executable suffix (.exe on Windows and Mac OS X)
# Short name and location for Mac OS X Python framework
PYTHONFRAMEWORKDIR
= no-framework
PYTHONFRAMEWORKINSTALLDIR
=
# Deployment target selected during configure, to be checked
CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
# Options to enable prebinding (for fast startup prior to Mac OS X 10.3)
# Environment to run shared python without installed libraries
RUNSHARED
= LD_LIBRARY_PATH
=/import
/archperf
/ws
/devtools
/Python-2.4
.2:
# Modes for directories, executables and data files created by the
# install process. Default to user-only-writable for all file types.
# configure script arguments
CONFIG_ARGS
= '--prefix=/import/archperf/ws/devtools/4/v8plus' '--enable-shared' 'CC=/import/datools/vendor/sun/studio11/SUNWspro/bin/cc' 'CFLAGS=-xarch=v8plusa -KPIC'
# Subdirectories with code
SRCDIRS
= Parser Grammar Objects Python Modules Mac Mac
/Python
SUBDIRSTOO
= Include Lib Misc Demo
# Files and directories to be distributed
CONFIGFILES
= configure configure.in acconfig.h pyconfig.h.in Makefile.pre.in
DISTFILES
= README ChangeLog
$(CONFIGFILES
)
DISTDIRS
= $(SUBDIRS
) $(SUBDIRSTOO
) Ext-dummy
DIST
= $(DISTFILES
) $(DISTDIRS
)
LIBRARY
= libpython
$(VERSION
).a
LDLIBRARY
= libpython
$(VERSION
).so
BLDLIBRARY
= -Wl
,-R
,$(LIBDIR
) -L.
-lpython
$(VERSION
)
INSTSONAME
= libpython
$(VERSION
).so
.1.0
LIBS
= -lresolv
-lsocket
-lnsl
-lrt
-ldl
-lpthread
THREADOBJ
= Python
/thread.o
DYNLOADFILE
= dynload_shlib.o
UNICODE_OBJS
= Objects
/unicodeobject.o Objects
/unicodectype.o
BUILDPYTHON
= python
$(BUILDEXE
)
# === Definitions added by makesetup ===
LOCALMODLIBS
= -lreadline
-ltermcap
-lexpat
-L
/import
/archperf
/ws
/devtools
/4/64/lib
-ltk8.4
-ltcl8.4
-lX11
PYTHONPATH
=$(COREPYTHONPATH
)
COREPYTHONPATH
=$(DESTPATH
)$(SITEPATH
)$(TESTPATH
)$(MACHDEPPATH
)$(EXTRAMACHDEPPATH
)$(TKPATH
)
MACHDEPPATH
=:plat-
$(MACHDEP
)
MACHDESTLIB
=$(BINLIBDEST
)
##########################################################################
# Used of signalmodule.o is not available
##########################################################################
GRAMMAR_H
= $(srcdir)/Include
/graminit.h
GRAMMAR_C
= $(srcdir)/Python
/graminit.c
GRAMMAR_INPUT
= $(srcdir)/Grammar
/Grammar
##########################################################################
PARSER_OBJS
= $(POBJS
) Parser
/myreadline.o Parser
/tokenizer.o
Parser
/tokenizer_pgen.o \
PGENOBJS
= $(PGENMAIN
) $(POBJS
) $(PGOBJS
)
##########################################################################
##########################################################################
Objects
/complexobject.o \
Objects
/weakrefobject.o \
##########################################################################
# objects that get linked into the Python library
#########################################################################
all: $(BUILDPYTHON
) oldsharedmods sharedmods
$(BUILDPYTHON
): Modules
/$(MAINOBJ
) $(LIBRARY
) $(LDLIBRARY
)
$(LINKCC
) $(LDFLAGS
) $(LINKFORSHARED
) -o
$@ \
$(BLDLIBRARY
) $(LIBS
) $(MODLIBS
) $(SYSLIBS
) $(LDLAST
)
$(RUNSHARED
) .
/$(BUILDPYTHON
) -E
-c
'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
# Build the shared modules
sharedmods
: $(BUILDPYTHON
)
*-s
*) $(RUNSHARED
) CC
='$(CC)' LDSHARED
='$(BLDSHARED)' OPT
='$(OPT)' .
/$(BUILDPYTHON
) -E
$(srcdir)/setup.py
-q build
;; \
*) $(RUNSHARED
) CC
='$(CC)' LDSHARED
='$(BLDSHARED)' OPT
='$(OPT)' .
/$(BUILDPYTHON
) -E
$(srcdir)/setup.py build
;; \
# buildno should really depend on something like LIBRARY_SRC
buildno
: $(PARSER_OBJS
) \
$(srcdir)/Modules
/getbuildinfo.c
if
test -f buildno
; then \
expr
`cat buildno` + 1 >buildno1
; \
mv
-f buildno1 buildno
; \
# avoid long command lines, same as LIBRARY_OBJS
$(LIBRARY
): $(LIBRARY_OBJS
)
$(AR
) cr
$@ Modules
/getbuildinfo.o
$(AR
) cr
$@
$(PARSER_OBJS
)
$(AR
) cr
$@
$(OBJECT_OBJS
)
$(AR
) cr
$@
$(PYTHON_OBJS
)
$(AR
) cr
$@
$(MODULE_OBJS
) $(SIGNAL_OBJS
)
libpython
$(VERSION
).so
: $(LIBRARY_OBJS
)
if
test $(INSTSONAME
) != $(LDLIBRARY
); then \
$(LDSHARED
) -Wl
,-h
$(INSTSONAME
) -o
$(INSTSONAME
) $(LIBRARY_OBJS
) $(SHLIBS
) $(LIBC
) $(LIBM
); \
$(LN
) -f
$(INSTSONAME
) $@
; \
$(LDSHARED
) -o
$@
$(LIBRARY_OBJS
) $(SHLIBS
) $(LIBC
) $(LIBM
); \
libpython
$(VERSION
).sl
: $(LIBRARY_OBJS
)
$(LDSHARED
) -o
$@
$(LIBRARY_OBJS
) $(LIBC
) $(LIBM
)
# This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
# minimal framework (not including the Lib directory and such) in the current
RESSRCDIR
=$(srcdir)/Mac
/OSXResources
/framework
$(PYTHONFRAMEWORKDIR
)/Versions
/$(VERSION
)/$(PYTHONFRAMEWORK
): \
$(RESSRCDIR
)/Info.plist \
$(RESSRCDIR
)/version.plist \
$(RESSRCDIR
)/English.lproj
/InfoPlist.strings
$(INSTALL
) -d
-m
$(DIRMODE
) $(PYTHONFRAMEWORKDIR
)/Versions
/$(VERSION
)
libtool
-o
$(LDLIBRARY
) -dynamic
$(OTHER_LIBTOOL_OPT
) $(LIBRARY
) \
$(INSTALL
) -d
-m
$(DIRMODE
) \
$(PYTHONFRAMEWORKDIR
)/Versions
/$(VERSION
)/Resources
/English.lproj
$(INSTALL_DATA
) $(RESSRCDIR
)/Info.plist \
$(PYTHONFRAMEWORKDIR
)/Versions
/$(VERSION
)/Resources
/Info.plist
$(INSTALL_DATA
) $(RESSRCDIR
)/version.plist \
$(PYTHONFRAMEWORKDIR
)/Versions
/$(VERSION
)/Resources
/version.plist
$(INSTALL_DATA
) $(RESSRCDIR
)/English.lproj
/InfoPlist.strings \
$(PYTHONFRAMEWORKDIR
)/Versions
/$(VERSION
)/Resources
/English.lproj
/InfoPlist.strings
$(LN
) -fsn
$(VERSION
) $(PYTHONFRAMEWORKDIR
)/Versions
/Current
$(LN
) -fsn Versions
/Current
/$(PYTHONFRAMEWORK
) $(PYTHONFRAMEWORKDIR
)/$(PYTHONFRAMEWORK
)
$(LN
) -fsn Versions
/Current
/Headers
$(PYTHONFRAMEWORKDIR
)/Headers
$(LN
) -fsn Versions
/Current
/Resources
$(PYTHONFRAMEWORKDIR
)/Resources
# This rule builds the Cygwin Python DLL and import library if configured
# for a shared core library; otherwise, this rule is a noop.
$(DLLLIBRARY
) libpython
$(VERSION
).dll.a
: $(LIBRARY_OBJS
)
if
test -n
"$(DLLLIBRARY)"; then \
$(LDSHARED
) -Wl
,--out-implib
=$@
-o
$(DLLLIBRARY
) $^ \
$(LIBS
) $(MODLIBS
) $(SYSLIBS
); \
oldsharedmods
: $(SHAREDMODS
)
Makefile Modules
/config.c
: Makefile.pre \
$(srcdir)/Modules
/config.c.in \
$(SHELL
) $(MAKESETUP
) -c
$(srcdir)/Modules
/config.c.in \
@echo
"The Makefile was updated, you may need to re-run make."
Modules
/Setup
: $(srcdir)/Modules
/Setup.
dist
@if
test -f Modules
/Setup
; then \
echo
"-----------------------------------------------"; \
echo
"Modules/Setup.dist is newer than Modules/Setup;"; \
echo
"check to make sure you have all the updates you"; \
echo
"need in your Modules/Setup file."; \
echo
"Usually, copying Setup.dist to Setup will work."; \
echo
"-----------------------------------------------"; \
############################################################################
# Special rules for object files
Modules
/getbuildinfo.o
: $(srcdir)/Modules
/getbuildinfo.c buildno
$(CC
) -c
$(PY_CFLAGS
) -DBUILD
=`cat buildno` -o
$@
$(srcdir)/Modules
/getbuildinfo.c
Modules
/getpath.o
: $(srcdir)/Modules
/getpath.c Makefile
$(CC
) -c
$(PY_CFLAGS
) -DPYTHONPATH
='"$(PYTHONPATH)"' \
-DEXEC_PREFIX
='"$(exec_prefix)"' \
-DVERSION
='"$(VERSION)"' \
-o
$@
$(srcdir)/Modules
/getpath.c
Modules
/ccpython.o
: $(srcdir)/Modules
/ccpython.
cc
$(CXX
) -c
$(PY_CFLAGS
) -o
$@
$(srcdir)/Modules
/ccpython.
cc
$(GRAMMAR_H
) $(GRAMMAR_C
): $(PGEN
) $(GRAMMAR_INPUT
)
-$(PGEN
) $(GRAMMAR_INPUT
) $(GRAMMAR_H
) $(GRAMMAR_C
)
$(CC
) $(OPT
) $(LDFLAGS
) $(PGENOBJS
) $(LIBS
) -o
$(PGEN
)
Parser
/grammar.o
: $(srcdir)/Parser
/grammar.c \
$(srcdir)/Include
/token.h \
$(srcdir)/Include
/grammar.h
Parser
/metagrammar.o
: $(srcdir)/Parser
/metagrammar.c
Parser
/tokenizer_pgen.o
: $(srcdir)/Parser
/tokenizer.c
Python
/compile.o Python
/symtable.o
: $(GRAMMAR_H
)
Python
/getplatform.o
: $(srcdir)/Python
/getplatform.c
$(CC
) -c
$(PY_CFLAGS
) -DPLATFORM
='"$(MACHDEP)"' -o
$@
$(srcdir)/Python
/getplatform.c
Python
/importdl.o
: $(srcdir)/Python
/importdl.c
$(CC
) -c
$(PY_CFLAGS
) -I
$(DLINCLDIR
) -o
$@
$(srcdir)/Python
/importdl.c
Objects
/unicodectype.o
: $(srcdir)/Objects
/unicodectype.c \
$(srcdir)/Objects
/unicodetype_db.h
############################################################################
Include
/complexobject.h \
Include
/unicodeobject.h \
Include
/weakrefobject.h \
$(LIBRARY_OBJS
) $(MODOBJS
) Modules
/$(MAINOBJ
): $(PYTHON_HEADERS
)
######################################################################
# Test the interpreter (twice, once without .pyc files, once with)
# In the past, we've had problems where bugs in the marshalling or
# elsewhere caused bytecode read from .pyc files to behave differently
# than bytecode generated directly from a .py source file. Sometimes
# the bytecode read from a .pyc file had the bug, somtimes the directly
# generated bytecode. This is sometimes a very shy bug needing a lot of
TESTPROG
= $(srcdir)/Lib
/test/regrtest.py
TESTPYTHON
= $(RUNSHARED
) .
/$(BUILDPYTHON
) -E
-tt
-find
$(srcdir)/Lib
-name
'*.py[co]' -print | xargs
rm -f
-$(TESTPYTHON
) $(TESTPROG
) $(TESTOPTS
)
$(TESTPYTHON
) $(TESTPROG
) $(TESTOPTS
)
-find
$(srcdir)/Lib
-name
'*.py[co]' -print | xargs
rm -f
-$(TESTPYTHON
) $(TESTPROG
) $(TESTOPTS
) -uall
$(TESTPYTHON
) $(TESTPROG
) $(TESTOPTS
) -uall
QUICKTESTOPTS
= $(TESTOPTS
) -x test_thread test_signal test_strftime \
test_unicodedata test_re test_sre test_select test_poll \
test_linuxaudiodev test_struct test_sunaudiodev test_zlib
-find
$(srcdir)/Lib
-name
'*.py[co]' -print | xargs
rm -f
-$(TESTPYTHON
) $(TESTPROG
) $(QUICKTESTOPTS
)
$(TESTPYTHON
) $(TESTPROG
) $(QUICKTESTOPTS
)
MEMTESTOPTS
= $(QUICKTESTOPTS
) -x test_dl test___all__ test_fork1 \
-rm -f
$(srcdir)/Lib
/test/*.py
[co]
-$(TESTPYTHON
) $(TESTPROG
) $(MEMTESTOPTS
)
$(TESTPYTHON
) $(TESTPROG
) $(MEMTESTOPTS
)
install: altinstall bininstall maninstall
# Install almost everything without disturbing previous versions
altinstall
: altbininstall libinstall inclinstall libainstall \
sharedinstall oldsharedinstall
# Install shared libraries enabled by Setup
DESTDIRS
= $(exec_prefix) $(LIBDIR
) $(BINLIBDEST
) $(DESTSHARED
)
oldsharedinstall
: $(DESTSHARED
) $(SHAREDMODS
)
@for i in X
$(SHAREDMODS
); do \
echo
$(INSTALL_SHARED
) $$i $(DESTSHARED
)/`basename $$i`; \
$(INSTALL_SHARED
) $$i $(DESTDIR
)$(DESTSHARED
)/`basename $$i`; \
if
test ! -d
$(DESTDIR
)$$i; then \
echo
"Creating directory $$i"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$i; \
# Install the interpreter (by creating a hard link to python$(VERSION))
bininstall
: altbininstall
-if
test -f
$(DESTDIR
)$(BINDIR
)/$(PYTHON
) -o
-h
$(DESTDIR
)$(BINDIR
)/$(PYTHON
); \
then
rm -f
$(DESTDIR
)$(BINDIR
)/$(PYTHON
); \
(cd
$(DESTDIR
)$(BINDIR
); $(LN
) python
$(VERSION
)$(EXE
) $(PYTHON
))
# Install the interpreter with $(VERSION) affixed
# This goes into $(exec_prefix)
altbininstall
: $(BUILDPYTHON
)
@if
test "$(PYTHONFRAMEWORKDIR)" != no-framework
; then \
if
test ! -f
$(DESTDIR
)$(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/Current
/Resources
/Info.plist
; then \
echo
'Framework build: use "make frameworkinstall" in stead of "make install"'; \
@for i in
$(BINDIR
) $(LIBDIR
); \
if
test ! -d
$(DESTDIR
)$$i; then \
echo
"Creating directory $$i"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$i; \
$(INSTALL_PROGRAM
) $(BUILDPYTHON
) $(DESTDIR
)$(BINDIR
)/python
$(VERSION
)$(EXE
)
if
test -f libpython
$(VERSION
)$(SO
); then \
if
test "$(SO)" = .dll
; then \
$(INSTALL_SHARED
) libpython
$(VERSION
)$(SO
) $(DESTDIR
)$(BINDIR
); \
$(INSTALL_SHARED
) libpython
$(VERSION
)$(SO
) $(DESTDIR
)$(LIBDIR
)/$(INSTSONAME
); \
if
test libpython
$(VERSION
)$(SO
) != $(INSTSONAME
); then \
(cd
$(DESTDIR
)$(LIBDIR
); $(LN
) -sf
$(INSTSONAME
) libpython
$(VERSION
)$(SO
)); \
# Install the manual page
@for i in
$(MANDIR
) $(MANDIR
)/man1
; \
if
test ! -d
$(DESTDIR
)$$i; then \
echo
"Creating directory $$i"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$i; \
$(INSTALL_DATA
) $(srcdir)/Misc
/python.man \
$(DESTDIR
)$(MANDIR
)/man1
/python
.1
MACHDEPS
= $(PLATDIR
) $(EXTRAPLATDIR
)
XMLLIBSUBDIRS
= xml xml
/dom xml
/parsers xml
/sax
PLATMACDIRS
= plat-mac plat-mac
/Carbon plat-mac
/lib-scriptpackages \
plat-mac
/lib-scriptpackages
/_builtinSuites \
plat-mac
/lib-scriptpackages
/CodeWarrior \
plat-mac
/lib-scriptpackages
/Explorer \
plat-mac
/lib-scriptpackages
/Finder \
plat-mac
/lib-scriptpackages
/Netscape \
plat-mac
/lib-scriptpackages
/StdSuites \
plat-mac
/lib-scriptpackages
/SystemEvents \
plat-mac
/lib-scriptpackages
/Terminal
PLATMACPATH
=:plat-mac
:plat-mac
/lib-scriptpackages
LIBSUBDIRS
= lib-old lib-tk site-packages
test test/output
test/data \
encodings email email
/test email
/test/data compiler hotshot \
logging bsddb bsddb
/test csv idlelib idlelib
/Icons \
distutils distutils
/command distutils
/tests
$(XMLLIBSUBDIRS
) \
libinstall
: $(BUILDPYTHON
) $(srcdir)/Lib
/$(PLATDIR
)
@for i in
$(SCRIPTDIR
) $(LIBDEST
); \
if
test ! -d
$(DESTDIR
)$$i; then \
echo
"Creating directory $$i"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$i; \
@for d in
$(LIBSUBDIRS
); \
if
test ! -d
$$a; then continue
; else true
; fi
; \
if
test ! -d
$(DESTDIR
)$$b; then \
echo
"Creating directory $$b"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$b; \
@for i in
$(srcdir)/Lib
/*.py
$(srcdir)/Lib
/*.doc
; \
$(INSTALL_SCRIPT
) $$i $(DESTDIR
)$(LIBDEST
); \
echo
$(INSTALL_SCRIPT
) $$i $(LIBDEST
); \
$(INSTALL_DATA
) $$i $(DESTDIR
)$(LIBDEST
); \
echo
$(INSTALL_DATA
) $$i $(LIBDEST
); \
@for d in
$(LIBSUBDIRS
); \
if
test ! -d
$$a; then continue
; else true
; fi
; \
if
test -d
$$i; then continue
; fi
; \
echo
$(INSTALL_SCRIPT
) $$i $$b; \
$(INSTALL_SCRIPT
) $$i $(DESTDIR
)$$b; \
echo
$(INSTALL_DATA
) $$i $$b; \
$(INSTALL_DATA
) $$i $(DESTDIR
)$$b; \
$(INSTALL_DATA
) $(srcdir)/LICENSE
$(DESTDIR
)$(LIBDEST
)/LICENSE.txt
PYTHONPATH
=$(DESTDIR
)$(LIBDEST
) $(RUNSHARED
) \
.
/$(BUILDPYTHON
) -Wi
-tt
$(DESTDIR
)$(LIBDEST
)/compileall.py \
-x
'badsyntax|site-packages' $(DESTDIR
)$(LIBDEST
)
PYTHONPATH
=$(DESTDIR
)$(LIBDEST
) $(RUNSHARED
) \
.
/$(BUILDPYTHON
) -Wi
-tt
-O
$(DESTDIR
)$(LIBDEST
)/compileall.py \
-x
'badsyntax|site-packages' $(DESTDIR
)$(LIBDEST
)
-PYTHONPATH
=$(DESTDIR
)$(LIBDEST
) $(RUNSHARED
) \
.
/$(BUILDPYTHON
) -Wi
-t
$(DESTDIR
)$(LIBDEST
)/compileall.py \
-d
$(LIBDEST
)/site-packages
-f \
-x badsyntax
$(DESTDIR
)$(LIBDEST
)/site-packages
-PYTHONPATH
=$(DESTDIR
)$(LIBDEST
) $(RUNSHARED
) \
.
/$(BUILDPYTHON
) -Wi
-t
-O
$(DESTDIR
)$(LIBDEST
)/compileall.py \
-d
$(LIBDEST
)/site-packages
-f \
-x badsyntax
$(DESTDIR
)$(LIBDEST
)/site-packages
# Create the PLATDIR source directory, if one wasn't distributed..
$(srcdir)/Lib
/$(PLATDIR
):
mkdir
$(srcdir)/Lib
/$(PLATDIR
)
cp
$(srcdir)/Lib
/plat-generic
/regen
$(srcdir)/Lib
/$(PLATDIR
)/regen
export PATH
; PATH
="`pwd`:$$PATH"; \
export PYTHONPATH
; PYTHONPATH
="`pwd`/Lib"; \
export DYLD_FRAMEWORK_PATH
; DYLD_FRAMEWORK_PATH
="`pwd`"; \
export EXE
; EXE
="$(BUILDEXE)"; \
cd
$(srcdir)/Lib
/$(PLATDIR
); .
/regen
# Install the include files
INCLDIRSTOMAKE
=$(INCLUDEDIR
) $(CONFINCLUDEDIR
) $(INCLUDEPY
) $(CONFINCLUDEPY
)
@for i in
$(INCLDIRSTOMAKE
); \
if
test ! -d
$(DESTDIR
)$$i; then \
echo
"Creating directory $$i"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$i; \
@for i in
$(srcdir)/Include
/*.h
; \
echo
$(INSTALL_DATA
) $$i $(INCLUDEPY
); \
$(INSTALL_DATA
) $$i $(DESTDIR
)$(INCLUDEPY
); \
$(INSTALL_DATA
) pyconfig.h
$(DESTDIR
)$(CONFINCLUDEPY
)/pyconfig.h
# Install the library and miscellaneous stuff needed for extending/embedding
# This goes into $(exec_prefix)
@for i in
$(LIBDIR
) $(LIBP
) $(LIBPL
); \
if
test ! -d
$(DESTDIR
)$$i; then \
echo
"Creating directory $$i"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$i; \
@if
test -d
$(LIBRARY
); then
:; else \
if
test "$(PYTHONFRAMEWORKDIR)" = no-framework
; then \
if
test "$(SO)" = .dll
; then \
$(INSTALL_DATA
) $(LDLIBRARY
) $(DESTDIR
)$(LIBPL
) ; \
$(INSTALL_DATA
) $(LIBRARY
) $(DESTDIR
)$(LIBPL
)/$(LIBRARY
) ; \
$(RANLIB
) $(DESTDIR
)$(LIBPL
)/$(LIBRARY
) ; \
echo Skip
install of
$(LIBRARY
) - use make frameworkinstall
; \
$(INSTALL_DATA
) Modules
/config.c
$(DESTDIR
)$(LIBPL
)/config.c
$(INSTALL_DATA
) Modules
/$(MAINOBJ
) $(DESTDIR
)$(LIBPL
)/$(MAINOBJ
)
$(INSTALL_DATA
) $(srcdir)/Modules
/config.c.in
$(DESTDIR
)$(LIBPL
)/config.c.in
$(INSTALL_DATA
) Makefile
$(DESTDIR
)$(LIBPL
)/Makefile
$(INSTALL_DATA
) Modules
/Setup
$(DESTDIR
)$(LIBPL
)/Setup
$(INSTALL_DATA
) Modules
/Setup.local
$(DESTDIR
)$(LIBPL
)/Setup.local
$(INSTALL_DATA
) Modules
/Setup.config
$(DESTDIR
)$(LIBPL
)/Setup.config
$(INSTALL_SCRIPT
) $(srcdir)/Modules
/makesetup
$(DESTDIR
)$(LIBPL
)/makesetup
$(INSTALL_SCRIPT
) $(srcdir)/install-sh
$(DESTDIR
)$(LIBPL
)/install-sh
@if
[ -s Modules
/python.exp
-a \
"`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
echo
; echo
"Installing support files for building shared extension modules on AIX:"; \
$(INSTALL_DATA
) Modules
/python.exp \
$(DESTDIR
)$(LIBPL
)/python.exp
; \
echo
; echo
"$(LIBPL)/python.exp"; \
$(INSTALL_SCRIPT
) $(srcdir)/Modules
/makexp_aix \
$(DESTDIR
)$(LIBPL
)/makexp_aix
; \
echo
"$(LIBPL)/makexp_aix"; \
$(INSTALL_SCRIPT
) $(srcdir)/Modules
/ld_so_aix \
$(DESTDIR
)$(LIBPL
)/ld_so_aix
; \
echo
"$(LIBPL)/ld_so_aix"; \
echo
; echo
"See Misc/AIX-NOTES for details."; \
@case
"$(MACHDEP)" in beos
*) \
echo
; echo
"Installing support files for building shared extension modules on BeOS:"; \
$(INSTALL_DATA
) Misc
/BeOS-NOTES
$(DESTDIR
)$(LIBPL
)/README
; \
echo
; echo
"$(LIBPL)/README"; \
$(INSTALL_SCRIPT
) Modules
/ar_beos
$(DESTDIR
)$(LIBPL
)/ar_beos
; \
echo
"$(LIBPL)/ar_beos"; \
$(INSTALL_SCRIPT
) Modules
/ld_so_beos
$(DESTDIR
)$(LIBPL
)/ld_so_beos
; \
echo
"$(LIBPL)/ld_so_beos"; \
echo
; echo
"See Misc/BeOS-NOTES for details."; \
# Install the dynamically loadable modules
# This goes into $(exec_prefix)
$(RUNSHARED
) .
/$(BUILDPYTHON
) -E
$(srcdir)/setup.py
install \
--install-scripts
=$(BINDIR
) \
--install-platlib
=$(DESTSHARED
) \
# Here are a couple of targets for MacOSX again, to install a full
# framework-based Python. frameworkinstall installs everything, the
# subtargets install specific parts. Much of the actual work is offloaded to
# the Makefile in Mac/OSX
frameworkinstall
: frameworkinstallframework \
frameworkinstallapps frameworkinstallunixtools
# On install, we re-make the framework
# structure in the install location, /Library/Frameworks/ or the argument to
# --enable-framework. If --enable-framework has been specified then we have
# automatically set prefix to the location deep down in the framework, so we
# only have to cater for the structural bits of the framework.
frameworkinstallframework
: frameworkinstallstructure
install frameworkinstallmaclib
frameworkinstallstructure
: $(LDLIBRARY
)
@if
test "$(PYTHONFRAMEWORKDIR)" = no-framework
; then \
echo Not configured with
--enable-framework
; \
@for i in
$(prefix)/Resources
/English.lproj
$(prefix)/lib
; do\
if
test ! -d
$(DESTDIR
)$$i; then \
echo
"Creating directory $(DESTDIR)$$i"; \
$(INSTALL
) -d
-m
$(DIRMODE
) $(DESTDIR
)$$i; \
$(LN
) -fsn
include/python
$(VERSION
) $(DESTDIR
)$(prefix)/Headers
$(INSTALL_DATA
) $(RESSRCDIR
)/Info.plist
$(DESTDIR
)$(prefix)/Resources
/Info.plist
$(INSTALL_DATA
) $(RESSRCDIR
)/version.plist
$(DESTDIR
)$(prefix)/Resources
/version.plist
$(INSTALL_DATA
) $(RESSRCDIR
)/English.lproj
/InfoPlist.strings \
$(DESTDIR
)$(prefix)/Resources
/English.lproj
/InfoPlist.strings
$(LN
) -fsn
$(VERSION
) $(DESTDIR
)$(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/Current
$(LN
) -fsn Versions
/Current
/Python
$(DESTDIR
)$(PYTHONFRAMEWORKINSTALLDIR
)/Python
$(LN
) -fsn Versions
/Current
/Headers
$(DESTDIR
)$(PYTHONFRAMEWORKINSTALLDIR
)/Headers
$(LN
) -fsn Versions
/Current
/Resources
$(DESTDIR
)$(PYTHONFRAMEWORKINSTALLDIR
)/Resources
$(INSTALL_SHARED
) $(LDLIBRARY
) $(DESTDIR
)$(PYTHONFRAMEWORKPREFIX
)/$(LDLIBRARY
)
# This installs Mac/Lib into the framework
$(MAKE
) -f
$(srcdir)/Mac
/OSX
/Makefile installmacsubtree \
$(RUNSHARED
) BUILDPYTHON
=.
/$(BUILDPYTHON
) DIRMODE
=$(DIRMODE
) FILEMODE
=$(FILEMODE
) \
srcdir=$(srcdir) builddir
=.
prefix=$(prefix) LIBDEST
=$(LIBDEST
) \
# This installs the IDE, the Launcher and other apps into /Applications
$(MAKE
) -f
$(srcdir)/Mac
/OSX
/Makefile installapps \
$(RUNSHARED
) BUILDPYTHON
=.
/$(BUILDPYTHON
) DIRMODE
=$(DIRMODE
) FILEMODE
=$(FILEMODE
) \
srcdir=$(srcdir) builddir
=. DESTDIR
=$(DESTDIR
) prefix=$(prefix)
# This install the unix python and pythonw tools in /usr/local/bin
frameworkinstallunixtools
:
$(MAKE
) -f
$(srcdir)/Mac
/OSX
/Makefile installunixtools \
DIRMODE
=$(DIRMODE
) FILEMODE
=$(FILEMODE
) \
srcdir=$(srcdir) builddir
=. DESTDIR
=$(DESTDIR
) prefix=$(prefix)
# This installs the Demos and Tools into the applications directory.
# It is not part of a normal frameworkinstall
$(MAKE
) -f
$(srcdir)/Mac
/OSX
/Makefile installextras \
$(RUNSHARED
) BUILDPYTHON
=.
/$(BUILDPYTHON
) DIRMODE
=$(DIRMODE
) FILEMODE
=$(FILEMODE
) \
srcdir=$(srcdir) builddir
=. DESTDIR
=$(DESTDIR
)
# This installs a few of the useful scripts in Tools/scripts
SRCDIR
=$(srcdir) $(RUNSHARED
) \
.
/$(BUILDPYTHON
) $(srcdir)/Tools
/scripts
/setup.py
install \
--install-scripts
=$(BINDIR
) \
# Build the toplevel Makefile
Makefile.pre
: Makefile.pre.in config.status
CONFIG_FILES
=Makefile.pre CONFIG_HEADERS
= $(SHELL
) config.status
$(MAKE
) -f Makefile.pre Makefile
# Run the configure script.
config.status
: $(srcdir)/configure
$(SHELL
) $(srcdir)/configure
$(CONFIG_ARGS
)
.PRECIOUS
: config.status
$(BUILDPYTHON
) Makefile Makefile.pre
# Some make's put the object file in the current directory
$(CC
) -c
$(PY_CFLAGS
) -o
$@
$<
# Rerun configure with the same options as it was run last time,
# provided the config.status script exists
$(SHELL
) config.status
--recheck
# Rebuild the configure script from configure.in; also rebuild pyconfig.h.in
(cd
$(srcdir); autoheader
)
# Create a tags file for vi
ctags
-w
-t Include
/*.h
; \
for i in
$(SRCDIRS
); do ctags
-w
-t
-a
$$i/*.
[ch
]; \
# Create a tags file for GNU Emacs
for i in
$(SRCDIRS
); do etags
-a
$$i/*.
[ch
]; done
# Sanitation targets -- clean leaves libraries, executables and tags
# files, which clobber removes those as well
find .
-name
'*.o' -exec
rm -f
{} ';'
find .
-name
'*.s[ol]' -exec
rm -f
{} ';'
find
$(srcdir) -name
'*.py[co]' -exec
rm -f
{} ';'
-rm -f
$(BUILDPYTHON
) $(PGEN
) $(LIBRARY
) $(LDLIBRARY
) $(DLLLIBRARY
) \
config.cache config.log pyconfig.h Modules
/config.c
-rm -rf
$(PYTHONFRAMEWORKDIR
)
# Make things extra clean, before making a distribution:
# remove all generated files, even Makefile[.pre]
-rm -f core Makefile Makefile.pre buildno config.status \
Modules
/Setup Modules
/Setup.local Modules
/Setup.config
find
$(srcdir) '(' -name
'*.fdc' -o
-name
'*~' \
-o
-name
'[@,#]*' -o
-name
'*.old' \
-o
-name
'*.orig' -o
-name
'*.rej' \
# Check for smelly exported symbols (not starting with Py/_Py)
sed
-n
"/ [TDB] /s/.* //p" | grep
-v
"^_*Py" |
sort -u
; \
# Find files with funny names
find
$(DISTDIRS
) -type d \
Python
/thread.o
: $(srcdir)/Python
/thread_atheos.h
$(srcdir)/Python
/thread_beos.h
$(srcdir)/Python
/thread_cthread.h
$(srcdir)/Python
/thread_foobar.h
$(srcdir)/Python
/thread_lwp.h
$(srcdir)/Python
/thread_nt.h
$(srcdir)/Python
/thread_os2.h
$(srcdir)/Python
/thread_pth.h
$(srcdir)/Python
/thread_pthread.h
$(srcdir)/Python
/thread_sgi.h
$(srcdir)/Python
/thread_solaris.h
$(srcdir)/Python
/thread_wince.h
# Declare targets that aren't real files
.PHONY
: all sharedmods oldsharedmods
test quicktest memtest
.PHONY
: install altinstall oldsharedinstall bininstall altbininstall
.PHONY
: maninstall libinstall inclinstall libainstall sharedinstall
.PHONY
: frameworkinstall frameworkinstallframework frameworkinstallstructure
.PHONY
: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
.PHONY
: recheck autoconf
clean clobber distclean smelly funny
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
# Rules appended by makedepend
Modules
/threadmodule.o
: $(srcdir)/Modules
/threadmodule.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/threadmodule.c
-o Modules
/threadmodule.o
Modules
/threadmodule
$(SO
): Modules
/threadmodule.o
; $(LDSHARED
) Modules
/threadmodule.o
-o Modules
/threadmodule
$(SO
)
Modules
/signalmodule.o
: $(srcdir)/Modules
/signalmodule.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/signalmodule.c
-o Modules
/signalmodule.o
Modules
/signalmodule
$(SO
): Modules
/signalmodule.o
; $(LDSHARED
) Modules
/signalmodule.o
-o Modules
/signalmodule
$(SO
)
Modules
/posixmodule.o
: $(srcdir)/Modules
/posixmodule.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/posixmodule.c
-o Modules
/posixmodule.o
Modules
/posixmodule
$(SO
): Modules
/posixmodule.o
; $(LDSHARED
) Modules
/posixmodule.o
-o Modules
/posixmodule
$(SO
)
Modules
/errnomodule.o
: $(srcdir)/Modules
/errnomodule.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/errnomodule.c
-o Modules
/errnomodule.o
Modules
/errnomodule
$(SO
): Modules
/errnomodule.o
; $(LDSHARED
) Modules
/errnomodule.o
-o Modules
/errnomodule
$(SO
)
Modules
/_sre.o
: $(srcdir)/Modules
/_sre.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/_sre.c
-o Modules
/_sre.o
Modules
/_sre
$(SO
): Modules
/_sre.o
; $(LDSHARED
) Modules
/_sre.o
-o Modules
/_sre
$(SO
)
Modules
/_codecsmodule.o
: $(srcdir)/Modules
/_codecsmodule.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/_codecsmodule.c
-o Modules
/_codecsmodule.o
Modules
/_codecsmodule
$(SO
): Modules
/_codecsmodule.o
; $(LDSHARED
) Modules
/_codecsmodule.o
-o Modules
/_codecsmodule
$(SO
)
Modules
/zipimport.o
: $(srcdir)/Modules
/zipimport.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/zipimport.c
-o Modules
/zipimport.o
Modules
/zipimport
$(SO
): Modules
/zipimport.o
; $(LDSHARED
) Modules
/zipimport.o
-o Modules
/zipimport
$(SO
)
Modules
/symtablemodule.o
: $(srcdir)/Modules
/symtablemodule.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/symtablemodule.c
-o Modules
/symtablemodule.o
Modules
/_symtablemodule
$(SO
): Modules
/symtablemodule.o
; $(LDSHARED
) Modules
/symtablemodule.o
-o Modules
/_symtablemodule
$(SO
)
Modules
/xxsubtype.o
: $(srcdir)/Modules
/xxsubtype.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/xxsubtype.c
-o Modules
/xxsubtype.o
Modules
/xxsubtype
$(SO
): Modules
/xxsubtype.o
; $(LDSHARED
) Modules
/xxsubtype.o
-o Modules
/xxsubtype
$(SO
)
Modules
/readline.o
: $(srcdir)/Modules
/readline.c
; $(CC
) $(PY_CFLAGS
) -c
$(srcdir)/Modules
/readline.c
-o Modules
/readline.o
Modules
/readline
$(SO
): Modules
/readline.o
; $(LDSHARED
) Modules
/readline.o
-lreadline
-ltermcap
-o Modules
/readline
$(SO
)
Modules
/pyexpat.o
: $(srcdir)/Modules
/pyexpat.c
; $(CC
) $(PY_CFLAGS
) -DHAVE_EXPAT_H
-c
$(srcdir)/Modules
/pyexpat.c
-o Modules
/pyexpat.o
Modules
/pyexpat
$(SO
): Modules
/pyexpat.o
; $(LDSHARED
) Modules
/pyexpat.o
-lexpat
-o Modules
/pyexpat
$(SO
)
Modules
/_tkinter.o
: $(srcdir)/Modules
/_tkinter.c
; $(CC
) $(PY_CFLAGS
) -DWITH_APPINIT
-I
/import
/archperf
/ws
/devtools
/4/64/include -c
$(srcdir)/Modules
/_tkinter.c
-o Modules
/_tkinter.o
Modules
/tkappinit.o
: $(srcdir)/Modules
/tkappinit.c
; $(CC
) $(PY_CFLAGS
) -DWITH_APPINIT
-I
/import
/archperf
/ws
/devtools
/4/64/include -c
$(srcdir)/Modules
/tkappinit.c
-o Modules
/tkappinit.o
Modules
/_tkinter
$(SO
): Modules
/_tkinter.o Modules
/tkappinit.o
; $(LDSHARED
) Modules
/_tkinter.o Modules
/tkappinit.o
-L
/import
/archperf
/ws
/devtools
/4/64/lib
-ltk8.4
-ltcl8.4
-lX11
-o Modules
/_tkinter
$(SO
)