mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
Superseded by $(srcdir)/Makefile.pre.in.
This commit is contained in:
parent
e0d435777c
commit
693291ba23
@ -1,12 +0,0 @@
|
|||||||
all:
|
|
||||||
@echo Nothing to make in this directory.
|
|
||||||
|
|
||||||
clean:
|
|
||||||
find . '(' -name '*.pyc' -o -name '*.fdc' \
|
|
||||||
-o -name core -o -name '*~' \
|
|
||||||
-o -name '[@,#]*' -o -name '*.old' \
|
|
||||||
-o -name '*.orig' -o -name '*.rej' \
|
|
||||||
-o -name '*.bak' ')' \
|
|
||||||
-print -exec rm -f {} ';'
|
|
||||||
|
|
||||||
clobber: clean
|
|
@ -1,54 +0,0 @@
|
|||||||
# NOTE: Makefile.in is converted into Makefile by the configure script
|
|
||||||
# in the parent directory. Once configure has run, you can recreate
|
|
||||||
# the Makefile by running just config.status.
|
|
||||||
|
|
||||||
# === Variables set by config.status ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
|
|
||||||
srcdir= @srcdir@
|
|
||||||
VPATH= @srcdir@
|
|
||||||
|
|
||||||
CC= @CC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
AR= @AR@
|
|
||||||
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
TOP= ..
|
|
||||||
PGENDIR= $(TOP)/Parser
|
|
||||||
PGEN= $(PGENDIR)/pgen
|
|
||||||
DESTH= $(srcdir)/$(TOP)/Include/graminit.h
|
|
||||||
DESTC= $(srcdir)/$(TOP)/Python/graminit.c
|
|
||||||
|
|
||||||
all: install
|
|
||||||
|
|
||||||
# This target is used by the master Makefile to add the objects to the library
|
|
||||||
add2lib:
|
|
||||||
|
|
||||||
install: $(DESTH) $(DESTC)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
|
|
||||||
$(DESTH): graminit.h
|
|
||||||
cp graminit.h $(DESTH)
|
|
||||||
|
|
||||||
$(DESTC): graminit.c
|
|
||||||
cp graminit.c $(DESTC)
|
|
||||||
|
|
||||||
graminit.c graminit.h: $(PGEN) Grammar
|
|
||||||
$(PGEN) $(srcdir)/Grammar
|
|
||||||
|
|
||||||
$(PGEN):
|
|
||||||
cd $(PGENDIR); $(MAKE) pgen
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej
|
|
||||||
-rm -f graminit.[ch]
|
|
||||||
|
|
||||||
clobber: clean
|
|
||||||
-rm -f tags TAGS
|
|
@ -1,12 +0,0 @@
|
|||||||
all:
|
|
||||||
@echo Nothing to make in this directory.
|
|
||||||
|
|
||||||
clean:
|
|
||||||
find . '(' -name '*.pyc' -o -name '*.fdc' \
|
|
||||||
-o -name core -o -name '*~' \
|
|
||||||
-o -name '[@,#]*' -o -name '*.old' \
|
|
||||||
-o -name '*.orig' -o -name '*.rej' \
|
|
||||||
-o -name '*.bak' ')' \
|
|
||||||
-print -exec rm -f {} ';'
|
|
||||||
|
|
||||||
clobber: clean
|
|
12
Lib/Makefile
12
Lib/Makefile
@ -1,12 +0,0 @@
|
|||||||
all:
|
|
||||||
@echo Nothing to make in this directory.
|
|
||||||
|
|
||||||
clean:
|
|
||||||
find . '(' -name '*.py[co]' -o -name '*.fdc' \
|
|
||||||
-o -name core -o -name '*~' \
|
|
||||||
-o -name '[@,#]*' -o -name '*.old' \
|
|
||||||
-o -name '*.orig' -o -name '*.rej' \
|
|
||||||
-o -name '*.bak' ')' \
|
|
||||||
-print -exec rm -f {} ';'
|
|
||||||
|
|
||||||
clobber: clean
|
|
595
Makefile.in
595
Makefile.in
@ -1,595 +0,0 @@
|
|||||||
# Top-level Makefile for Python
|
|
||||||
#
|
|
||||||
# As distributed, this file is called Makefile.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:
|
|
||||||
#
|
|
||||||
# ./configure
|
|
||||||
# make
|
|
||||||
# make test
|
|
||||||
# make install
|
|
||||||
#
|
|
||||||
# The top-level Makefile invokes make recursively in a number of
|
|
||||||
# subdirectories (see the SUBDIRS variable below). If you want to,
|
|
||||||
# you can invoke make in individual subdirectories. However, the
|
|
||||||
# sub-Makefiles are also generated by configure, and the quickest way
|
|
||||||
# to make sure they are up to date is by running make (or "make
|
|
||||||
# Makefiles") at the top level. This is particularly important for
|
|
||||||
# Modules/Makefile, which has to be regenerated every time you edit
|
|
||||||
# Modules/Setup. The python executable is built in the Modules
|
|
||||||
# directory and then moved to the top-level directory. The recursive
|
|
||||||
# makes pass three options to subordinate makes: OPT (a quick way to
|
|
||||||
# change some compiler options; it usually defaults to -O), prefix and
|
|
||||||
# exec_prefix (the installation paths).
|
|
||||||
#
|
|
||||||
# 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". This changes the install procedure so it installs the
|
|
||||||
# Python binary as "python<version>". The libraries and include files
|
|
||||||
# are always installed in a subdirectory called "python<version>".
|
|
||||||
# "make altinstall" does not install the manual page. If you want to
|
|
||||||
# make this installation the "official" installation but want to keep
|
|
||||||
# the old binary around "just in case", rename the installed python
|
|
||||||
# binary to "python<oldversion>" before running "make install".
|
|
||||||
# (This only works between different versions, e.g. 1.3 and 1.4 --
|
|
||||||
# different betas of the same version will overwrite each other in
|
|
||||||
# installation unless you override the VERSION Make variable.)
|
|
||||||
#
|
|
||||||
# In fact, "make install" or "make bininstall" installs the binary
|
|
||||||
# as python<version> and makes a hard link to python, so when
|
|
||||||
# installing a new version in the future, nothing of the current
|
|
||||||
# version will be lost (except for the man page).
|
|
||||||
#
|
|
||||||
# If recursive makes fail, try invoking make as "make MAKE=make".
|
|
||||||
#
|
|
||||||
# See also the section "Build instructions" in the README file.
|
|
||||||
|
|
||||||
# Substitutions by configure
|
|
||||||
VERSION= @VERSION@
|
|
||||||
srcdir= @srcdir@
|
|
||||||
VPATH= @srcdir@
|
|
||||||
CC= @CC@
|
|
||||||
AR= @AR@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
DEFS= @DEFS@
|
|
||||||
|
|
||||||
# Machine-dependent subdirectories
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
|
|
||||||
# Install prefix for architecture-independent files
|
|
||||||
prefix= @prefix@
|
|
||||||
|
|
||||||
# Install prefix for architecture-dependent files
|
|
||||||
exec_prefix= @exec_prefix@
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
BINDIR= $(exec_prefix)/bin
|
|
||||||
LIBDIR= $(exec_prefix)/lib
|
|
||||||
MANDIR= $(prefix)/man
|
|
||||||
INCLUDEDIR= $(prefix)/include
|
|
||||||
CONFINCLUDEDIR= $(exec_prefix)/include
|
|
||||||
SCRIPTDIR= $(prefix)/lib
|
|
||||||
|
|
||||||
# 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
|
|
||||||
SO= @SO@
|
|
||||||
LDSHARED= @LDSHARED@
|
|
||||||
CCSHARED= @CCSHARED@
|
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
|
||||||
DESTSHARED= $(BINLIBDEST)/lib-dynload
|
|
||||||
|
|
||||||
# Shell used by make (some versions default to the login shell, which is bad)
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
# Executable suffix (.exe on Windows and Mac OS X)
|
|
||||||
EXE= @EXE@
|
|
||||||
|
|
||||||
# Modes for directories, executables and data files created by the
|
|
||||||
# install process. Default to user-only-writable for all file types.
|
|
||||||
DIRMODE= 755
|
|
||||||
EXEMODE= 755
|
|
||||||
FILEMODE= 644
|
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
|
||||||
INSTALL= @srcdir@/install-sh -c
|
|
||||||
INSTALL_PROGRAM=${INSTALL} -m $(EXEMODE)
|
|
||||||
INSTALL_DATA= ${INSTALL} -m $(FILEMODE)
|
|
||||||
|
|
||||||
# Use this to make a link between python$(VERSION) and python in $(BINDIR)
|
|
||||||
LN=@LN@
|
|
||||||
|
|
||||||
# --with-PACKAGE options for configure script
|
|
||||||
# e.g. --with-readline --with-svr5 --with-solaris --with-thread
|
|
||||||
# (see README for an explanation)
|
|
||||||
WITH=
|
|
||||||
|
|
||||||
# Compiler options passed to subordinate makes
|
|
||||||
OPT= @OPT@
|
|
||||||
|
|
||||||
# Subdirectories where to run make recursively
|
|
||||||
SUBDIRS= Parser Grammar Objects Python Modules
|
|
||||||
|
|
||||||
# Other subdirectories
|
|
||||||
SUBDIRSTOO= Include Lib Misc Demo
|
|
||||||
|
|
||||||
# Files and directories to be distributed
|
|
||||||
CONFIGFILES= configure configure.in acconfig.h config.h.in Makefile.in
|
|
||||||
DISTFILES= README ChangeLog $(CONFIGFILES)
|
|
||||||
DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
|
|
||||||
DIST= $(DISTFILES) $(DISTDIRS)
|
|
||||||
|
|
||||||
# Compilation flags for getbuildinfo.c only
|
|
||||||
CFLAGS= $(OPT) -I. $(DEFS)
|
|
||||||
|
|
||||||
LIBRARY= libpython$(VERSION).a
|
|
||||||
LDLIBRARY= @LDLIBRARY@
|
|
||||||
DLLLIBRARY= @DLLLIBRARY@
|
|
||||||
|
|
||||||
# Default target
|
|
||||||
all: $(LIBRARY) python$(EXE) sharedmods
|
|
||||||
|
|
||||||
# Build the interpreter
|
|
||||||
python$(EXE): $(LIBRARY) buildno Modules/python.o
|
|
||||||
expr `cat buildno` + 1 >buildno1
|
|
||||||
mv -f buildno1 buildno
|
|
||||||
$(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
|
|
||||||
$(srcdir)/Modules/getbuildinfo.c
|
|
||||||
$(AR) cr $(LIBRARY) getbuildinfo.o
|
|
||||||
$(RANLIB) $(LIBRARY)
|
|
||||||
@MAKE_LDLIBRARY@
|
|
||||||
cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
|
|
||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
|
|
||||||
LIBRARY=../$(LDLIBRARY) link
|
|
||||||
|
|
||||||
Modules/python.o: $(srcdir)/Modules/python.c
|
|
||||||
cd Modules; $(MAKE) OPT="$(OPT)" python.o
|
|
||||||
|
|
||||||
buildno:
|
|
||||||
echo 0 >buildno
|
|
||||||
|
|
||||||
platform: python$(EXE)
|
|
||||||
./python$(EXE) -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
|
|
||||||
|
|
||||||
# Build the shared modules
|
|
||||||
sharedmods: python$(EXE)
|
|
||||||
./python$(EXE) $(srcdir)/setup.py build
|
|
||||||
# Old rules for building shared modules using makesetup
|
|
||||||
oldsharedmods:
|
|
||||||
cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
|
|
||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
|
|
||||||
sharedmods
|
|
||||||
|
|
||||||
# Build the library
|
|
||||||
$(LIBRARY): $(SUBDIRS)
|
|
||||||
if test ! -f $(LIBRARY); \
|
|
||||||
then for i in $(SUBDIRS); do rm -f $$i/add2lib; done; true; \
|
|
||||||
else true; fi
|
|
||||||
for i in $(SUBDIRS); do \
|
|
||||||
(cd $$i; $(MAKE) VERSION="$(VERSION)" add2lib); done
|
|
||||||
|
|
||||||
# This rule is only here for DG/UX and BeOS!!!
|
|
||||||
libpython$(VERSION).so: $(LIBRARY)
|
|
||||||
case `uname -s | tr -d '/ ' | tr '[A-Z]' '[a-z]'` in \
|
|
||||||
*dgux*) \
|
|
||||||
test -d dgux || mkdir dgux; \
|
|
||||||
(cd dgux;ar x ../$^;ld -G -o ../$@ * ); \
|
|
||||||
/bin/rm -rf ./dgux \
|
|
||||||
;; \
|
|
||||||
beos) \
|
|
||||||
$(srcdir)/BeOS/ar-fake so $(LIBRARY) $@ \
|
|
||||||
;; \
|
|
||||||
esac
|
|
||||||
|
|
||||||
# This rule is here for OPENSTEP/Rhapsody/MacOSX
|
|
||||||
libpython$(VERSION).dylib: $(LIBRARY)
|
|
||||||
libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) -framework System @LIBTOOL_CRUFT@
|
|
||||||
|
|
||||||
$(SUBDIRS): Makefiles
|
|
||||||
|
|
||||||
Grammar:
|
|
||||||
cd Grammar ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
|
|
||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
|
|
||||||
|
|
||||||
Parser:
|
|
||||||
cd Parser ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
|
|
||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
|
|
||||||
|
|
||||||
Python:
|
|
||||||
cd Python ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
|
|
||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
|
|
||||||
|
|
||||||
Objects:
|
|
||||||
cd Objects ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
|
|
||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
|
|
||||||
|
|
||||||
Modules: Parser Python Objects
|
|
||||||
cd Modules ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
|
|
||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
|
|
||||||
|
|
||||||
# Test the interpreter (twice, once without .pyc files, once with)
|
|
||||||
TESTOPTS= -l
|
|
||||||
TESTPROG= $(srcdir)/Lib/test/regrtest.py
|
|
||||||
TESTPYTHON= ./python$(EXE) -tt
|
|
||||||
test: all platform
|
|
||||||
-rm -f $(srcdir)/Lib/test/*.py[co]
|
|
||||||
-PYTHONPATH=./build/lib.`cat platform` $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
|
|
||||||
PYTHONPATH=./build/lib.`cat platform` $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
|
|
||||||
|
|
||||||
# Install everything
|
|
||||||
install: altinstall bininstall maninstall
|
|
||||||
|
|
||||||
# Install almost everything without disturbing previous versions
|
|
||||||
altinstall: altbininstall libinstall inclinstall libainstall sharedinstall
|
|
||||||
|
|
||||||
# Install the interpreter (by creating a hard link to python$(VERSION))
|
|
||||||
bininstall: altbininstall
|
|
||||||
-if test -f $(BINDIR)/python$(EXE); \
|
|
||||||
then rm -f $(BINDIR)/python$(EXE); \
|
|
||||||
else true; \
|
|
||||||
fi
|
|
||||||
(cd $(BINDIR); $(LN) python$(VERSION)$(EXE) python$(EXE))
|
|
||||||
|
|
||||||
# Install the interpreter with $(VERSION) affixed
|
|
||||||
# This goes into $(exec_prefix)
|
|
||||||
altbininstall: python$(EXE)
|
|
||||||
@for i in $(BINDIR); \
|
|
||||||
do \
|
|
||||||
if test ! -d $$i; then \
|
|
||||||
echo "Creating directory $$i"; \
|
|
||||||
mkdir $$i; \
|
|
||||||
chmod $(DIRMODE) $$i; \
|
|
||||||
else true; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
$(INSTALL_PROGRAM) python$(EXE) $(BINDIR)/python$(VERSION)$(EXE)
|
|
||||||
if test -f libpython$(VERSION).so; then \
|
|
||||||
$(INSTALL_DATA) libpython$(VERSION).so $(LIBDIR); \
|
|
||||||
else true; \
|
|
||||||
fi
|
|
||||||
if test -f "$(DLLLIBRARY)"; then \
|
|
||||||
$(INSTALL_DATA) $(DLLLIBRARY) $(BINDIR); \
|
|
||||||
else true; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install the manual page
|
|
||||||
maninstall:
|
|
||||||
@for i in $(MANDIR) $(MANDIR)/man1; \
|
|
||||||
do \
|
|
||||||
if test ! -d $$i; then \
|
|
||||||
echo "Creating directory $$i"; \
|
|
||||||
mkdir $$i; \
|
|
||||||
chmod $(DIRMODE) $$i; \
|
|
||||||
else true; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
$(INSTALL_DATA) $(srcdir)/Misc/python.man \
|
|
||||||
$(MANDIR)/man1/python.1
|
|
||||||
|
|
||||||
# Install the library
|
|
||||||
PLATDIR= plat-$(MACHDEP)
|
|
||||||
MACHDEPS= $(PLATDIR)
|
|
||||||
XMLLIBSUBDIRS= xml xml/dom xml/parsers xml/sax
|
|
||||||
LIBSUBDIRS= lib-old lib-tk site-packages test test/output encodings \
|
|
||||||
distutils distutils/command $(XMLLIBSUBDIRS) curses $(MACHDEPS)
|
|
||||||
libinstall: python $(srcdir)/Lib/$(PLATDIR)
|
|
||||||
@for i in $(SCRIPTDIR) $(LIBDEST); \
|
|
||||||
do \
|
|
||||||
if test ! -d $$i; then \
|
|
||||||
echo "Creating directory $$i"; \
|
|
||||||
mkdir $$i; \
|
|
||||||
chmod $(DIRMODE) $$i; \
|
|
||||||
else true; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
@for d in $(LIBSUBDIRS); \
|
|
||||||
do \
|
|
||||||
a=$(srcdir)/Lib/$$d; \
|
|
||||||
if test ! -d $$a; then continue; else true; fi; \
|
|
||||||
b=$(LIBDEST)/$$d; \
|
|
||||||
if test ! -d $$b; then \
|
|
||||||
echo "Creating directory $$b"; \
|
|
||||||
mkdir $$b; \
|
|
||||||
chmod $(DIRMODE) $$b; \
|
|
||||||
else true; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
@for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc; \
|
|
||||||
do \
|
|
||||||
if test -x $$i; then \
|
|
||||||
$(INSTALL_PROGRAM) $$i $(LIBDEST); \
|
|
||||||
echo $(INSTALL_PROGRAM) $$i $(LIBDEST); \
|
|
||||||
else \
|
|
||||||
$(INSTALL_DATA) $$i $(LIBDEST); \
|
|
||||||
echo $(INSTALL_DATA) $$i $(LIBDEST); \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
@for d in $(LIBSUBDIRS); \
|
|
||||||
do \
|
|
||||||
a=$(srcdir)/Lib/$$d; \
|
|
||||||
if test ! -d $$a; then continue; else true; fi; \
|
|
||||||
b=$(LIBDEST)/$$d; \
|
|
||||||
for i in $$a/*; \
|
|
||||||
do \
|
|
||||||
case $$i in \
|
|
||||||
*CVS) ;; \
|
|
||||||
*.py[co]) ;; \
|
|
||||||
*.orig) ;; \
|
|
||||||
*~) ;; \
|
|
||||||
*) \
|
|
||||||
if test -d $$i; then continue; fi; \
|
|
||||||
if test -x $$i; then \
|
|
||||||
echo $(INSTALL_PROGRAM) $$i $$b; \
|
|
||||||
$(INSTALL_PROGRAM) $$i $$b; \
|
|
||||||
else \
|
|
||||||
echo $(INSTALL_DATA) $$i $$b; \
|
|
||||||
$(INSTALL_DATA) $$i $$b; \
|
|
||||||
fi;; \
|
|
||||||
esac; \
|
|
||||||
done; \
|
|
||||||
done
|
|
||||||
$(INSTALL_DATA) $(srcdir)/LICENSE $(LIBDEST)/LICENSE.txt
|
|
||||||
PYTHONPATH=$(LIBDEST) \
|
|
||||||
./python$(EXE) -tt $(LIBDEST)/compileall.py $(LIBDEST)
|
|
||||||
PYTHONPATH=$(LIBDEST) \
|
|
||||||
./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST)
|
|
||||||
|
|
||||||
# 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 EXE; EXE="$(EXE)"; \
|
|
||||||
cd $(srcdir)/Lib/$(PLATDIR); ./regen
|
|
||||||
|
|
||||||
# Install the include files
|
|
||||||
INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
|
|
||||||
inclinstall:
|
|
||||||
@for i in $(INCLDIRSTOMAKE); \
|
|
||||||
do \
|
|
||||||
if test ! -d $$i; then \
|
|
||||||
echo "Creating directory $$i"; \
|
|
||||||
mkdir $$i; \
|
|
||||||
chmod $(DIRMODE) $$i; \
|
|
||||||
else true; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
@for i in $(srcdir)/Include/*.h; \
|
|
||||||
do \
|
|
||||||
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
|
|
||||||
$(INSTALL_DATA) $$i $(INCLUDEPY); \
|
|
||||||
done
|
|
||||||
$(INSTALL_DATA) config.h $(CONFINCLUDEPY)/config.h
|
|
||||||
|
|
||||||
# Install the library and miscellaneous stuff needed for extending/embedding
|
|
||||||
# This goes into $(exec_prefix)
|
|
||||||
LIBPL= $(LIBP)/config
|
|
||||||
libainstall: all
|
|
||||||
@for i in $(LIBDIR) $(LIBP) $(LIBPL); \
|
|
||||||
do \
|
|
||||||
if test ! -d $$i; then \
|
|
||||||
echo "Creating directory $$i"; \
|
|
||||||
mkdir $$i; \
|
|
||||||
chmod $(DIRMODE) $$i; \
|
|
||||||
else true; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
@if test -d $(LDLIBRARY); then :; else \
|
|
||||||
$(INSTALL_DATA) $(LDLIBRARY) $(LIBPL)/$(LDLIBRARY) ; \
|
|
||||||
$(RANLIB) $(LIBPL)/$(LDLIBRARY) ; \
|
|
||||||
fi
|
|
||||||
$(INSTALL_DATA) Modules/config.c $(LIBPL)/config.c
|
|
||||||
$(INSTALL_DATA) Modules/python.o $(LIBPL)/python.o
|
|
||||||
$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(LIBPL)/config.c.in
|
|
||||||
$(INSTALL_DATA) Modules/Makefile $(LIBPL)/Makefile
|
|
||||||
$(INSTALL_DATA) Modules/Setup $(LIBPL)/Setup
|
|
||||||
$(INSTALL_DATA) Modules/Setup.local $(LIBPL)/Setup.local
|
|
||||||
$(INSTALL_DATA) Modules/Setup.config $(LIBPL)/Setup.config
|
|
||||||
$(INSTALL_PROGRAM) $(srcdir)/Modules/makesetup $(LIBPL)/makesetup
|
|
||||||
$(INSTALL_PROGRAM) $(srcdir)/install-sh $(LIBPL)/install-sh
|
|
||||||
$(INSTALL_DATA) $(srcdir)/Misc/Makefile.pre.in $(LIBPL)/Makefile.pre.in
|
|
||||||
@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 \
|
|
||||||
$(LIBPL)/python.exp; \
|
|
||||||
echo; echo "$(LIBPL)/python.exp"; \
|
|
||||||
$(INSTALL_PROGRAM) $(srcdir)/Modules/makexp_aix \
|
|
||||||
$(LIBPL)/makexp_aix; \
|
|
||||||
echo "$(LIBPL)/makexp_aix"; \
|
|
||||||
$(INSTALL_PROGRAM) $(srcdir)/Modules/ld_so_aix \
|
|
||||||
$(LIBPL)/ld_so_aix; \
|
|
||||||
echo "$(LIBPL)/ld_so_aix"; \
|
|
||||||
echo; echo "See Misc/AIX-NOTES for details."; \
|
|
||||||
else true; \
|
|
||||||
fi
|
|
||||||
@case "$(MACHDEP)" in beos*) \
|
|
||||||
echo; echo "Installing support files for building shared extension modules on BeOS:"; \
|
|
||||||
$(INSTALL_DATA) BeOS/README $(LIBPL)/README; \
|
|
||||||
echo; echo "$(LIBPL)/README"; \
|
|
||||||
$(INSTALL_DATA) BeOS/README.readline-2.2 $(LIBPL)/README.readline-2.2; \
|
|
||||||
echo "$(LIBPL)/README.readline-2.2"; \
|
|
||||||
$(INSTALL_PROGRAM) BeOS/ar-fake $(LIBPL)/ar-fake; \
|
|
||||||
echo "$(LIBPL)/ar-fake"; \
|
|
||||||
$(INSTALL_PROGRAM) BeOS/linkmodule $(LIBPL)/linkmodule; \
|
|
||||||
echo "$(LIBPL)/linkmodule"; \
|
|
||||||
echo; echo "See BeOS/README for details."; \
|
|
||||||
;; \
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Install the dynamically loadable modules
|
|
||||||
# This goes into $(exec_prefix)
|
|
||||||
sharedinstall:
|
|
||||||
./python$(EXE) $(srcdir)/setup.py install
|
|
||||||
# Old rules for installing shared modules built using makesetup
|
|
||||||
oldsharedinstall:
|
|
||||||
cd Modules; $(MAKE) \
|
|
||||||
OPT="$(OPT)" \
|
|
||||||
VERSION="$(VERSION)" \
|
|
||||||
SO="$(SO)" \
|
|
||||||
LDSHARED="$(LDSHARED)" \
|
|
||||||
CCSHARED="$(CCSHARED)" \
|
|
||||||
LINKFORSHARED="$(LINKFORSHARED)" \
|
|
||||||
DESTSHARED="$(DESTSHARED)" \
|
|
||||||
prefix="$(prefix)" \
|
|
||||||
exec_prefix="$(exec_prefix)" \
|
|
||||||
sharedinstall
|
|
||||||
|
|
||||||
# Build the sub-Makefiles
|
|
||||||
Makefiles: config.status Modules/Makefile.pre
|
|
||||||
(cd Modules; $(MAKE) -f Makefile.pre Makefile)
|
|
||||||
@for i in . $(SUBDIRS); do \
|
|
||||||
(echo making Makefile in subdirectory $$i; cd $$i; \
|
|
||||||
$(MAKE) Makefile); \
|
|
||||||
done
|
|
||||||
-(rm -f Modules/hassignal; cd Modules; $(MAKE) hassignal)
|
|
||||||
|
|
||||||
# Build the intermediate Makefile in Modules
|
|
||||||
Modules/Makefile.pre: config.status
|
|
||||||
$(SHELL) config.status
|
|
||||||
|
|
||||||
# Build the toplevel Makefile
|
|
||||||
Makefile: Makefile.in config.status
|
|
||||||
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) config.status
|
|
||||||
|
|
||||||
# Run the configure script. If config.status already exists,
|
|
||||||
# call it with the --recheck argument, which reruns configure with the
|
|
||||||
# same options as it was run last time; otherwise run the configure
|
|
||||||
# script with options taken from the $(WITH) variable
|
|
||||||
config.status: $(srcdir)/configure
|
|
||||||
if test -f config.status; \
|
|
||||||
then $(SHELL) config.status --recheck; \
|
|
||||||
$(SHELL) config.status; \
|
|
||||||
else $(SHELL) $(srcdir)/configure $(WITH); \
|
|
||||||
fi
|
|
||||||
|
|
||||||
.PRECIOUS: config.status python$(EXE)
|
|
||||||
|
|
||||||
# Rerun configure with the same options as it was run last time,
|
|
||||||
# provided the config.status script exists
|
|
||||||
recheck:
|
|
||||||
$(SHELL) config.status --recheck
|
|
||||||
$(SHELL) config.status
|
|
||||||
|
|
||||||
# Rebuild the configure script from configure.in; also rebuild config.h.in
|
|
||||||
autoconf:
|
|
||||||
(cd $(srcdir); autoconf)
|
|
||||||
(cd $(srcdir); autoheader)
|
|
||||||
|
|
||||||
# Create a tags file for vi
|
|
||||||
tags::
|
|
||||||
cd $(srcdir); \
|
|
||||||
ctags -w -t Include/*.h; \
|
|
||||||
for i in $(SUBDIRS); do ctags -w -t -a $$i/*.[ch]; \
|
|
||||||
done; \
|
|
||||||
sort tags -o tags
|
|
||||||
|
|
||||||
# Create a tags file for GNU Emacs
|
|
||||||
TAGS::
|
|
||||||
cd $(srcdir); \
|
|
||||||
etags Include/*.h; \
|
|
||||||
for i in $(SUBDIRS); do etags -a $$i/*.[ch]; done
|
|
||||||
|
|
||||||
# Add dependencies to sub-Makefiles
|
|
||||||
depend:
|
|
||||||
@for i in $(SUBDIRS); do \
|
|
||||||
(echo making depend in subdirectory $$i; cd $$i; \
|
|
||||||
$(MAKE) depend); \
|
|
||||||
done
|
|
||||||
|
|
||||||
# Sanitation targets -- clean leaves libraries, executables and tags
|
|
||||||
# files, which clobber removes those as well
|
|
||||||
|
|
||||||
localclean:
|
|
||||||
-rm -f core *~ [@,#]* *.old *.orig *.rej
|
|
||||||
-rm -rf build
|
|
||||||
|
|
||||||
clean: localclean
|
|
||||||
-for i in $(SUBDIRS); do \
|
|
||||||
if test -d $$i; then \
|
|
||||||
(echo making clean in subdirectory $$i; cd $$i; \
|
|
||||||
if test -f Makefile; \
|
|
||||||
then $(MAKE) clean; \
|
|
||||||
else $(MAKE) -f Makefile.*in clean; \
|
|
||||||
fi); \
|
|
||||||
else true; fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
localclobber: localclean
|
|
||||||
-rm -f tags TAGS python$(EXE) $(LIBRARY) $(LDLIBRARY) *.o
|
|
||||||
-rm -f config.log config.cache config.h
|
|
||||||
|
|
||||||
clobber: localclobber
|
|
||||||
-for i in $(SUBDIRS); do \
|
|
||||||
if test -d $$i; then \
|
|
||||||
(echo clobbering subdirectory $$i; cd $$i; \
|
|
||||||
if test -f Makefile; \
|
|
||||||
then $(MAKE) clobber; \
|
|
||||||
else $(MAKE) -f $(srcdir)/Makefile*.in clobber; \
|
|
||||||
fi); \
|
|
||||||
else true; fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
# Make things extra clean, before making a distribution:
|
|
||||||
# remove all generated files, even Makefile[.pre]
|
|
||||||
distclean: clobber
|
|
||||||
-$(MAKE) -f $(srcdir)/Makefile.in \
|
|
||||||
SUBDIRS="$(SUBDIRSTOO)" clobber
|
|
||||||
-rm -f config.status config.log config.cache config.h Makefile
|
|
||||||
-rm -f buildno platform
|
|
||||||
-rm -f Modules/Makefile
|
|
||||||
-for i in $(SUBDIRS) $(SUBDIRSTOO); do \
|
|
||||||
for f in $$i/*.in; do \
|
|
||||||
f=`basename "$$f" .in`; \
|
|
||||||
if test "$$f" != "*"; then \
|
|
||||||
echo rm -f "$$i/$$f"; \
|
|
||||||
rm -f "$$i/$$f"; \
|
|
||||||
fi; \
|
|
||||||
done; \
|
|
||||||
done
|
|
||||||
|
|
||||||
# Check for smelly exported symbols (not starting with Py/_Py)
|
|
||||||
smelly: all
|
|
||||||
for i in $(SUBDIRS); do \
|
|
||||||
echo --- $$i ---; \
|
|
||||||
nm -p $$i/lib$$i.a | \
|
|
||||||
sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
|
|
||||||
done
|
|
||||||
|
|
||||||
# Find files with funny names
|
|
||||||
funny:
|
|
||||||
find $(DISTDIRS) -type d \
|
|
||||||
-o -name '*.[chs]' \
|
|
||||||
-o -name '*.py' \
|
|
||||||
-o -name '*.doc' \
|
|
||||||
-o -name '*.sty' \
|
|
||||||
-o -name '*.bib' \
|
|
||||||
-o -name '*.dat' \
|
|
||||||
-o -name '*.el' \
|
|
||||||
-o -name '*.fd' \
|
|
||||||
-o -name '*.in' \
|
|
||||||
-o -name '*.tex' \
|
|
||||||
-o -name '*,[vpt]' \
|
|
||||||
-o -name 'Setup' \
|
|
||||||
-o -name 'Setup.*' \
|
|
||||||
-o -name README \
|
|
||||||
-o -name Makefile \
|
|
||||||
-o -name ChangeLog \
|
|
||||||
-o -name Repository \
|
|
||||||
-o -name Root \
|
|
||||||
-o -name Entries \
|
|
||||||
-o -name Tag \
|
|
||||||
-o -name tags \
|
|
||||||
-o -name TAGS \
|
|
||||||
-o -name .cvsignore \
|
|
||||||
-o -name MANIFEST \
|
|
||||||
-o -print
|
|
||||||
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
|
@ -1,10 +0,0 @@
|
|||||||
all:
|
|
||||||
@echo Nothing to make in this directory.
|
|
||||||
|
|
||||||
clean:
|
|
||||||
find . '(' -name '*.pyc' -o -name core -o -name '*~' \
|
|
||||||
-o -name '[@,#]*' -o -name '*.old' \
|
|
||||||
-o -name '*.orig' -o -name '*.rej' ')' \
|
|
||||||
-print -exec rm -f {} ';'
|
|
||||||
|
|
||||||
clobber: clean
|
|
@ -1,266 +0,0 @@
|
|||||||
# META-NOTE: this note is different from the note in the other Makefiles!
|
|
||||||
# NOTE: Makefile.pre.in is converted into Makefile.pre by the configure
|
|
||||||
# script in the toplevel directory or by ../config.status.
|
|
||||||
# Makefile.pre is converted into Makefile by running the makesetup
|
|
||||||
# script in the source directory. Once Makefile exists, it can be
|
|
||||||
# brought up to date by running "make Makefile". (The makesetup also
|
|
||||||
# creates config.c from config.c.in in the source directory.)
|
|
||||||
|
|
||||||
# === Variables set by makesetup ===
|
|
||||||
|
|
||||||
MODOBJS= _MODOBJS_
|
|
||||||
MODLIBS= _MODLIBS_
|
|
||||||
|
|
||||||
# === Variables set by configure ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
srcdir= @srcdir@
|
|
||||||
VPATH= @srcdir@
|
|
||||||
|
|
||||||
CXX= @CXX@
|
|
||||||
CC= @CC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
AR= @AR@
|
|
||||||
|
|
||||||
OPT= @OPT@
|
|
||||||
LDFLAGS= @LDFLAGS@
|
|
||||||
LDLAST= @LDLAST@
|
|
||||||
SGI_ABI= @SGI_ABI@
|
|
||||||
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
LIBM= @LIBM@
|
|
||||||
LIBC= @LIBC@
|
|
||||||
|
|
||||||
# Machine-dependent subdirectories
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
|
|
||||||
# Install prefix for architecture-independent files
|
|
||||||
prefix= @prefix@
|
|
||||||
|
|
||||||
# Install prefix for architecture-dependent files
|
|
||||||
exec_prefix= @exec_prefix@
|
|
||||||
|
|
||||||
# Executable suffix (.exe on Windows and Mac OS X)
|
|
||||||
EXE= @EXE@
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
BINDIR= $(exec_prefix)/bin
|
|
||||||
LIBDIR= $(exec_prefix)/lib
|
|
||||||
MANDIR= $(prefix)/man
|
|
||||||
INCLUDEDIR= $(prefix)/include
|
|
||||||
SCRIPTDIR= $(prefix)/lib
|
|
||||||
|
|
||||||
# Detailed destination directories
|
|
||||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
|
||||||
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
|
|
||||||
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
|
|
||||||
LIBP= $(LIBDIR)/python$(VERSION)
|
|
||||||
|
|
||||||
# Symbols used for using shared libraries
|
|
||||||
SO= @SO@
|
|
||||||
LDSHARED= @LDSHARED@
|
|
||||||
CCSHARED= @CCSHARED@
|
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
|
||||||
DESTSHARED= $(BINLIBDEST)/lib-dynload
|
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
|
||||||
INSTALL= @srcdir@/../install-sh -c
|
|
||||||
INSTALL_PROGRAM=${INSTALL} -m 755
|
|
||||||
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
|
|
||||||
|
|
||||||
# === Variables that are customizable by hand or by inclusion in Setup ===
|
|
||||||
|
|
||||||
LINKCC= @LINKCC@
|
|
||||||
INCLDIR= $(srcdir)/../Include
|
|
||||||
CONFIGINCLDIR= ..
|
|
||||||
CFLAGS= $(OPT) -I$(INCLDIR) -I$(CONFIGINCLDIR) $(DEFS)
|
|
||||||
|
|
||||||
MKDEP= mkdep
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
MAKESETUP= $(srcdir)/makesetup
|
|
||||||
|
|
||||||
# (The makesetup script inserts all variable definitions
|
|
||||||
# found in the Setup file just below the following line.
|
|
||||||
# This means that the Setup file can override any of the definitions
|
|
||||||
# given before this point, but not any given below.
|
|
||||||
# The script insert the definitions in reverse order,
|
|
||||||
# for the benefits of independent extensions.)
|
|
||||||
# === Definitions added by makesetup ===
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
FIXOBJS= config.o getpath.o main.o getbuildinfo.o
|
|
||||||
OBJS= $(MODOBJS) $(FIXOBJS)
|
|
||||||
|
|
||||||
#MAINOBJ= python.o
|
|
||||||
MAINOBJ= @MAINOBJ@
|
|
||||||
|
|
||||||
SYSLIBS= $(LIBM) $(LIBC)
|
|
||||||
|
|
||||||
LIBRARY= ../libpython$(VERSION).a
|
|
||||||
LDLIBRARY= ../@LDLIBRARY@
|
|
||||||
DLLLIBRARY= @DLLLIBRARY@
|
|
||||||
|
|
||||||
# === Rules ===
|
|
||||||
|
|
||||||
all: $(OBJS)
|
|
||||||
|
|
||||||
# This target is used by the master Makefile to add the objects to the library.
|
|
||||||
# To deal with the conflict between signalmodule.o and
|
|
||||||
# sigcheck.o+intrcheck.o, we remove the latter two if we have the former.
|
|
||||||
add2lib: $(OBJS)
|
|
||||||
-if test -f hassignal; \
|
|
||||||
then echo removing sigcheck.o intrcheck.o; \
|
|
||||||
$(AR) d $(LIBRARY) sigcheck.o intrcheck.o 2>/dev/null; \
|
|
||||||
else echo leaving sigcheck.o intrcheck.o in; fi
|
|
||||||
$(AR) cr $(LIBRARY) $(OBJS)
|
|
||||||
touch add2lib
|
|
||||||
|
|
||||||
# This target is used by the master Makefile to link the final binary.
|
|
||||||
link: $(MAINOBJ)
|
|
||||||
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) $(MAINOBJ) \
|
|
||||||
$(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python$(EXE) $(LDLAST)
|
|
||||||
mv python$(EXE) ../python$(EXE)
|
|
||||||
|
|
||||||
# This rule builds the Cygwin Python DLL
|
|
||||||
$(DLLLIBRARY): $(LIBRARY)
|
|
||||||
test -d cygwin || mkdir cygwin
|
|
||||||
(cd cygwin; ar x ../$^)
|
|
||||||
dlltool --export-all --output-def $(basename $@).def cygwin/*.o
|
|
||||||
$(LDSHARED) -Wl,--out-implib=$(LDLIBRARY) -o $@ $(basename $@).def cygwin/*.o $(MODLIBS) $(LIBS) $(SYSLIBS)
|
|
||||||
rm -fr cygwin
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -f *.o python$(EXE) core *~ [@,#]* *.old *.orig *.rej
|
|
||||||
-rm -f add2lib hassignal
|
|
||||||
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS config.c Makefile.pre
|
|
||||||
-rm -f *.so *.sl so_locations
|
|
||||||
|
|
||||||
getpath.o: getpath.c Makefile
|
|
||||||
$(CC) -c $(CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
|
|
||||||
-DPREFIX='"$(prefix)"' \
|
|
||||||
-DEXEC_PREFIX='"$(exec_prefix)"' \
|
|
||||||
-DVERSION='"$(VERSION)"' \
|
|
||||||
-DVPATH='"$(VPATH)"' \
|
|
||||||
$(srcdir)/getpath.c
|
|
||||||
|
|
||||||
# When the configuration changes, we remove the library, so that it
|
|
||||||
# gets remade from scratch; this ensures to remove modules that are no
|
|
||||||
# longer pertinent (but that were in a previous configuration).
|
|
||||||
config.c Makefile: Makefile.pre config.c.in $(MAKESETUP)
|
|
||||||
config.c Makefile: Setup.config Setup Setup.local
|
|
||||||
config.c Makefile:
|
|
||||||
-rm -rf $(LIBRARY)
|
|
||||||
$(SHELL) $(MAKESETUP) Setup.config Setup.local Setup
|
|
||||||
|
|
||||||
hassignal:
|
|
||||||
-rm -f hassignal
|
|
||||||
-for i in $(OBJS); do \
|
|
||||||
if test "$$i" = "signalmodule.o"; then \
|
|
||||||
echo yes >hassignal; break; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
Setup: $(srcdir)/Setup.dist
|
|
||||||
@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 "-----------------------------------------------";
|
|
||||||
|
|
||||||
|
|
||||||
Setup.local:
|
|
||||||
echo "# Edit this file for local setup changes" >Setup.local
|
|
||||||
|
|
||||||
Makefile.pre: Makefile.pre.in ../config.status
|
|
||||||
(cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
|
|
||||||
$(SHELL) config.status)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
$(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
|
|
||||||
sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
|
|
||||||
|
|
||||||
.PRECIOUS: ../python$(EXE)
|
|
||||||
|
|
||||||
glmodule.c: $(srcdir)/cgen.py $(srcdir)/cstubs
|
|
||||||
python $(srcdir)/cgen.py <$(srcdir)/cstubs >glmodule.c
|
|
||||||
|
|
||||||
almodule.o: almodule.c
|
|
||||||
arraymodule.o: arraymodule.c
|
|
||||||
audioop.o: audioop.c
|
|
||||||
cdmodule.o: cdmodule.c
|
|
||||||
cgensupport.o: cgensupport.c
|
|
||||||
clmodule.o: clmodule.c
|
|
||||||
_codecsmodule.o: _codecsmodule.c
|
|
||||||
dbmmodule.o: dbmmodule.c
|
|
||||||
errnomodule.o: errnomodule.c
|
|
||||||
fcntlmodule.o: fcntlmodule.c
|
|
||||||
flmodule.o: flmodule.c
|
|
||||||
fmmodule.o: fmmodule.c
|
|
||||||
glmodule.o: glmodule.c
|
|
||||||
imageop.o: imageop.c
|
|
||||||
imgfile.o: imgfile.c
|
|
||||||
main.o: main.c
|
|
||||||
mathmodule.o: mathmodule.c
|
|
||||||
md5c.o: md5c.c
|
|
||||||
md5module.o: md5module.c
|
|
||||||
mpzmodule.o: mpzmodule.c
|
|
||||||
nismodule.o: nismodule.c
|
|
||||||
operator.o: operator.c
|
|
||||||
parsermodule.o: parsermodule.c
|
|
||||||
posixmodule.o: posixmodule.c
|
|
||||||
pwdmodule.o: pwdmodule.c
|
|
||||||
regexmodule.o: regexmodule.c
|
|
||||||
regexpr.o: regexpr.c
|
|
||||||
resource.o: resource.c
|
|
||||||
rgbimgmodule.o: rgbimgmodule.c
|
|
||||||
rotormodule.o: rotormodule.c
|
|
||||||
selectmodule.o: selectmodule.c
|
|
||||||
sgimodule.o: sgimodule.c
|
|
||||||
socketmodule.o: socketmodule.c
|
|
||||||
stdwinmodule.o: stdwinmodule.c
|
|
||||||
stropmodule.o: stropmodule.c
|
|
||||||
structmodule.o: structmodule.c
|
|
||||||
sunaudiodev.o: sunaudiodev.c
|
|
||||||
svmodule.o: svmodule.c
|
|
||||||
threadmodule.o: threadmodule.c
|
|
||||||
timemodule.o: timemodule.c
|
|
||||||
timingmodule.o: timingmodule.c
|
|
||||||
unicodedata.o: unicodedata.c unicodedata_db.h unicodename_db.h
|
|
||||||
xxmodule.o: xxmodule.c
|
|
||||||
yuvconvert.o: yuvconvert.c
|
|
||||||
|
|
||||||
# Rules to build and install all shared modules
|
|
||||||
sharedmods: $(SHAREDMODS)
|
|
||||||
sharedinstall: $(DESTSHARED) $(SHAREDMODS)
|
|
||||||
-for i in X $(SHAREDMODS); do \
|
|
||||||
if test $$i != X; \
|
|
||||||
then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
|
|
||||||
|
|
||||||
$(DESTSHARED):
|
|
||||||
@for i in $(DESTDIRS); \
|
|
||||||
do \
|
|
||||||
if test ! -d $$i; then \
|
|
||||||
echo "Creating directory $$i"; \
|
|
||||||
mkdir $$i; \
|
|
||||||
chmod 755 $$i; \
|
|
||||||
else true; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
ccpython.o: ccpython.cc
|
|
||||||
$(CXX) $(CFLAGS) -c $*.cc
|
|
||||||
|
|
||||||
# Stuff is appended here by makesetup and make depend
|
|
@ -1,104 +0,0 @@
|
|||||||
# NOTE: Makefile.in is converted into Makefile by the configure script
|
|
||||||
# in the parent directory. Once configure has run, you can recreate
|
|
||||||
# the Makefile by running just config.status.
|
|
||||||
|
|
||||||
# === Variables set by config.stat ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
|
|
||||||
srcdir= @srcdir@
|
|
||||||
VPATH= @srcdir@
|
|
||||||
|
|
||||||
CC= @CC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
AR= @AR@
|
|
||||||
|
|
||||||
DEFS= @DEFS@
|
|
||||||
|
|
||||||
|
|
||||||
# === Other things that are customizable but not by configure ===
|
|
||||||
|
|
||||||
INCLDIR= $(srcdir)/../Include
|
|
||||||
OPT= @OPT@
|
|
||||||
CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
|
|
||||||
|
|
||||||
MKDEP= mkdep
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
OBJS= abstract.o bufferobject.o \
|
|
||||||
classobject.o cobject.o complexobject.o \
|
|
||||||
fileobject.o floatobject.o \
|
|
||||||
frameobject.o funcobject.o intobject.o listobject.o \
|
|
||||||
longobject.o dictobject.o methodobject.o \
|
|
||||||
moduleobject.o object.o rangeobject.o \
|
|
||||||
sliceobject.o stringobject.o \
|
|
||||||
tupleobject.o typeobject.o \
|
|
||||||
unicodeobject.o unicodectype.o
|
|
||||||
|
|
||||||
SRCS= abstract.c bufferobject.c \
|
|
||||||
classobject.c cobject.c complexobject.c \
|
|
||||||
fileobject.c floatobject.c \
|
|
||||||
frameobject.c funcobject.c intobject.c listobject.c \
|
|
||||||
longobject.c dictobject.c methodobject.c \
|
|
||||||
moduleobject.c object.c rangeobject.c \
|
|
||||||
sliceobject.c stringobject.c \
|
|
||||||
tupleobject.c typeobject.c \
|
|
||||||
unicodeobject.c unicodectype.c
|
|
||||||
|
|
||||||
LIBRARY= ../libpython$(VERSION).a
|
|
||||||
|
|
||||||
# === Rules ===
|
|
||||||
|
|
||||||
all: $(OBJS)
|
|
||||||
|
|
||||||
# This target is used by the master Makefile to add the objects to the library
|
|
||||||
add2lib: $(OBJS)
|
|
||||||
$(AR) cr $(LIBRARY) $(OBJS)
|
|
||||||
touch add2lib
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
|
|
||||||
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in ../config.status
|
|
||||||
(cd ..; CONFIG_FILES=Objects/Makefile CONFIG_HEADERS= \
|
|
||||||
$(SHELL) config.status)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
$(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
|
|
||||||
sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
|
|
||||||
|
|
||||||
.PRECIOUS: Makefile
|
|
||||||
|
|
||||||
abstract.o: abstract.c
|
|
||||||
bufferobject.o: bufferobject.c
|
|
||||||
classobject.o: classobject.c
|
|
||||||
cobject.o: cobject.c
|
|
||||||
complexobject.o: complexobject.c
|
|
||||||
fileobject.o: fileobject.c
|
|
||||||
floatobject.o: floatobject.c
|
|
||||||
frameobject.o: frameobject.c
|
|
||||||
funcobject.o: funcobject.c
|
|
||||||
intobject.o: intobject.c
|
|
||||||
listobject.o: listobject.c
|
|
||||||
longobject.o: longobject.c
|
|
||||||
dictobject.o: dictobject.c
|
|
||||||
methodobject.o: methodobject.c
|
|
||||||
moduleobject.o: moduleobject.c
|
|
||||||
object.o: object.c
|
|
||||||
rangeobject.o: rangeobject.c
|
|
||||||
sliceobject.o: sliceobject.c
|
|
||||||
stringobject.o: stringobject.c
|
|
||||||
tupleobject.o: tupleobject.c
|
|
||||||
typeobject.o: typeobject.c
|
|
||||||
unicodeobject.o: unicodeobject.c
|
|
||||||
unicodectype.o: unicodectype.c unicodetype_db.h
|
|
||||||
|
|
||||||
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
||||||
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
|
||||||
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
|
@ -1,103 +0,0 @@
|
|||||||
# NOTE: Makefile.in is converted into Makefile by the configure script
|
|
||||||
# in the parent directory. Once configure has run, you can recreate
|
|
||||||
# the Makefile by running just config.status.
|
|
||||||
|
|
||||||
# === Variables set by config.stat ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
|
|
||||||
srcdir= @srcdir@
|
|
||||||
VPATH= @srcdir@
|
|
||||||
|
|
||||||
CC= @CC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
AR= @AR@
|
|
||||||
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
|
|
||||||
|
|
||||||
# === Other things that are customizable but not by configure ===
|
|
||||||
|
|
||||||
INCLDIR= $(srcdir)/../Include
|
|
||||||
OPT= @OPT@
|
|
||||||
CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
|
|
||||||
|
|
||||||
MKDEP= mkdep
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
POBJS= acceler.o grammar1.o \
|
|
||||||
listnode.o node.o parser.o \
|
|
||||||
parsetok.o tokenizer.o bitset.o \
|
|
||||||
metagrammar.o
|
|
||||||
|
|
||||||
AROBJS= $(POBJS) myreadline.o
|
|
||||||
OBJS= $(AROBJS) intrcheck.o
|
|
||||||
|
|
||||||
|
|
||||||
PGENMAIN= pgenmain.o
|
|
||||||
|
|
||||||
PGOBJS= firstsets.o grammar.o pgen.o printgrammar.o
|
|
||||||
|
|
||||||
PGENOBJS= $(PGENMAIN) $(POBJS) $(PGOBJS)
|
|
||||||
|
|
||||||
DOBJS= $(PGENMAIN) $(OBJS) $(PGOBJS)
|
|
||||||
|
|
||||||
PGEN= pgen
|
|
||||||
|
|
||||||
LIBRARY= ../libpython$(VERSION).a
|
|
||||||
|
|
||||||
# === Rules ===
|
|
||||||
|
|
||||||
all: $(PGEN) $(OBJS)
|
|
||||||
|
|
||||||
# This target is used by the master Makefile to add the objects to the library
|
|
||||||
add2lib: $(OBJS)
|
|
||||||
$(AR) cr $(LIBRARY) $(AROBJS)
|
|
||||||
if test ! -f ../Modules/hassignal; \
|
|
||||||
then echo adding intrcheck.o; $(AR) r $(LIBRARY) intrcheck.o; \
|
|
||||||
else echo leaving intrcheck.o out; fi
|
|
||||||
touch add2lib
|
|
||||||
|
|
||||||
$(PGEN): $(PGENOBJS)
|
|
||||||
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
|
|
||||||
|
|
||||||
clobber: clean
|
|
||||||
-rm -f $(PGEN) *.a tags TAGS
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in ../config.status
|
|
||||||
(cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \
|
|
||||||
$(SHELL) config.status)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
$(MKDEP) $(CFLAGS) `echo $(DOBJS) | tr ' ' '\012' | \
|
|
||||||
sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
|
|
||||||
|
|
||||||
.PRECIOUS: Makefile
|
|
||||||
|
|
||||||
acceler.o: acceler.c
|
|
||||||
grammar1.o: grammar1.c
|
|
||||||
intrcheck.o: intrcheck.c
|
|
||||||
listnode.o: listnode.c
|
|
||||||
myreadline.o: myreadline.c
|
|
||||||
node.o: node.c
|
|
||||||
parser.o: parser.c
|
|
||||||
parsetok.o: parsetok.c
|
|
||||||
tokenizer.o: tokenizer.c
|
|
||||||
bitset.o: bitset.c
|
|
||||||
firstsets.o: firstsets.c
|
|
||||||
grammar.o: grammar.c assert.h ../Include/token.h ../Include/grammar.h
|
|
||||||
metagrammar.o: metagrammar.c
|
|
||||||
pgen.o: pgen.c
|
|
||||||
printgrammar.o: printgrammar.c
|
|
||||||
pgenmain.o: pgenmain.c
|
|
||||||
|
|
||||||
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
||||||
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
|
||||||
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
|
@ -1,140 +0,0 @@
|
|||||||
# NOTE: Makefile.in is converted into Makefile by the configure script
|
|
||||||
# in the parent directory. Once configure has run, you can recreate
|
|
||||||
# the Makefile by running just config.status.
|
|
||||||
|
|
||||||
# === Variables set by config.stat ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
|
|
||||||
srcdir= @srcdir@
|
|
||||||
VPATH= @srcdir@
|
|
||||||
|
|
||||||
CC= @CC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
AR= @AR@
|
|
||||||
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBOBJS= @LIBOBJS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
DLINCLDIR= @DLINCLDIR@
|
|
||||||
DYNLOADFILE= @DYNLOADFILE@
|
|
||||||
|
|
||||||
# Machine-dependent subdirectories
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
|
|
||||||
|
|
||||||
# === Other things that are customizable but not by configure ===
|
|
||||||
|
|
||||||
INCLDIR= $(srcdir)/../Include
|
|
||||||
OPT= @OPT@
|
|
||||||
CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
|
|
||||||
|
|
||||||
MKDEP= mkdep
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
AROBJS= \
|
|
||||||
bltinmodule.o exceptions.o \
|
|
||||||
ceval.o compile.o codecs.o \
|
|
||||||
errors.o \
|
|
||||||
frozen.o frozenmain.o \
|
|
||||||
getargs.o getcompiler.o getcopyright.o getmtime.o \
|
|
||||||
getplatform.o getversion.o graminit.o \
|
|
||||||
import.o importdl.o \
|
|
||||||
marshal.o modsupport.o mystrtoul.o \
|
|
||||||
pyfpe.o pystate.o pythonrun.o \
|
|
||||||
structmember.o sysmodule.o \
|
|
||||||
traceback.o getopt.o \
|
|
||||||
$(DYNLOADFILE) \
|
|
||||||
$(LIBOBJS)
|
|
||||||
OBJS= $(AROBJS) sigcheck.o
|
|
||||||
|
|
||||||
LIBRARY= ../libpython$(VERSION).a
|
|
||||||
|
|
||||||
|
|
||||||
# === Rules ===
|
|
||||||
|
|
||||||
all: $(OBJS)
|
|
||||||
|
|
||||||
# This target is used by the master Makefile to add the objects to the library
|
|
||||||
add2lib: $(OBJS)
|
|
||||||
$(AR) cr $(LIBRARY) $(AROBJS)
|
|
||||||
if test ! -f ../Modules/hassignal; \
|
|
||||||
then echo adding sigcheck.o; $(AR) r $(LIBRARY) sigcheck.o; \
|
|
||||||
else echo leaving sigcheck.o out; fi
|
|
||||||
touch add2lib
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
|
|
||||||
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in ../config.status
|
|
||||||
(cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \
|
|
||||||
$(SHELL) config.status)
|
|
||||||
|
|
||||||
getplatform.o: getplatform.c Makefile
|
|
||||||
$(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \
|
|
||||||
$(srcdir)/getplatform.c
|
|
||||||
|
|
||||||
importdl.o: importdl.c
|
|
||||||
$(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c
|
|
||||||
|
|
||||||
depend:
|
|
||||||
$(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
|
|
||||||
sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
|
|
||||||
|
|
||||||
.PRECIOUS: Makefile
|
|
||||||
|
|
||||||
bltinmodule.o: bltinmodule.c
|
|
||||||
ceval.o: ceval.c
|
|
||||||
codecs.o: codecs.c
|
|
||||||
compile.o: compile.c
|
|
||||||
dup2.o: dup2.c
|
|
||||||
dynload_aix.o: dynload_aix.c
|
|
||||||
dynload_beos.o: dynload_beos.c
|
|
||||||
dynload_dl.o: dynload_dl.c
|
|
||||||
dynload_hpux.o: dynload_hpux.c
|
|
||||||
dynload_mac.o: dynload_mac.c
|
|
||||||
dynload_next.o: dynload_next.c
|
|
||||||
dynload_os2.o: dynload_os2.c
|
|
||||||
dynload_shlib.o: dynload_shlib.c
|
|
||||||
dynload_stub.o: dynload_stub.c
|
|
||||||
dynload_win.o: dynload_win.c
|
|
||||||
exceptions.o: exceptions.c
|
|
||||||
errors.o: errors.c
|
|
||||||
fmod.o: fmod.c
|
|
||||||
frozen.o: frozen.c
|
|
||||||
frozenmain.o: frozenmain.c
|
|
||||||
getargs.o: getargs.c
|
|
||||||
getcompiler.o: getcompiler.c
|
|
||||||
getcopyright.o: getcopyright.c
|
|
||||||
getcwd.o: getcwd.c
|
|
||||||
getmtime.o: getmtime.c
|
|
||||||
getopt.o: getopt.c
|
|
||||||
getplatform.o: getplatform.c
|
|
||||||
getversion.o: getversion.c ../Include/patchlevel.h
|
|
||||||
graminit.o: graminit.c
|
|
||||||
import.o: import.c
|
|
||||||
importdl.o: importdl.c
|
|
||||||
marshal.o: marshal.c
|
|
||||||
memmove.o: memmove.c
|
|
||||||
modsupport.o: modsupport.c
|
|
||||||
mystrtoul.o: mystrtoul.c
|
|
||||||
pyfpe.o: pyfpe.c
|
|
||||||
pystate.o: pystate.c
|
|
||||||
pythonrun.o: pythonrun.c
|
|
||||||
sigcheck.o: sigcheck.c
|
|
||||||
strerror.o: strerror.c
|
|
||||||
strtod.o: strtod.c
|
|
||||||
structmember.o: structmember.c
|
|
||||||
sysmodule.o: sysmodule.c ../Include/patchlevel.h
|
|
||||||
thread.o: thread.c
|
|
||||||
traceback.o: traceback.c
|
|
||||||
|
|
||||||
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
||||||
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
|
||||||
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
|
Loading…
Reference in New Issue
Block a user