2001-01-24 17:11:43 +00:00
|
|
|
# Top-level Makefile for Python
|
2001-08-17 15:32:31 +00:00
|
|
|
#
|
2001-01-24 17:11:43 +00:00
|
|
|
# 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:
|
2001-08-17 15:32:31 +00:00
|
|
|
#
|
2001-01-24 17:11:43 +00:00
|
|
|
# ./configure
|
|
|
|
# make
|
|
|
|
# make test
|
|
|
|
# make install
|
2001-08-17 15:32:31 +00:00
|
|
|
#
|
2001-01-24 17:11:43 +00:00
|
|
|
# If you have a previous version of Python installed that you don't
|
|
|
|
# want to overwrite, you can use "make altinstall" instead of "make
|
2001-02-16 04:16:34 +00:00
|
|
|
# install". Refer to the "Installing" section in the README file for
|
|
|
|
# additional details.
|
2001-08-17 15:32:31 +00:00
|
|
|
#
|
2001-01-24 17:11:43 +00:00
|
|
|
# See also the section "Build instructions" in the README file.
|
|
|
|
|
|
|
|
# === Variables set by makesetup ===
|
|
|
|
|
|
|
|
MODOBJS= _MODOBJS_
|
|
|
|
MODLIBS= _MODLIBS_
|
|
|
|
|
|
|
|
# === Variables set by configure
|
|
|
|
VERSION= @VERSION@
|
|
|
|
srcdir= @srcdir@
|
|
|
|
VPATH= @srcdir@
|
|
|
|
|
|
|
|
CC= @CC@
|
|
|
|
CXX= @CXX@
|
|
|
|
LINKCC= @LINKCC@
|
|
|
|
AR= @AR@
|
|
|
|
RANLIB= @RANLIB@
|
|
|
|
|
|
|
|
# Shell used by make (some versions default to the login shell, which is bad)
|
|
|
|
SHELL= /bin/sh
|
|
|
|
|
|
|
|
# Use this to make a link between python$(VERSION) and python in $(BINDIR)
|
|
|
|
LN= @LN@
|
|
|
|
|
|
|
|
# Portable install script (configure doesn't always guess right)
|
|
|
|
INSTALL= @INSTALL@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
2001-04-10 23:03:35 +00:00
|
|
|
INSTALL_SCRIPT= @INSTALL_SCRIPT@
|
2001-01-24 17:11:43 +00:00
|
|
|
INSTALL_DATA= @INSTALL_DATA@
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Compiler options
|
|
|
|
OPT= @OPT@
|
2003-01-01 20:07:49 +00:00
|
|
|
BASECFLAGS= @BASECFLAGS@
|
|
|
|
CFLAGS= $(BASECFLAGS) $(OPT)
|
2002-12-31 13:48:29 +00:00
|
|
|
CPPFLAGS= -I. -I$(srcdir)/Include
|
2001-01-24 17:11:43 +00:00
|
|
|
LDFLAGS= @LDFLAGS@
|
|
|
|
LDLAST= @LDLAST@
|
|
|
|
SGI_ABI= @SGI_ABI@
|
2001-01-26 16:14:41 +00:00
|
|
|
CCSHARED= @CCSHARED@
|
|
|
|
LINKFORSHARED= @LINKFORSHARED@
|
|
|
|
# Extra C flags added for building the interpreter object files.
|
|
|
|
CFLAGSFORSHARED=@CFLAGSFORSHARED@
|
|
|
|
# C flags used for building the interpreter object files
|
2002-07-19 06:55:41 +00:00
|
|
|
PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
|
2001-01-26 16:14:41 +00:00
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# 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
|
2001-08-02 06:20:20 +00:00
|
|
|
MANDIR= @mandir@
|
|
|
|
INCLUDEDIR= @includedir@
|
2001-01-24 17:11:43 +00:00
|
|
|
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@
|
2001-02-16 03:36:53 +00:00
|
|
|
BLDSHARED= @BLDSHARED@
|
2001-01-24 17:11:43 +00:00
|
|
|
DESTSHARED= $(BINLIBDEST)/lib-dynload
|
|
|
|
|
|
|
|
# Executable suffix (.exe on Windows and Mac OS X)
|
2001-02-27 18:50:56 +00:00
|
|
|
EXE= @EXEEXT@
|
2001-12-06 21:47:20 +00:00
|
|
|
BUILDEXE= @BUILDEXEEXT@
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-08-15 01:26:28 +00:00
|
|
|
# Short name and location for Mac OS X Python framework
|
|
|
|
PYTHONFRAMEWORK= @PYTHONFRAMEWORK@
|
|
|
|
PYTHONFRAMEWORKDIR= @PYTHONFRAMEWORKDIR@
|
|
|
|
PYTHONFRAMEWORKPREFIX= @PYTHONFRAMEWORKPREFIX@
|
|
|
|
PYTHONFRAMEWORKINSTALLDIR= @PYTHONFRAMEWORKINSTALLDIR@
|
2003-01-20 10:47:48 +00:00
|
|
|
# Options to enable prebinding (for fast startup)
|
|
|
|
OTHER_LIBTOOL_OPT = -prebind -seg1addr 0x10000000
|
2001-08-15 01:26:28 +00:00
|
|
|
|
2002-03-29 16:28:31 +00:00
|
|
|
# Environment to run shared python without installed libraries
|
|
|
|
RUNSHARED= @RUNSHARED@
|
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
# 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
|
|
|
|
|
2001-03-22 00:32:32 +00:00
|
|
|
# configure script arguments
|
|
|
|
CONFIG_ARGS= @CONFIG_ARGS@
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Subdirectories with code
|
|
|
|
SRCDIRS= @SRCDIRS@
|
|
|
|
|
|
|
|
# Other subdirectories
|
|
|
|
SUBDIRSTOO= Include Lib Misc Demo
|
|
|
|
|
|
|
|
# Files and directories to be distributed
|
2001-07-26 13:41:06 +00:00
|
|
|
CONFIGFILES= configure configure.in acconfig.h pyconfig.h.in Makefile.pre.in
|
2001-01-24 17:11:43 +00:00
|
|
|
DISTFILES= README ChangeLog $(CONFIGFILES)
|
|
|
|
DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
|
|
|
|
DIST= $(DISTFILES) $(DISTDIRS)
|
|
|
|
|
|
|
|
|
2001-01-26 16:14:41 +00:00
|
|
|
LIBRARY= @LIBRARY@
|
2001-01-24 17:11:43 +00:00
|
|
|
LDLIBRARY= @LDLIBRARY@
|
2001-08-15 01:26:28 +00:00
|
|
|
BLDLIBRARY= @BLDLIBRARY@
|
2001-01-24 17:11:43 +00:00
|
|
|
DLLLIBRARY= @DLLLIBRARY@
|
2001-08-15 01:26:28 +00:00
|
|
|
LDLIBRARYDIR= @LDLIBRARYDIR@
|
2002-03-29 16:28:31 +00:00
|
|
|
INSTSONAME= @INSTSONAME@
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
LIBS= @LIBS@
|
|
|
|
LIBM= @LIBM@
|
|
|
|
LIBC= @LIBC@
|
|
|
|
SYSLIBS= $(LIBM) $(LIBC)
|
2002-06-11 06:22:31 +00:00
|
|
|
SHLIBS= @SHLIBS@
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
MAINOBJ= @MAINOBJ@
|
2002-04-05 16:50:53 +00:00
|
|
|
THREADOBJ= @THREADOBJ@
|
2001-01-24 17:11:43 +00:00
|
|
|
DLINCLDIR= @DLINCLDIR@
|
|
|
|
DYNLOADFILE= @DYNLOADFILE@
|
2001-06-19 15:00:23 +00:00
|
|
|
MACHDEP_OBJS= @MACHDEP_OBJS@
|
2001-08-17 18:39:25 +00:00
|
|
|
UNICODE_OBJS= @UNICODE_OBJS@
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-02-27 18:50:56 +00:00
|
|
|
PYTHON= python$(EXE)
|
2001-12-06 21:47:20 +00:00
|
|
|
BUILDPYTHON= python$(BUILDEXE)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# === Definitions added by makesetup ===
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Modules
|
|
|
|
MODULE_OBJS= \
|
|
|
|
Modules/config.o \
|
|
|
|
Modules/getpath.o \
|
2001-08-29 23:44:38 +00:00
|
|
|
Modules/main.o \
|
|
|
|
Modules/gcmodule.o
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Used of signalmodule.o is not available
|
|
|
|
SIGNAL_OBJS= @SIGNAL_OBJS@
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Grammar
|
2001-02-27 02:19:16 +00:00
|
|
|
GRAMMAR_H= $(srcdir)/Include/graminit.h
|
|
|
|
GRAMMAR_C= $(srcdir)/Python/graminit.c
|
2001-01-24 17:11:43 +00:00
|
|
|
GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Parser
|
2001-02-27 18:50:56 +00:00
|
|
|
PGEN= Parser/pgen$(EXE)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
POBJS= \
|
|
|
|
Parser/acceler.o \
|
|
|
|
Parser/grammar1.o \
|
|
|
|
Parser/listnode.o \
|
|
|
|
Parser/node.o \
|
|
|
|
Parser/parser.o \
|
|
|
|
Parser/parsetok.o \
|
|
|
|
Parser/bitset.o \
|
|
|
|
Parser/metagrammar.o
|
|
|
|
|
2002-08-04 17:29:52 +00:00
|
|
|
PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/tokenizer.o
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
PGOBJS= \
|
2002-04-22 03:05:25 +00:00
|
|
|
Objects/obmalloc.o \
|
2001-12-04 03:54:08 +00:00
|
|
|
Python/mysnprintf.o \
|
2002-08-04 17:29:52 +00:00
|
|
|
Parser/tokenizer_pgen.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Parser/firstsets.o \
|
|
|
|
Parser/grammar.o \
|
|
|
|
Parser/pgen.o \
|
|
|
|
Parser/printgrammar.o \
|
|
|
|
Parser/pgenmain.o
|
|
|
|
|
|
|
|
PGENOBJS= $(PGENMAIN) $(POBJS) $(PGOBJS)
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Python
|
|
|
|
PYTHON_OBJS= \
|
|
|
|
Python/bltinmodule.o \
|
|
|
|
Python/exceptions.o \
|
|
|
|
Python/ceval.o \
|
|
|
|
Python/compile.o \
|
|
|
|
Python/codecs.o \
|
|
|
|
Python/errors.o \
|
|
|
|
Python/frozen.o \
|
|
|
|
Python/frozenmain.o \
|
2001-02-27 19:07:02 +00:00
|
|
|
Python/future.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Python/getargs.o \
|
|
|
|
Python/getcompiler.o \
|
|
|
|
Python/getcopyright.o \
|
|
|
|
Python/getmtime.o \
|
|
|
|
Python/getplatform.o \
|
|
|
|
Python/getversion.o \
|
|
|
|
Python/graminit.o \
|
|
|
|
Python/import.o \
|
|
|
|
Python/importdl.o \
|
|
|
|
Python/marshal.o \
|
|
|
|
Python/modsupport.o \
|
|
|
|
Python/mystrtoul.o \
|
2001-07-31 13:24:44 +00:00
|
|
|
Python/mysnprintf.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Python/pyfpe.o \
|
|
|
|
Python/pystate.o \
|
|
|
|
Python/pythonrun.o \
|
|
|
|
Python/structmember.o \
|
2001-02-09 22:22:18 +00:00
|
|
|
Python/symtable.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Python/sysmodule.o \
|
|
|
|
Python/traceback.o \
|
|
|
|
Python/getopt.o \
|
|
|
|
Python/$(DYNLOADFILE) \
|
2001-06-19 15:00:23 +00:00
|
|
|
$(MACHDEP_OBJS) \
|
2002-04-05 16:50:53 +00:00
|
|
|
$(THREADOBJ)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Objects
|
|
|
|
OBJECT_OBJS= \
|
|
|
|
Objects/abstract.o \
|
2002-04-03 22:41:51 +00:00
|
|
|
Objects/boolobject.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Objects/bufferobject.o \
|
2001-01-25 20:04:14 +00:00
|
|
|
Objects/cellobject.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Objects/classobject.o \
|
|
|
|
Objects/cobject.o \
|
|
|
|
Objects/complexobject.o \
|
2001-08-02 04:15:00 +00:00
|
|
|
Objects/descrobject.o \
|
2002-04-26 19:40:56 +00:00
|
|
|
Objects/enumobject.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Objects/fileobject.o \
|
|
|
|
Objects/floatobject.o \
|
|
|
|
Objects/frameobject.o \
|
|
|
|
Objects/funcobject.o \
|
|
|
|
Objects/intobject.o \
|
2001-04-20 19:13:02 +00:00
|
|
|
Objects/iterobject.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Objects/listobject.o \
|
|
|
|
Objects/longobject.o \
|
|
|
|
Objects/dictobject.o \
|
|
|
|
Objects/methodobject.o \
|
|
|
|
Objects/moduleobject.o \
|
|
|
|
Objects/object.o \
|
2002-03-23 00:20:15 +00:00
|
|
|
Objects/obmalloc.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Objects/rangeobject.o \
|
|
|
|
Objects/sliceobject.o \
|
|
|
|
Objects/stringobject.o \
|
SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.
This is a big one, touching lots of files. Some of the platforms
aren't tested yet. Briefly, this changes the return value of the
os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the
time functions localtime(), gmtime(), and strptime() from tuples into
pseudo-sequences. When accessed as a sequence, they behave exactly as
before. But they also have attributes like st_mtime or tm_year. The
stat return value, moreover, has a few platform-specific attributes
that are not available through the sequence interface (because
everybody expects the sequence to have a fixed length, these couldn't
be added there). If your platform's struct stat doesn't define
st_blksize, st_blocks or st_rdev, they won't be accessible from Python
either.
(Still missing is a documentation update.)
2001-10-18 20:34:25 +00:00
|
|
|
Objects/structseq.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
Objects/tupleobject.o \
|
|
|
|
Objects/typeobject.o \
|
2001-10-05 21:56:02 +00:00
|
|
|
Objects/weakrefobject.o \
|
2001-08-17 18:39:25 +00:00
|
|
|
$(UNICODE_OBJS)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# objects that get linked into the Python library
|
|
|
|
LIBRARY_OBJS= \
|
2001-01-27 21:42:38 +00:00
|
|
|
Modules/getbuildinfo.o \
|
2001-01-24 17:11:43 +00:00
|
|
|
$(PARSER_OBJS) \
|
|
|
|
$(OBJECT_OBJS) \
|
|
|
|
$(PYTHON_OBJS) \
|
|
|
|
$(MODULE_OBJS) \
|
|
|
|
$(SIGNAL_OBJS) \
|
|
|
|
$(MODOBJS)
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# Rules
|
|
|
|
|
|
|
|
# Default target
|
2001-12-06 21:47:20 +00:00
|
|
|
all: $(BUILDPYTHON) oldsharedmods sharedmods
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Build the interpreter
|
2002-03-29 16:28:31 +00:00
|
|
|
$(BUILDPYTHON): Modules/$(MAINOBJ) $(LIBRARY) $(LDLIBRARY)
|
2001-03-06 05:52:16 +00:00
|
|
|
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
|
|
|
|
Modules/$(MAINOBJ) \
|
2001-08-15 01:26:28 +00:00
|
|
|
$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-12-06 21:47:20 +00:00
|
|
|
platform: $(BUILDPYTHON)
|
2002-03-29 16:28:31 +00:00
|
|
|
$(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Build the shared modules
|
2001-12-06 21:47:20 +00:00
|
|
|
sharedmods: $(BUILDPYTHON)
|
2001-09-12 18:59:25 +00:00
|
|
|
case $$MAKEFLAGS in \
|
2002-03-29 16:28:31 +00:00
|
|
|
*-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;; \
|
2001-09-12 18:59:25 +00:00
|
|
|
esac
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-01-27 21:42:38 +00:00
|
|
|
# buildno should really depend on something like LIBRARY_SRC
|
|
|
|
buildno: $(PARSER_OBJS) \
|
|
|
|
$(OBJECT_OBJS) \
|
|
|
|
$(PYTHON_OBJS) \
|
|
|
|
$(MODULE_OBJS) \
|
|
|
|
$(SIGNAL_OBJS) \
|
|
|
|
$(MODOBJS) \
|
|
|
|
$(srcdir)/Modules/getbuildinfo.c
|
|
|
|
if test -f buildno; then \
|
|
|
|
expr `cat buildno` + 1 >buildno1; \
|
|
|
|
mv -f buildno1 buildno; \
|
|
|
|
else echo 1 >buildno; fi
|
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
# Build static library
|
2001-04-09 22:23:22 +00:00
|
|
|
# avoid long command lines, same as LIBRARY_OBJS
|
2001-01-24 17:11:43 +00:00
|
|
|
$(LIBRARY): $(LIBRARY_OBJS)
|
|
|
|
-rm -f $@
|
2001-01-27 21:42:38 +00:00
|
|
|
$(AR) cr $@ Modules/getbuildinfo.o
|
2001-01-24 17:11:43 +00:00
|
|
|
$(AR) cr $@ $(PARSER_OBJS)
|
|
|
|
$(AR) cr $@ $(OBJECT_OBJS)
|
|
|
|
$(AR) cr $@ $(PYTHON_OBJS)
|
|
|
|
$(AR) cr $@ $(MODULE_OBJS) $(SIGNAL_OBJS)
|
|
|
|
$(AR) cr $@ $(MODOBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2002-03-29 16:28:31 +00:00
|
|
|
libpython$(VERSION).so: $(LIBRARY_OBJS)
|
2003-03-30 15:37:33 +00:00
|
|
|
if test $INSTSONAME != $LDLIBRARY; then \
|
|
|
|
$(LDSHARED) -Wl,-soname=$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
|
|
|
|
$(LN) -f $(INSTSONAME) $@; \
|
|
|
|
else\
|
|
|
|
$(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
|
|
|
|
fi
|
2002-03-29 16:28:31 +00:00
|
|
|
|
|
|
|
libpython$(VERSION).sl: $(LIBRARY_OBJS)
|
|
|
|
$(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2002-08-01 21:57:49 +00:00
|
|
|
# This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
|
|
|
|
# minimal framework (not including the Lib directory and such) in the current
|
|
|
|
# directory.
|
|
|
|
RESSRCDIR=$(srcdir)/Mac/OSXResources/framework
|
|
|
|
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
|
|
|
|
$(LIBRARY) \
|
|
|
|
$(RESSRCDIR)/Info.plist \
|
|
|
|
$(RESSRCDIR)/version.plist \
|
|
|
|
$(RESSRCDIR)/English.lproj/InfoPlist.strings
|
2002-02-12 21:30:53 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
|
2001-01-24 17:11:43 +00:00
|
|
|
libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
|
2001-08-17 15:32:31 +00:00
|
|
|
-framework System @LIBTOOL_CRUFT@
|
2002-08-01 21:57:49 +00:00
|
|
|
$(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
|
2002-08-04 21:17:20 +00:00
|
|
|
$(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
|
|
|
|
$(LN) -fsn Versions/Current/Python $(PYTHONFRAMEWORKDIR)/Python
|
|
|
|
$(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
|
|
|
|
$(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# This rule builds the Cygwin Python DLL
|
|
|
|
libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
|
|
|
|
$(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
|
|
|
|
$(LIBS) $(MODLIBS) $(SYSLIBS)
|
|
|
|
|
|
|
|
|
|
|
|
oldsharedmods: $(SHAREDMODS)
|
|
|
|
|
|
|
|
|
|
|
|
Makefile Modules/config.c: Makefile.pre \
|
|
|
|
$(srcdir)/Modules/config.c.in \
|
|
|
|
$(MAKESETUP) \
|
|
|
|
Modules/Setup.config \
|
|
|
|
Modules/Setup \
|
|
|
|
Modules/Setup.local
|
|
|
|
$(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
|
|
|
|
-s Modules \
|
|
|
|
Modules/Setup.config \
|
|
|
|
Modules/Setup.local \
|
|
|
|
Modules/Setup
|
|
|
|
@mv config.c Modules
|
|
|
|
@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."; \
|
2001-09-29 00:42:19 +00:00
|
|
|
echo "Usually, copying Setup.dist to Setup will work."; \
|
2001-01-24 17:11:43 +00:00
|
|
|
echo "-----------------------------------------------"; \
|
2001-01-26 16:14:41 +00:00
|
|
|
fi
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Special rules for object files
|
|
|
|
|
|
|
|
Modules/getbuildinfo.o: $(srcdir)/Modules/getbuildinfo.c buildno
|
2001-01-29 09:39:14 +00:00
|
|
|
$(CC) -c $(PY_CFLAGS) -DBUILD=`cat buildno` -o $@ $(srcdir)/Modules/getbuildinfo.c
|
2001-01-26 22:52:45 +00:00
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
|
2001-01-26 16:14:41 +00:00
|
|
|
$(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
|
|
|
|
-DPREFIX='"$(prefix)"' \
|
|
|
|
-DEXEC_PREFIX='"$(exec_prefix)"' \
|
|
|
|
-DVERSION='"$(VERSION)"' \
|
|
|
|
-DVPATH='"$(VPATH)"' \
|
2001-01-29 09:39:14 +00:00
|
|
|
-o $@ $(srcdir)/Modules/getpath.c
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-01-29 09:39:14 +00:00
|
|
|
Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc
|
|
|
|
$(CXX) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/ccpython.cc
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
|
2001-02-27 02:19:16 +00:00
|
|
|
-$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
$(PGEN): $(PGENOBJS)
|
2002-12-31 13:48:29 +00:00
|
|
|
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
Parser/grammar.o: $(srcdir)/Parser/grammar.c \
|
|
|
|
$(srcdir)/Include/token.h \
|
|
|
|
$(srcdir)/Include/grammar.h
|
|
|
|
Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
|
|
|
|
|
2002-08-04 17:29:52 +00:00
|
|
|
Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
|
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-02-27 02:45:36 +00:00
|
|
|
Python/compile.o Python/symtable.o: $(GRAMMAR_H)
|
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
Python/getplatform.o: $(srcdir)/Python/getplatform.c
|
2002-07-19 06:55:41 +00:00
|
|
|
$(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
Python/importdl.o: $(srcdir)/Python/importdl.c
|
2002-07-19 06:55:41 +00:00
|
|
|
$(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \
|
|
|
|
$(srcdir)/Objects/unicodetype_db.h
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Header files
|
|
|
|
|
2001-01-25 20:07:50 +00:00
|
|
|
PYTHON_HEADERS= \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/Python.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/abstract.h \
|
2002-04-03 22:41:51 +00:00
|
|
|
Include/boolobject.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/bufferobject.h \
|
|
|
|
Include/ceval.h \
|
|
|
|
Include/classobject.h \
|
|
|
|
Include/cobject.h \
|
|
|
|
Include/codecs.h \
|
2001-02-02 19:54:23 +00:00
|
|
|
Include/compile.h \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/complexobject.h \
|
2001-08-02 04:15:00 +00:00
|
|
|
Include/descrobject.h \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/dictobject.h \
|
2002-04-26 19:40:56 +00:00
|
|
|
Include/enumobject.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/fileobject.h \
|
|
|
|
Include/floatobject.h \
|
|
|
|
Include/funcobject.h \
|
|
|
|
Include/import.h \
|
|
|
|
Include/intobject.h \
|
|
|
|
Include/intrcheck.h \
|
|
|
|
Include/iterobject.h \
|
|
|
|
Include/listobject.h \
|
|
|
|
Include/longobject.h \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/methodobject.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/modsupport.h \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/moduleobject.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/object.h \
|
|
|
|
Include/objimpl.h \
|
|
|
|
Include/patchlevel.h \
|
|
|
|
Include/pydebug.h \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/pyerrors.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/pyfpe.h \
|
|
|
|
Include/pymem.h \
|
|
|
|
Include/pyport.h \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/pystate.h \
|
|
|
|
Include/pythonrun.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/rangeobject.h \
|
|
|
|
Include/sliceobject.h \
|
|
|
|
Include/stringobject.h \
|
SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.
This is a big one, touching lots of files. Some of the platforms
aren't tested yet. Briefly, this changes the return value of the
os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the
time functions localtime(), gmtime(), and strptime() from tuples into
pseudo-sequences. When accessed as a sequence, they behave exactly as
before. But they also have attributes like st_mtime or tm_year. The
stat return value, moreover, has a few platform-specific attributes
that are not available through the sequence interface (because
everybody expects the sequence to have a fixed length, these couldn't
be added there). If your platform's struct stat doesn't define
st_blksize, st_blocks or st_rdev, they won't be accessible from Python
either.
(Still missing is a documentation update.)
2001-10-18 20:34:25 +00:00
|
|
|
Include/structseq.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/structmember.h \
|
|
|
|
Include/symtable.h \
|
2001-01-24 17:11:43 +00:00
|
|
|
Include/sysmodule.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
Include/traceback.h \
|
|
|
|
Include/tupleobject.h \
|
|
|
|
Include/unicodeobject.h \
|
2001-10-05 21:56:02 +00:00
|
|
|
Include/weakrefobject.h \
|
2001-09-18 02:40:21 +00:00
|
|
|
pyconfig.h
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-03-06 05:52:16 +00:00
|
|
|
$(LIBRARY_OBJS) $(MODOBJS) Modules/$(MAINOBJ): $(PYTHON_HEADERS)
|
2001-01-25 20:07:50 +00:00
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Test the interpreter (twice, once without .pyc files, once with)
|
|
|
|
TESTOPTS= -l
|
|
|
|
TESTPROG= $(srcdir)/Lib/test/regrtest.py
|
2002-03-29 16:28:31 +00:00
|
|
|
TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -E -tt
|
2001-01-24 17:11:43 +00:00
|
|
|
test: all platform
|
2001-03-01 00:36:53 +00:00
|
|
|
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
|
2001-07-23 16:30:27 +00:00
|
|
|
-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
|
|
|
|
$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-02-01 19:51:28 +00:00
|
|
|
QUICKTESTOPTS= $(TESTOPTS) -x test_thread test_signal test_strftime \
|
2001-02-02 03:03:33 +00:00
|
|
|
test_unicodedata test_re test_sre test_select test_poll \
|
2002-08-09 19:18:25 +00:00
|
|
|
test_linuxaudiodev test_struct test_sunaudiodev test_zlib
|
2001-02-01 19:51:28 +00:00
|
|
|
quicktest: all platform
|
2001-03-01 00:36:53 +00:00
|
|
|
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
|
2001-07-23 16:30:27 +00:00
|
|
|
-$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
|
|
|
|
$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
|
2001-02-01 19:51:28 +00:00
|
|
|
|
2001-03-03 04:14:21 +00:00
|
|
|
MEMTESTOPTS= $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \
|
|
|
|
test_longexp
|
|
|
|
memtest: all platform
|
|
|
|
-rm -f $(srcdir)/Lib/test/*.py[co]
|
2001-07-23 16:30:27 +00:00
|
|
|
-$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
|
|
|
|
$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
|
2001-03-03 04:14:21 +00:00
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
# Install everything
|
2002-11-06 21:59:33 +00:00
|
|
|
install: altinstall bininstall maninstall idleinstall
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Install almost everything without disturbing previous versions
|
2001-01-29 20:18:59 +00:00
|
|
|
altinstall: altbininstall libinstall inclinstall libainstall \
|
2001-08-17 15:32:31 +00:00
|
|
|
sharedinstall oldsharedinstall
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Install shared libraries enabled by Setup
|
|
|
|
DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
|
|
|
|
|
|
|
|
oldsharedinstall: $(DESTSHARED) $(SHAREDMODS)
|
|
|
|
@for i in X $(SHAREDMODS); do \
|
2001-02-06 14:50:27 +00:00
|
|
|
if test $$i != X; then \
|
|
|
|
echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
|
|
|
|
$(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
|
|
|
|
fi; \
|
2001-01-24 17:11:43 +00:00
|
|
|
done
|
|
|
|
|
2001-08-17 15:32:31 +00:00
|
|
|
$(DESTSHARED):
|
2001-01-24 17:11:43 +00:00
|
|
|
@for i in $(DESTDIRS); \
|
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
2001-02-10 20:07:38 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$i; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Install the interpreter (by creating a hard link to python$(VERSION))
|
|
|
|
bininstall: altbininstall
|
2003-03-04 10:52:39 +00:00
|
|
|
-if test -f $(BINDIR)/$(PYTHON) -o -h $(BINDIR)/$(PYTHON); \
|
2001-01-24 17:11:43 +00:00
|
|
|
then rm -f $(BINDIR)/$(PYTHON); \
|
|
|
|
else true; \
|
|
|
|
fi
|
2001-02-27 18:50:56 +00:00
|
|
|
(cd $(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Install the interpreter with $(VERSION) affixed
|
|
|
|
# This goes into $(exec_prefix)
|
2001-12-06 21:47:20 +00:00
|
|
|
altbininstall: $(BUILDPYTHON)
|
2002-08-06 13:40:31 +00:00
|
|
|
@if test "$(PYTHONFRAMEWORKDIR)" != no-framework; then \
|
|
|
|
if test ! -f $(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current/Resources/Info.plist; then \
|
|
|
|
echo 'Framework build: use "make frameworkinstall" in stead of "make install"'; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
fi
|
2002-05-08 08:59:59 +00:00
|
|
|
@for i in $(BINDIR) $(LIBDIR); \
|
2001-01-24 17:11:43 +00:00
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
2001-02-10 20:07:38 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$i; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
2001-12-06 21:47:20 +00:00
|
|
|
$(INSTALL_PROGRAM) $(BUILDPYTHON) $(BINDIR)/python$(VERSION)$(EXE)
|
2002-03-29 16:28:31 +00:00
|
|
|
if test -f libpython$(VERSION)$(SO); then \
|
2002-07-29 16:18:23 +00:00
|
|
|
if test "$(SO)" = .dll; then \
|
|
|
|
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(BINDIR); \
|
|
|
|
else \
|
|
|
|
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(LIBDIR)/$(INSTSONAME); \
|
|
|
|
fi; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else true; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install the manual page
|
|
|
|
maninstall:
|
|
|
|
@for i in $(MANDIR) $(MANDIR)/man1; \
|
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
2001-02-10 20:07:38 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$i; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
$(INSTALL_DATA) $(srcdir)/Misc/python.man \
|
|
|
|
$(MANDIR)/man1/python.1
|
|
|
|
|
|
|
|
# Install the library
|
|
|
|
PLATDIR= plat-$(MACHDEP)
|
2002-12-30 22:23:40 +00:00
|
|
|
EXTRAPLATDIR= @EXTRAPLATDIR@
|
2003-03-17 15:44:10 +00:00
|
|
|
EXTRAMACHDEPPATH=@EXTRAMACHDEPPATH@
|
2002-12-30 22:23:40 +00:00
|
|
|
MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR)
|
2001-01-24 17:11:43 +00:00
|
|
|
XMLLIBSUBDIRS= xml xml/dom xml/parsers xml/sax
|
2002-12-30 22:23:40 +00:00
|
|
|
PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \
|
2003-01-21 15:05:02 +00:00
|
|
|
plat-mac/lib-scriptpackages/_builtinSuites \
|
2002-12-30 22:23:40 +00:00
|
|
|
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/Terminal
|
2003-03-17 15:44:10 +00:00
|
|
|
PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
|
2001-12-03 18:51:41 +00:00
|
|
|
LIBSUBDIRS= lib-old lib-tk site-packages test test/output test/data \
|
2003-01-20 01:13:21 +00:00
|
|
|
encodings email email/test email/test/data compiler hotshot \
|
2003-03-20 23:35:38 +00:00
|
|
|
logging bsddb bsddb/test csv \
|
2001-01-24 17:11:43 +00:00
|
|
|
distutils distutils/command $(XMLLIBSUBDIRS) curses $(MACHDEPS)
|
2001-12-06 21:47:20 +00:00
|
|
|
libinstall: $(BUILDPYTHON) $(srcdir)/Lib/$(PLATDIR)
|
2001-01-24 17:11:43 +00:00
|
|
|
@for i in $(SCRIPTDIR) $(LIBDEST); \
|
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
2001-02-10 20:07:38 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$i; \
|
2001-01-24 17:11:43 +00:00
|
|
|
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"; \
|
2001-02-10 20:07:38 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$b; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
@for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc; \
|
|
|
|
do \
|
|
|
|
if test -x $$i; then \
|
2001-04-10 23:03:35 +00:00
|
|
|
$(INSTALL_SCRIPT) $$i $(LIBDEST); \
|
|
|
|
echo $(INSTALL_SCRIPT) $$i $(LIBDEST); \
|
2001-01-24 17:11:43 +00:00
|
|
|
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 \
|
2001-04-10 23:03:35 +00:00
|
|
|
echo $(INSTALL_SCRIPT) $$i $$b; \
|
|
|
|
$(INSTALL_SCRIPT) $$i $$b; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else \
|
|
|
|
echo $(INSTALL_DATA) $$i $$b; \
|
|
|
|
$(INSTALL_DATA) $$i $$b; \
|
|
|
|
fi;; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
|
|
|
done
|
|
|
|
$(INSTALL_DATA) $(srcdir)/LICENSE $(LIBDEST)/LICENSE.txt
|
2002-03-29 16:28:31 +00:00
|
|
|
PYTHONPATH=$(LIBDEST) $(RUNSHARED) \
|
2002-08-29 15:04:37 +00:00
|
|
|
./$(BUILDPYTHON) -Wi -tt $(LIBDEST)/compileall.py \
|
2003-01-21 13:50:34 +00:00
|
|
|
-x 'badsyntax|site-packages' $(LIBDEST)
|
2002-03-29 16:28:31 +00:00
|
|
|
PYTHONPATH=$(LIBDEST) $(RUNSHARED) \
|
2002-08-29 15:04:37 +00:00
|
|
|
./$(BUILDPYTHON) -Wi -tt -O $(LIBDEST)/compileall.py \
|
2003-01-21 13:50:34 +00:00
|
|
|
-x 'badsyntax|site-packages' $(LIBDEST)
|
|
|
|
PYTHONPATH=$(LIBDEST) $(RUNSHARED) \
|
|
|
|
./$(BUILDPYTHON) -Wi -t $(LIBDEST)/compileall.py \
|
|
|
|
-x badsyntax $(LIBDEST)/site-packages
|
|
|
|
PYTHONPATH=$(LIBDEST) $(RUNSHARED) \
|
|
|
|
./$(BUILDPYTHON) -Wi -t -O $(LIBDEST)/compileall.py \
|
|
|
|
-x badsyntax $(LIBDEST)/site-packages
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# 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"; \
|
2001-08-15 01:26:28 +00:00
|
|
|
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
|
2001-12-19 09:24:40 +00:00
|
|
|
export EXE; EXE="$(BUILDEXE)"; \
|
2001-01-24 17:11:43 +00:00
|
|
|
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"; \
|
2001-02-10 20:07:38 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$i; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
@for i in $(srcdir)/Include/*.h; \
|
|
|
|
do \
|
|
|
|
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
|
|
|
|
$(INSTALL_DATA) $$i $(INCLUDEPY); \
|
|
|
|
done
|
2001-07-26 13:41:06 +00:00
|
|
|
$(INSTALL_DATA) pyconfig.h $(CONFINCLUDEPY)/pyconfig.h
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# 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"; \
|
2001-02-10 20:07:38 +00:00
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$i; \
|
2001-01-24 17:11:43 +00:00
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
2002-03-29 16:28:31 +00:00
|
|
|
@if test -d $(LIBRARY); then :; else \
|
2001-09-11 14:41:54 +00:00
|
|
|
if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
|
2002-07-29 16:18:23 +00:00
|
|
|
if test "$(SO)" = .dll; then \
|
|
|
|
$(INSTALL_DATA) $(LDLIBRARY) $(LIBPL) ; \
|
|
|
|
else \
|
|
|
|
$(INSTALL_DATA) $(LIBRARY) $(LIBPL)/$(LIBRARY) ; \
|
|
|
|
$(RANLIB) $(LIBPL)/$(LIBRARY) ; \
|
|
|
|
fi; \
|
2001-08-15 01:26:28 +00:00
|
|
|
else \
|
2002-03-29 16:28:31 +00:00
|
|
|
echo Skip install of $(LIBRARY) - use make frameworkinstall; \
|
2001-08-15 01:26:28 +00:00
|
|
|
fi; \
|
2001-01-24 17:11:43 +00:00
|
|
|
fi
|
|
|
|
$(INSTALL_DATA) Modules/config.c $(LIBPL)/config.c
|
2001-03-06 05:52:16 +00:00
|
|
|
$(INSTALL_DATA) Modules/$(MAINOBJ) $(LIBPL)/$(MAINOBJ)
|
2001-01-24 17:11:43 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(LIBPL)/config.c.in
|
|
|
|
$(INSTALL_DATA) 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
|
2001-04-10 23:03:35 +00:00
|
|
|
$(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(LIBPL)/makesetup
|
|
|
|
$(INSTALL_SCRIPT) $(srcdir)/install-sh $(LIBPL)/install-sh
|
2001-01-24 17:11:43 +00:00
|
|
|
@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"; \
|
2001-04-10 23:03:35 +00:00
|
|
|
$(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \
|
2001-01-24 17:11:43 +00:00
|
|
|
$(LIBPL)/makexp_aix; \
|
|
|
|
echo "$(LIBPL)/makexp_aix"; \
|
2001-04-10 23:03:35 +00:00
|
|
|
$(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix \
|
2001-01-24 17:11:43 +00:00
|
|
|
$(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:"; \
|
2001-02-16 03:36:53 +00:00
|
|
|
$(INSTALL_DATA) Misc/BeOS-NOTES $(LIBPL)/README; \
|
2001-01-24 17:11:43 +00:00
|
|
|
echo; echo "$(LIBPL)/README"; \
|
2001-04-10 23:03:35 +00:00
|
|
|
$(INSTALL_SCRIPT) Modules/ar_beos $(LIBPL)/ar_beos; \
|
2001-02-16 03:36:53 +00:00
|
|
|
echo "$(LIBPL)/ar_beos"; \
|
2001-04-10 23:03:35 +00:00
|
|
|
$(INSTALL_SCRIPT) Modules/ld_so_beos $(LIBPL)/ld_so_beos; \
|
2001-02-16 03:36:53 +00:00
|
|
|
echo "$(LIBPL)/ld_so_beos"; \
|
|
|
|
echo; echo "See Misc/BeOS-NOTES for details."; \
|
2001-01-24 17:11:43 +00:00
|
|
|
;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Install the dynamically loadable modules
|
|
|
|
# This goes into $(exec_prefix)
|
|
|
|
sharedinstall:
|
2002-03-29 16:28:31 +00:00
|
|
|
$(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
|
|
|
|
--prefix=$(prefix) \
|
2001-10-17 06:26:53 +00:00
|
|
|
--install-scripts=$(BINDIR) \
|
2001-01-26 22:52:45 +00:00
|
|
|
--install-platlib=$(DESTSHARED)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2002-08-09 00:18:21 +00:00
|
|
|
# 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
|
2002-08-09 19:18:25 +00:00
|
|
|
|
2001-08-15 01:26:28 +00:00
|
|
|
# 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.
|
|
|
|
|
2002-08-09 00:18:21 +00:00
|
|
|
frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib
|
|
|
|
|
|
|
|
frameworkinstallstructure: $(LDLIBRARY)
|
2001-09-11 14:41:54 +00:00
|
|
|
@if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
|
2001-08-15 01:26:28 +00:00
|
|
|
echo Not configured with --enable-framework; \
|
2001-09-11 14:41:54 +00:00
|
|
|
exit 1; \
|
2001-08-15 01:26:28 +00:00
|
|
|
else true; \
|
|
|
|
fi
|
2002-08-09 00:18:21 +00:00
|
|
|
@for i in $(prefix)/Resources/English.lproj $(prefix)/lib; do\
|
2001-08-15 01:26:28 +00:00
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
|
|
|
$(INSTALL) -d -m $(DIRMODE) $$i; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
2002-08-09 00:18:21 +00:00
|
|
|
$(LN) -fsn include/python$(VERSION) $(prefix)/Headers
|
|
|
|
$(INSTALL_DATA) $(RESSRCDIR)/Info.plist $(prefix)/Resources/Info.plist
|
|
|
|
$(INSTALL_DATA) $(RESSRCDIR)/version.plist $(prefix)/Resources/version.plist
|
2001-08-15 01:26:28 +00:00
|
|
|
$(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
|
2002-08-09 00:18:21 +00:00
|
|
|
$(prefix)/Resources/English.lproj/InfoPlist.strings
|
2002-08-04 21:17:20 +00:00
|
|
|
$(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
|
|
|
|
$(LN) -fsn Versions/Current/Python $(PYTHONFRAMEWORKINSTALLDIR)/Python
|
|
|
|
$(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKINSTALLDIR)/Headers
|
|
|
|
$(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKINSTALLDIR)/Resources
|
2001-08-15 01:26:28 +00:00
|
|
|
$(INSTALL_DATA) $(LDLIBRARY) $(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY)
|
2001-08-17 15:32:31 +00:00
|
|
|
|
2002-08-09 00:18:21 +00:00
|
|
|
# This installs Mac/Lib into the framework
|
|
|
|
frameworkinstallmaclib:
|
|
|
|
$(MAKE) -f $(srcdir)/Mac/OSX/Makefile installmacsubtree \
|
2003-02-25 12:41:10 +00:00
|
|
|
BUILDPYTHON=./$(BUILDPYTHON) \
|
2002-08-09 00:18:21 +00:00
|
|
|
srcdir=$(srcdir) builddir=. prefix=$(prefix) LIBDEST=$(LIBDEST)
|
|
|
|
|
|
|
|
# This installs the IDE, the Launcher and other apps into /Applications
|
|
|
|
frameworkinstallapps:
|
|
|
|
$(MAKE) -f $(srcdir)/Mac/OSX/Makefile installapps \
|
2003-02-25 12:41:10 +00:00
|
|
|
BUILDPYTHON=./$(BUILDPYTHON) \
|
2002-08-09 00:18:21 +00:00
|
|
|
srcdir=$(srcdir) builddir=. dstroot=$(PYTHONFRAMEWORKPREFIX)/../..
|
|
|
|
|
|
|
|
# This install the unix python and pythonw tools in /usr/local/bin
|
|
|
|
frameworkinstallunixtools:
|
|
|
|
$(MAKE) -f $(srcdir)/Mac/OSX/Makefile installunixtools \
|
|
|
|
srcdir=$(srcdir) builddir=. dstroot=$(PYTHONFRAMEWORKPREFIX)/../..
|
2002-06-21 14:48:38 +00:00
|
|
|
|
2002-11-06 21:59:33 +00:00
|
|
|
# This installs IDLE
|
|
|
|
idleinstall:
|
2003-01-03 20:39:29 +00:00
|
|
|
SRCDIR=$(srcdir) $(RUNSHARED) \
|
2002-11-21 20:29:57 +00:00
|
|
|
./$(BUILDPYTHON) $(srcdir)/Tools/idle/setup.py install \
|
|
|
|
--check-tkinter \
|
|
|
|
--prefix=$(prefix) \
|
|
|
|
--install-scripts=$(BINDIR) \
|
|
|
|
--install-platlib=$(DESTSHARED)
|
2002-11-06 21:59:33 +00:00
|
|
|
|
2003-01-01 20:07:49 +00:00
|
|
|
# This installs a few of the useful scripts in Tools/scripts
|
|
|
|
scriptsinstall:
|
2003-01-03 20:39:29 +00:00
|
|
|
SRCDIR=$(srcdir) $(RUNSHARED) \
|
2003-01-01 20:07:49 +00:00
|
|
|
./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \
|
|
|
|
--prefix=$(prefix) \
|
|
|
|
--install-scripts=$(BINDIR)
|
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
# 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
|
|
|
|
|
2001-03-22 00:32:32 +00:00
|
|
|
# Run the configure script.
|
2001-01-24 17:11:43 +00:00
|
|
|
config.status: $(srcdir)/configure
|
2001-03-22 00:32:32 +00:00
|
|
|
$(SHELL) $(srcdir)/configure $(CONFIG_ARGS)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
2001-12-06 21:47:20 +00:00
|
|
|
.PRECIOUS: config.status $(BUILDPYTHON) Makefile Makefile.pre
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Some make's put the object file in the current directory
|
|
|
|
.c.o:
|
2001-01-26 16:14:41 +00:00
|
|
|
$(CC) -c $(PY_CFLAGS) -o $@ $<
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2001-07-26 13:41:06 +00:00
|
|
|
# Rebuild the configure script from configure.in; also rebuild pyconfig.h.in
|
2001-01-24 17:11:43 +00:00
|
|
|
autoconf:
|
|
|
|
(cd $(srcdir); autoconf)
|
|
|
|
(cd $(srcdir); autoheader)
|
|
|
|
|
|
|
|
# Create a tags file for vi
|
|
|
|
tags::
|
|
|
|
cd $(srcdir); \
|
|
|
|
ctags -w -t Include/*.h; \
|
|
|
|
for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
|
|
|
|
done; \
|
2002-02-28 19:26:08 +00:00
|
|
|
sort -o tags tags
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Create a tags file for GNU Emacs
|
|
|
|
TAGS::
|
|
|
|
cd $(srcdir); \
|
|
|
|
etags Include/*.h; \
|
|
|
|
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
|
|
|
|
|
|
|
|
clean:
|
2001-02-19 04:35:11 +00:00
|
|
|
find . -name '*.o' -exec rm -f {} ';'
|
2001-04-14 17:57:07 +00:00
|
|
|
find . -name '*.s[ol]' -exec rm -f {} ';'
|
2001-02-03 17:16:29 +00:00
|
|
|
find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
clobber: clean
|
2001-12-06 21:47:20 +00:00
|
|
|
-rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
|
2001-04-14 17:57:07 +00:00
|
|
|
tags TAGS \
|
2001-08-17 15:32:31 +00:00
|
|
|
config.cache config.log pyconfig.h Modules/config.c
|
2001-06-06 17:51:57 +00:00
|
|
|
-rm -rf build platform
|
2003-02-27 23:19:46 +00:00
|
|
|
-rm -rf $(PYTHONFRAMEWORKDIR)
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Make things extra clean, before making a distribution:
|
|
|
|
# remove all generated files, even Makefile[.pre]
|
|
|
|
distclean: clobber
|
2001-02-03 17:16:29 +00:00
|
|
|
-rm -f core Makefile Makefile.pre buildno config.status \
|
2001-01-26 16:14:41 +00:00
|
|
|
Modules/Setup Modules/Setup.local Modules/Setup.config
|
2001-02-03 17:16:29 +00:00
|
|
|
find $(srcdir) '(' -name '*.fdc' -o -name '*~' \
|
|
|
|
-o -name '[@,#]*' -o -name '*.old' \
|
|
|
|
-o -name '*.orig' -o -name '*.rej' \
|
|
|
|
-o -name '*.bak' ')' \
|
|
|
|
-exec rm -f {} ';'
|
2001-01-24 17:11:43 +00:00
|
|
|
|
|
|
|
# Check for smelly exported symbols (not starting with Py/_Py)
|
|
|
|
smelly: all
|
|
|
|
nm -p $(LIBRARY) | \
|
|
|
|
sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2001-08-18 21:08:22 +00:00
|
|
|
# Dependencies
|
|
|
|
|
2001-12-02 13:02:32 +00:00
|
|
|
Python/thread.o: @THREADHEADERS@
|
2001-08-18 21:08:22 +00:00
|
|
|
|
2002-10-10 15:04:04 +00:00
|
|
|
# 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
|
|
|
|
|
2001-01-24 17:11:43 +00:00
|
|
|
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|