Exception handling now raises KeyboardInterrupt and SystemExit rather than passing...
[python.git] / Makefile.pre.in
blob7a69a6bf054c9f5d7f5c74280867f07d59d8e1ba
1 # Top-level Makefile for Python
3 # As distributed, this file is called Makefile.pre.in; it is processed
4 # into the real Makefile by running the script ./configure, which
5 # replaces things like @spam@ with values appropriate for your system.
6 # This means that if you edit Makefile, your changes get lost the next
7 # time you run the configure script.  Ideally, you can do:
9 #       ./configure
10 #       make
11 #       make test
12 #       make install
14 # If you have a previous version of Python installed that you don't
15 # want to overwrite, you can use "make altinstall" instead of "make
16 # install".  Refer to the "Installing" section in the README file for
17 # additional details.
19 # See also the section "Build instructions" in the README file.
21 # === Variables set by makesetup ===
23 MODOBJS=        _MODOBJS_
24 MODLIBS=        _MODLIBS_
26 # === Variables set by configure
27 VERSION=        @VERSION@
28 srcdir=         @srcdir@
29 VPATH=          @srcdir@
31 CC=             @CC@
32 CXX=            @CXX@
33 LINKCC=         @LINKCC@
34 AR=             @AR@
35 RANLIB=         @RANLIB@
37 # Shell used by make (some versions default to the login shell, which is bad)
38 SHELL=          /bin/sh
40 # Use this to make a link between python$(VERSION) and python in $(BINDIR)
41 LN=             @LN@
43 # Portable install script (configure doesn't always guess right)
44 INSTALL=        @INSTALL@
45 INSTALL_PROGRAM=@INSTALL_PROGRAM@
46 INSTALL_SCRIPT= @INSTALL_SCRIPT@
47 INSTALL_DATA=   @INSTALL_DATA@
48 # Shared libraries must be installed with executable mode on some systems;
49 # rather than figuring out exactly which, we always give them executable mode.
50 # Also, making them read-only seems to be a good idea...
51 INSTALL_SHARED= ${INSTALL} -m 555
53 MAKESETUP=      $(srcdir)/Modules/makesetup
55 # Compiler options
56 OPT=            @OPT@
57 BASECFLAGS=     @BASECFLAGS@
58 CFLAGS=         $(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS)
59 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
60 # be able to build extension modules using the directories specified in the
61 # environment variables
62 CPPFLAGS=       -I. -I$(srcdir)/Include @CPPFLAGS@
63 LDFLAGS=        @LDFLAGS@
64 LDLAST=         @LDLAST@
65 SGI_ABI=        @SGI_ABI@
66 CCSHARED=       @CCSHARED@
67 LINKFORSHARED=  @LINKFORSHARED@
68 # Extra C flags added for building the interpreter object files.
69 CFLAGSFORSHARED=@CFLAGSFORSHARED@
70 # C flags used for building the interpreter object files
71 PY_CFLAGS=      $(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
74 # Machine-dependent subdirectories
75 MACHDEP=        @MACHDEP@
77 # Install prefix for architecture-independent files
78 prefix=         @prefix@
80 # Install prefix for architecture-dependent files
81 exec_prefix=    @exec_prefix@
83 # Expanded directories
84 BINDIR=         $(exec_prefix)/bin
85 LIBDIR=         $(exec_prefix)/lib
86 MANDIR=         @mandir@
87 INCLUDEDIR=     @includedir@
88 CONFINCLUDEDIR= $(exec_prefix)/include
89 SCRIPTDIR=      $(prefix)/lib
91 # Detailed destination directories
92 BINLIBDEST=     $(LIBDIR)/python$(VERSION)
93 LIBDEST=        $(SCRIPTDIR)/python$(VERSION)
94 INCLUDEPY=      $(INCLUDEDIR)/python$(VERSION)
95 CONFINCLUDEPY=  $(CONFINCLUDEDIR)/python$(VERSION)
96 LIBP=           $(LIBDIR)/python$(VERSION)
98 # Symbols used for using shared libraries
99 SO=             @SO@
100 LDSHARED=       @LDSHARED@
101 BLDSHARED=      @BLDSHARED@
102 DESTSHARED=     $(BINLIBDEST)/lib-dynload
104 # Executable suffix (.exe on Windows and Mac OS X)
105 EXE=            @EXEEXT@
106 BUILDEXE=       @BUILDEXEEXT@
108 # Short name and location for Mac OS X Python framework
109 PYTHONFRAMEWORK=        @PYTHONFRAMEWORK@
110 PYTHONFRAMEWORKDIR=     @PYTHONFRAMEWORKDIR@
111 PYTHONFRAMEWORKPREFIX=  @PYTHONFRAMEWORKPREFIX@
112 PYTHONFRAMEWORKINSTALLDIR= @PYTHONFRAMEWORKINSTALLDIR@
113 # Deployment target selected during configure, to be checked
114 # by distutils
115 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
116 # Options to enable prebinding (for fast startup prior to Mac OS X 10.3)
117 OTHER_LIBTOOL_OPT=@OTHER_LIBTOOL_OPT@
119 # Environment to run shared python without installed libraries
120 RUNSHARED=       @RUNSHARED@
122 # Modes for directories, executables and data files created by the
123 # install process.  Default to user-only-writable for all file types.
124 DIRMODE=        755
125 EXEMODE=        755
126 FILEMODE=       644
128 # configure script arguments
129 CONFIG_ARGS=    @CONFIG_ARGS@
132 # Subdirectories with code
133 SRCDIRS=        @SRCDIRS@
135 # Other subdirectories
136 SUBDIRSTOO=     Include Lib Misc Demo
138 # Files and directories to be distributed
139 CONFIGFILES=    configure configure.in acconfig.h pyconfig.h.in Makefile.pre.in
140 DISTFILES=      README ChangeLog $(CONFIGFILES)
141 DISTDIRS=       $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
142 DIST=           $(DISTFILES) $(DISTDIRS)
145 LIBRARY=        @LIBRARY@
146 LDLIBRARY=      @LDLIBRARY@
147 BLDLIBRARY=     @BLDLIBRARY@
148 DLLLIBRARY=     @DLLLIBRARY@
149 LDLIBRARYDIR=   @LDLIBRARYDIR@
150 INSTSONAME=     @INSTSONAME@
153 LIBS=           @LIBS@
154 LIBM=           @LIBM@
155 LIBC=           @LIBC@
156 SYSLIBS=        $(LIBM) $(LIBC)
157 SHLIBS=         @SHLIBS@
159 MAINOBJ=        @MAINOBJ@
160 THREADOBJ=      @THREADOBJ@
161 DLINCLDIR=      @DLINCLDIR@
162 DYNLOADFILE=    @DYNLOADFILE@
163 MACHDEP_OBJS=   @MACHDEP_OBJS@
164 UNICODE_OBJS=   @UNICODE_OBJS@
166 PYTHON=         python$(EXE)
167 BUILDPYTHON=    python$(BUILDEXE)
169 # === Definitions added by makesetup ===
172 ##########################################################################
173 # Modules
174 MODULE_OBJS=    \
175                 Modules/config.o \
176                 Modules/getpath.o \
177                 Modules/main.o \
178                 Modules/gcmodule.o
180 # Used of signalmodule.o is not available
181 SIGNAL_OBJS=    @SIGNAL_OBJS@
184 ##########################################################################
185 # Grammar
186 GRAMMAR_H=      $(srcdir)/Include/graminit.h
187 GRAMMAR_C=      $(srcdir)/Python/graminit.c
188 GRAMMAR_INPUT=  $(srcdir)/Grammar/Grammar
191 ##########################################################################
192 # Parser
193 PGEN=           Parser/pgen$(EXE)
195 POBJS=          \
196                 Parser/acceler.o \
197                 Parser/grammar1.o \
198                 Parser/listnode.o \
199                 Parser/node.o \
200                 Parser/parser.o \
201                 Parser/parsetok.o \
202                 Parser/bitset.o \
203                 Parser/metagrammar.o \
204                 Parser/firstsets.o \
205                 Parser/grammar.o \
206                 Parser/pgen.o
208 PARSER_OBJS=    $(POBJS) Parser/myreadline.o Parser/tokenizer.o
210 PGOBJS=         \
211                 Objects/obmalloc.o \
212                 Python/mysnprintf.o \
213                 Parser/tokenizer_pgen.o \
214                 Parser/printgrammar.o \
215                 Parser/pgenmain.o
217 PGENOBJS=       $(PGENMAIN) $(POBJS) $(PGOBJS)
219 ##########################################################################
220 # AST
221 AST_H=          $(srcdir)/Include/Python-ast.h
222 AST_C=          $(srcdir)/Python/Python-ast.c
223 AST_ASDL=       $(srcdir)/Parser/Python.asdl
225 ASDLGEN_FILES=  $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
226 # XXX Note that a build now requires Python exist before the build starts
227 ASDLGEN=        $(srcdir)/Parser/asdl_c.py -h $(srcdir)/Include -c $(srcdir)/Python
229 ##########################################################################
230 # Python
231 PYTHON_OBJS=    \
232                 Python/Python-ast.o \
233                 Python/asdl.o \
234                 Python/ast.o \
235                 Python/bltinmodule.o \
236                 Python/exceptions.o \
237                 Python/ceval.o \
238                 Python/compile.o \
239                 Python/codecs.o \
240                 Python/errors.o \
241                 Python/frozen.o \
242                 Python/frozenmain.o \
243                 Python/future.o \
244                 Python/getargs.o \
245                 Python/getcompiler.o \
246                 Python/getcopyright.o \
247                 Python/getmtime.o \
248                 Python/getplatform.o \
249                 Python/getversion.o \
250                 Python/graminit.o \
251                 Python/import.o \
252                 Python/importdl.o \
253                 Python/marshal.o \
254                 Python/modsupport.o \
255                 Python/mystrtoul.o \
256                 Python/mysnprintf.o \
257                 Python/pyfpe.o \
258                 Python/pystate.o \
259                 Python/pythonrun.o \
260                 Python/structmember.o \
261                 Python/symtable.o \
262                 Python/sysmodule.o \
263                 Python/traceback.o \
264                 Python/getopt.o \
265                 Python/pystrtod.o \
266                 Python/$(DYNLOADFILE) \
267                 $(MACHDEP_OBJS) \
268                 $(THREADOBJ)
271 ##########################################################################
272 # Objects
273 OBJECT_OBJS=    \
274                 Objects/abstract.o \
275                 Objects/boolobject.o \
276                 Objects/bufferobject.o \
277                 Objects/cellobject.o \
278                 Objects/classobject.o \
279                 Objects/cobject.o \
280                 Objects/codeobject.o \
281                 Objects/complexobject.o \
282                 Objects/descrobject.o \
283                 Objects/enumobject.o \
284                 Objects/genobject.o \
285                 Objects/fileobject.o \
286                 Objects/floatobject.o \
287                 Objects/frameobject.o \
288                 Objects/funcobject.o \
289                 Objects/intobject.o \
290                 Objects/iterobject.o \
291                 Objects/listobject.o \
292                 Objects/longobject.o \
293                 Objects/dictobject.o \
294                 Objects/methodobject.o \
295                 Objects/moduleobject.o \
296                 Objects/object.o \
297                 Objects/obmalloc.o \
298                 Objects/rangeobject.o \
299                 Objects/setobject.o \
300                 Objects/sliceobject.o \
301                 Objects/stringobject.o \
302                 Objects/structseq.o \
303                 Objects/tupleobject.o \
304                 Objects/typeobject.o \
305                 Objects/weakrefobject.o \
306                 $(UNICODE_OBJS)
309 ##########################################################################
310 # objects that get linked into the Python library
311 LIBRARY_OBJS=   \
312                 Modules/getbuildinfo.o \
313                 $(PARSER_OBJS) \
314                 $(OBJECT_OBJS) \
315                 $(PYTHON_OBJS) \
316                 $(MODULE_OBJS) \
317                 $(SIGNAL_OBJS) \
318                 $(MODOBJS)
320 #########################################################################
321 # Rules
323 # Default target
324 all:            $(BUILDPYTHON) oldsharedmods sharedmods
326 # Build the interpreter
327 $(BUILDPYTHON): Modules/$(MAINOBJ) $(LIBRARY) $(LDLIBRARY)
328                 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
329                         Modules/$(MAINOBJ) \
330                         $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
332 platform: $(BUILDPYTHON)
333         $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
336 # Build the shared modules
337 sharedmods: $(BUILDPYTHON)
338         case $$MAKEFLAGS in \
339         *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
340         *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
341         esac
343 # buildno should really depend on something like LIBRARY_SRC
344 buildno: $(PARSER_OBJS) \
345                 $(OBJECT_OBJS) \
346                 $(PYTHON_OBJS) \
347                 $(MODULE_OBJS) \
348                 $(SIGNAL_OBJS) \
349                 $(MODOBJS) \
350                 $(srcdir)/Modules/getbuildinfo.c
351         if test -f buildno; then \
352                 expr `cat buildno` + 1 >buildno1; \
353                 mv -f buildno1 buildno; \
354         else echo 1 >buildno; fi
356 # Build static library
357 # avoid long command lines, same as LIBRARY_OBJS
358 $(LIBRARY): $(LIBRARY_OBJS)
359         -rm -f $@
360         $(AR) cr $@ Modules/getbuildinfo.o
361         $(AR) cr $@ $(PARSER_OBJS)
362         $(AR) cr $@ $(OBJECT_OBJS)
363         $(AR) cr $@ $(PYTHON_OBJS)
364         $(AR) cr $@ $(MODULE_OBJS) $(SIGNAL_OBJS)
365         $(AR) cr $@ $(MODOBJS)
366         $(RANLIB) $@
368 libpython$(VERSION).so: $(LIBRARY_OBJS)
369         if test $(INSTSONAME) != $(LDLIBRARY); then \
370                 $(LDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
371                 $(LN) -f $(INSTSONAME) $@; \
372         else\
373                 $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
374         fi
376 libpython$(VERSION).sl: $(LIBRARY_OBJS)
377         $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM)
379 # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
380 # minimal framework (not including the Lib directory and such) in the current
381 # directory.
382 RESSRCDIR=$(srcdir)/Mac/OSXResources/framework
383 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
384                 $(LIBRARY) \
385                 $(RESSRCDIR)/Info.plist \
386                 $(RESSRCDIR)/version.plist \
387                 $(RESSRCDIR)/English.lproj/InfoPlist.strings
388         $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
389         libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
390                 @LIBTOOL_CRUFT@
391         $(INSTALL) -d -m $(DIRMODE)  \
392                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
393         $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \
394                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist
395         $(INSTALL_DATA) $(RESSRCDIR)/version.plist \
396                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/version.plist
397         $(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
398                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj/InfoPlist.strings
399         $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
400         $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
401         $(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
402         $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
404 # This rule builds the Cygwin Python DLL and import library if configured
405 # for a shared core library; otherwise, this rule is a noop.
406 $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
407         if test -n "$(DLLLIBRARY)"; then \
408                 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
409                         $(LIBS) $(MODLIBS) $(SYSLIBS); \
410         else true; \
411         fi
414 oldsharedmods: $(SHAREDMODS)
417 Makefile Modules/config.c: Makefile.pre \
418                                 $(srcdir)/Modules/config.c.in \
419                                 $(MAKESETUP) \
420                                 Modules/Setup.config \
421                                 Modules/Setup \
422                                 Modules/Setup.local
423         $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
424                                 -s Modules \
425                                 Modules/Setup.config \
426                                 Modules/Setup.local \
427                                 Modules/Setup
428         @mv config.c Modules
429         @echo "The Makefile was updated, you may need to re-run make."
432 Modules/Setup: $(srcdir)/Modules/Setup.dist
433         @if test -f Modules/Setup; then \
434                 echo "-----------------------------------------------"; \
435                 echo "Modules/Setup.dist is newer than Modules/Setup;"; \
436                 echo "check to make sure you have all the updates you"; \
437                 echo "need in your Modules/Setup file."; \
438                 echo "Usually, copying Setup.dist to Setup will work."; \
439                 echo "-----------------------------------------------"; \
440         fi
442 ############################################################################
443 # Special rules for object files
445 Modules/getbuildinfo.o: $(srcdir)/Modules/getbuildinfo.c buildno
446         $(CC) -c $(PY_CFLAGS) -DBUILD=`cat buildno` -o $@ $(srcdir)/Modules/getbuildinfo.c
448 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
449         $(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
450                 -DPREFIX='"$(prefix)"' \
451                 -DEXEC_PREFIX='"$(exec_prefix)"' \
452                 -DVERSION='"$(VERSION)"' \
453                 -DVPATH='"$(VPATH)"' \
454                 -o $@ $(srcdir)/Modules/getpath.c
456 Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc
457         $(CXX) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/ccpython.cc
460 $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
461                 -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
463 $(PGEN):        $(PGENOBJS)
464                 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
466 Parser/grammar.o:       $(srcdir)/Parser/grammar.c \
467                                 $(srcdir)/Include/token.h \
468                                 $(srcdir)/Include/grammar.h
469 Parser/metagrammar.o:   $(srcdir)/Parser/metagrammar.c
471 Parser/tokenizer_pgen.o:        $(srcdir)/Parser/tokenizer.c
473 $(AST_H) $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
474         $(ASDLGEN) $(AST_ASDL)
476 Python/compile.o Python/symtable.o: $(GRAMMAR_H) $(AST_H)
478 Python/getplatform.o: $(srcdir)/Python/getplatform.c
479                 $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
481 Python/importdl.o: $(srcdir)/Python/importdl.c
482                 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
484 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \
485                                 $(srcdir)/Objects/unicodetype_db.h
487 ############################################################################
488 # Header files
490 PYTHON_HEADERS= \
491                 Include/Python.h \
492                 Include/Python-ast.h \
493                 Include/asdl.h \
494                 Include/abstract.h \
495                 Include/boolobject.h \
496                 Include/bufferobject.h \
497                 Include/ceval.h \
498                 Include/classobject.h \
499                 Include/cobject.h \
500                 Include/code.h \
501                 Include/codecs.h \
502                 Include/compile.h \
503                 Include/complexobject.h \
504                 Include/descrobject.h \
505                 Include/dictobject.h \
506                 Include/enumobject.h \
507                 Include/genobject.h \
508                 Include/fileobject.h \
509                 Include/floatobject.h \
510                 Include/funcobject.h \
511                 Include/import.h \
512                 Include/intobject.h \
513                 Include/intrcheck.h \
514                 Include/iterobject.h \
515                 Include/listobject.h \
516                 Include/longobject.h \
517                 Include/methodobject.h \
518                 Include/modsupport.h \
519                 Include/moduleobject.h \
520                 Include/object.h \
521                 Include/objimpl.h \
522                 Include/patchlevel.h \
523                 Include/pydebug.h \
524                 Include/pyerrors.h \
525                 Include/pyfpe.h \
526                 Include/pymem.h \
527                 Include/pyport.h \
528                 Include/pystate.h \
529                 Include/pythonrun.h \
530                 Include/rangeobject.h \
531                 Include/setobject.h \
532                 Include/sliceobject.h \
533                 Include/stringobject.h \
534                 Include/structseq.h \
535                 Include/structmember.h \
536                 Include/symtable.h \
537                 Include/sysmodule.h \
538                 Include/traceback.h \
539                 Include/tupleobject.h \
540                 Include/unicodeobject.h \
541                 Include/weakrefobject.h \
542                 pyconfig.h
544 $(LIBRARY_OBJS) $(MODOBJS) Modules/$(MAINOBJ): $(PYTHON_HEADERS)
547 ######################################################################
549 # Test the interpreter (twice, once without .pyc files, once with)
550 # In the past, we've had problems where bugs in the marshalling or
551 # elsewhere caused bytecode read from .pyc files to behave differently
552 # than bytecode generated directly from a .py source file.  Sometimes
553 # the bytecode read from a .pyc file had the bug, somtimes the directly
554 # generated bytecode.  This is sometimes a very shy bug needing a lot of
555 # sample data.
557 TESTOPTS=       -l
558 TESTPROG=       $(srcdir)/Lib/test/regrtest.py
559 TESTPYTHON=     $(RUNSHARED) ./$(BUILDPYTHON) -E -tt
560 test:           all platform
561                 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
562                 -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
563                 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
565 testall:        all platform
566                 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
567                 -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
568                 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
570 QUICKTESTOPTS=  $(TESTOPTS) -x test_thread test_signal test_strftime \
571                 test_unicodedata test_re test_sre test_select test_poll \
572                 test_linuxaudiodev test_struct test_sunaudiodev test_zlib
573 quicktest:      all platform
574                 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
575                 -$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
576                 $(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
578 MEMTESTOPTS=    $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \
579                 test_longexp
580 memtest:        all platform
581                 -rm -f $(srcdir)/Lib/test/*.py[co]
582                 -$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
583                 $(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
585 # Install everything
586 install:        altinstall bininstall maninstall
588 # Install almost everything without disturbing previous versions
589 altinstall:     altbininstall libinstall inclinstall libainstall \
590                 sharedinstall oldsharedinstall
592 # Install shared libraries enabled by Setup
593 DESTDIRS=       $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
595 oldsharedinstall: $(DESTSHARED) $(SHAREDMODS)
596                 @for i in X $(SHAREDMODS); do \
597                   if test $$i != X; then \
598                     echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
599                     $(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
600                   fi; \
601                 done
603 $(DESTSHARED):
604                 @for i in $(DESTDIRS); \
605                 do \
606                         if test ! -d $(DESTDIR)$$i; then \
607                                 echo "Creating directory $$i"; \
608                                 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
609                         else    true; \
610                         fi; \
611                 done
614 # Install the interpreter (by creating a hard link to python$(VERSION))
615 bininstall:     altbininstall
616         -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
617         then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
618         else true; \
619         fi
620         (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
622 # Install the interpreter with $(VERSION) affixed
623 # This goes into $(exec_prefix)
624 altbininstall:  $(BUILDPYTHON)
625         @if test "$(PYTHONFRAMEWORKDIR)" != no-framework; then \
626                 if test ! -f $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current/Resources/Info.plist; then \
627                         echo 'Framework build: use "make frameworkinstall" in stead of "make install"'; \
628                         exit 1; \
629                 fi; \
630         fi
631         @for i in $(BINDIR) $(LIBDIR); \
632         do \
633                 if test ! -d $(DESTDIR)$$i; then \
634                         echo "Creating directory $$i"; \
635                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
636                 else    true; \
637                 fi; \
638         done
639         $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE)
640         if test -f libpython$(VERSION)$(SO); then \
641                 if test "$(SO)" = .dll; then \
642                         $(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(BINDIR); \
643                 else \
644                         $(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \
645                         if test libpython$(VERSION)$(SO) != $(INSTSONAME); then \
646                                 (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
647                         fi \
648                 fi; \
649         else    true; \
650         fi
652 # Install the manual page
653 maninstall:
654         @for i in $(MANDIR) $(MANDIR)/man1; \
655         do \
656                 if test ! -d $(DESTDIR)$$i; then \
657                         echo "Creating directory $$i"; \
658                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
659                 else    true; \
660                 fi; \
661         done
662         $(INSTALL_DATA) $(srcdir)/Misc/python.man \
663                 $(DESTDIR)$(MANDIR)/man1/python.1
665 # Install the library
666 PLATDIR=        plat-$(MACHDEP)
667 EXTRAPLATDIR= @EXTRAPLATDIR@
668 EXTRAMACHDEPPATH=@EXTRAMACHDEPPATH@
669 MACHDEPS=       $(PLATDIR) $(EXTRAPLATDIR)
670 XMLLIBSUBDIRS=  xml xml/dom xml/parsers xml/sax
671 PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \
672         plat-mac/lib-scriptpackages/_builtinSuites \
673         plat-mac/lib-scriptpackages/CodeWarrior \
674         plat-mac/lib-scriptpackages/Explorer \
675         plat-mac/lib-scriptpackages/Finder \
676         plat-mac/lib-scriptpackages/Netscape \
677         plat-mac/lib-scriptpackages/StdSuites \
678         plat-mac/lib-scriptpackages/SystemEvents \
679         plat-mac/lib-scriptpackages/Terminal
680 PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
681 LIBSUBDIRS=     lib-old lib-tk site-packages test test/output test/data \
682                 test/decimaltestdata \
683                 encodings email email/test email/test/data compiler hotshot \
684                 logging bsddb bsddb/test csv idlelib idlelib/Icons \
685                 distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
686                 curses $(MACHDEPS)
687 libinstall:     $(BUILDPYTHON) $(srcdir)/Lib/$(PLATDIR)
688         @for i in $(SCRIPTDIR) $(LIBDEST); \
689         do \
690                 if test ! -d $(DESTDIR)$$i; then \
691                         echo "Creating directory $$i"; \
692                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
693                 else    true; \
694                 fi; \
695         done
696         @for d in $(LIBSUBDIRS); \
697         do \
698                 a=$(srcdir)/Lib/$$d; \
699                 if test ! -d $$a; then continue; else true; fi; \
700                 b=$(LIBDEST)/$$d; \
701                 if test ! -d $(DESTDIR)$$b; then \
702                         echo "Creating directory $$b"; \
703                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \
704                 else    true; \
705                 fi; \
706         done
707         @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc; \
708         do \
709                 if test -x $$i; then \
710                         $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \
711                         echo $(INSTALL_SCRIPT) $$i $(LIBDEST); \
712                 else \
713                         $(INSTALL_DATA) $$i $(DESTDIR)$(LIBDEST); \
714                         echo $(INSTALL_DATA) $$i $(LIBDEST); \
715                 fi; \
716         done
717         @for d in $(LIBSUBDIRS); \
718         do \
719                 a=$(srcdir)/Lib/$$d; \
720                 if test ! -d $$a; then continue; else true; fi; \
721                 b=$(LIBDEST)/$$d; \
722                 for i in $$a/*; \
723                 do \
724                         case $$i in \
725                         *CVS) ;; \
726                         *.py[co]) ;; \
727                         *.orig) ;; \
728                         *~) ;; \
729                         *) \
730                                 if test -d $$i; then continue; fi; \
731                                 if test -x $$i; then \
732                                     echo $(INSTALL_SCRIPT) $$i $$b; \
733                                     $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \
734                                 else \
735                                     echo $(INSTALL_DATA) $$i $$b; \
736                                     $(INSTALL_DATA) $$i $(DESTDIR)$$b; \
737                                 fi;; \
738                         esac; \
739                 done; \
740         done
741         $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
742         PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
743                 ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
744                 -d $(LIBDEST) -f \
745                 -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
746         PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
747                 ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
748                 -d $(LIBDEST) -f \
749                 -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
750         -PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
751                 ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
752                 -d $(LIBDEST)/site-packages -f \
753                 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
754         -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
755                 ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
756                 -d $(LIBDEST)/site-packages -f \
757                 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
759 # Create the PLATDIR source directory, if one wasn't distributed..
760 $(srcdir)/Lib/$(PLATDIR):
761         mkdir $(srcdir)/Lib/$(PLATDIR)
762         cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
763         export PATH; PATH="`pwd`:$$PATH"; \
764         export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
765         export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
766         export EXE; EXE="$(BUILDEXE)"; \
767         cd $(srcdir)/Lib/$(PLATDIR); ./regen
769 # Install the include files
770 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
771 inclinstall:
772         @for i in $(INCLDIRSTOMAKE); \
773         do \
774                 if test ! -d $(DESTDIR)$$i; then \
775                         echo "Creating directory $$i"; \
776                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
777                 else    true; \
778                 fi; \
779         done
780         @for i in $(srcdir)/Include/*.h; \
781         do \
782                 echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
783                 $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
784         done
785         $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
787 # Install the library and miscellaneous stuff needed for extending/embedding
788 # This goes into $(exec_prefix)
789 LIBPL=          $(LIBP)/config
790 libainstall:    all
791         @for i in $(LIBDIR) $(LIBP) $(LIBPL); \
792         do \
793                 if test ! -d $(DESTDIR)$$i; then \
794                         echo "Creating directory $$i"; \
795                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
796                 else    true; \
797                 fi; \
798         done
799         @if test -d $(LIBRARY); then :; else \
800                 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
801                         if test "$(SO)" = .dll; then \
802                                 $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
803                         else \
804                                 $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
805                                 $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
806                         fi; \
807                 else \
808                         echo Skip install of $(LIBRARY) - use make frameworkinstall; \
809                 fi; \
810         fi
811         $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
812         $(INSTALL_DATA) Modules/$(MAINOBJ) $(DESTDIR)$(LIBPL)/$(MAINOBJ)
813         $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in
814         $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
815         $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
816         $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
817         $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
818         $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup
819         $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
820         @if [ -s Modules/python.exp -a \
821                 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
822                 echo; echo "Installing support files for building shared extension modules on AIX:"; \
823                 $(INSTALL_DATA) Modules/python.exp              \
824                                 $(DESTDIR)$(LIBPL)/python.exp;          \
825                 echo; echo "$(LIBPL)/python.exp";               \
826                 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix  \
827                                 $(DESTDIR)$(LIBPL)/makexp_aix;          \
828                 echo "$(LIBPL)/makexp_aix";                     \
829                 $(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix   \
830                                 $(DESTDIR)$(LIBPL)/ld_so_aix;           \
831                 echo "$(LIBPL)/ld_so_aix";                      \
832                 echo; echo "See Misc/AIX-NOTES for details.";   \
833         else true; \
834         fi
835         @case "$(MACHDEP)" in beos*) \
836                 echo; echo "Installing support files for building shared extension modules on BeOS:"; \
837                 $(INSTALL_DATA) Misc/BeOS-NOTES $(DESTDIR)$(LIBPL)/README;      \
838                 echo; echo "$(LIBPL)/README";                   \
839                 $(INSTALL_SCRIPT) Modules/ar_beos $(DESTDIR)$(LIBPL)/ar_beos; \
840                 echo "$(LIBPL)/ar_beos";                        \
841                 $(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_beos; \
842                 echo "$(LIBPL)/ld_so_beos";                     \
843                 echo; echo "See Misc/BeOS-NOTES for details.";  \
844                 ;; \
845         esac
847 # Install the dynamically loadable modules
848 # This goes into $(exec_prefix)
849 sharedinstall:
850         $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
851                 --prefix=$(prefix) \
852                 --install-scripts=$(BINDIR) \
853                 --install-platlib=$(DESTSHARED) \
854                 --root=/$(DESTDIR)
856 # Here are a couple of targets for MacOSX again, to install a full
857 # framework-based Python. frameworkinstall installs everything, the
858 # subtargets install specific parts. Much of the actual work is offloaded to
859 # the Makefile in Mac/OSX
861 frameworkinstall: frameworkinstallframework \
862         frameworkinstallapps frameworkinstallunixtools
864 # On install, we re-make the framework
865 # structure in the install location, /Library/Frameworks/ or the argument to
866 # --enable-framework. If --enable-framework has been specified then we have
867 # automatically set prefix to the location deep down in the framework, so we
868 # only have to cater for the structural bits of the framework.
870 frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib
872 frameworkinstallstructure:      $(LDLIBRARY)
873         @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
874                 echo Not configured with --enable-framework; \
875                 exit 1; \
876         else true; \
877         fi
878         @for i in $(prefix)/Resources/English.lproj $(prefix)/lib; do\
879                 if test ! -d $(DESTDIR)$$i; then \
880                         echo "Creating directory $(DESTDIR)$$i"; \
881                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
882                 else    true; \
883                 fi; \
884         done
885         $(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers
886         $(INSTALL_DATA) $(RESSRCDIR)/Info.plist $(DESTDIR)$(prefix)/Resources/Info.plist
887         $(INSTALL_DATA) $(RESSRCDIR)/version.plist $(DESTDIR)$(prefix)/Resources/version.plist
888         $(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
889                 $(DESTDIR)$(prefix)/Resources/English.lproj/InfoPlist.strings
890         $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
891         $(LN) -fsn Versions/Current/Python $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Python
892         $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
893         $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
894         $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY)
896 # This installs Mac/Lib into the framework
897 frameworkinstallmaclib:
898         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installmacsubtree \
899                 $(RUNSHARED) BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
900                 srcdir=$(srcdir) builddir=. prefix=$(prefix) LIBDEST=$(LIBDEST) \
901                 DESTDIR=$(DESTDIR)
903 # This installs the IDE, the Launcher and other apps into /Applications
904 frameworkinstallapps:
905         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installapps \
906                 $(RUNSHARED) BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
907                 srcdir=$(srcdir) builddir=. DESTDIR=$(DESTDIR) prefix=$(prefix)
909 # This install the unix python and pythonw tools in /usr/local/bin
910 frameworkinstallunixtools:
911         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installunixtools \
912                 DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
913                 srcdir=$(srcdir) builddir=. DESTDIR=$(DESTDIR) prefix=$(prefix)
915 # This installs the Demos and Tools into the applications directory.
916 # It is not part of a normal frameworkinstall
917 frameworkinstallextras:
918         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installextras \
919                 $(RUNSHARED) BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
920                 srcdir=$(srcdir) builddir=. DESTDIR=$(DESTDIR)
922 # This installs a few of the useful scripts in Tools/scripts
923 scriptsinstall:
924         SRCDIR=$(srcdir) $(RUNSHARED) \
925         ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \
926         --prefix=$(prefix) \
927         --install-scripts=$(BINDIR) \
928         --root=/$(DESTDIR)
930 # Build the toplevel Makefile
931 Makefile.pre: Makefile.pre.in config.status
932         CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status
933         $(MAKE) -f Makefile.pre Makefile
935 # Run the configure script.
936 config.status:  $(srcdir)/configure
937         $(SHELL) $(srcdir)/configure $(CONFIG_ARGS)
939 .PRECIOUS: config.status $(BUILDPYTHON) Makefile Makefile.pre
941 # Some make's put the object file in the current directory
942 .c.o:
943         $(CC) -c $(PY_CFLAGS) -o $@ $<
945 # Rerun configure with the same options as it was run last time,
946 # provided the config.status script exists
947 recheck:
948         $(SHELL) config.status --recheck
949         $(SHELL) config.status
951 # Rebuild the configure script from configure.in; also rebuild pyconfig.h.in
952 autoconf:
953         (cd $(srcdir); autoconf)
954         (cd $(srcdir); autoheader)
956 # Create a tags file for vi
957 tags::
958         cd $(srcdir); \
959         ctags -w -t Include/*.h; \
960         for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
961         done; \
962         sort -o tags tags
964 # Create a tags file for GNU Emacs
965 TAGS::
966         cd $(srcdir); \
967         etags Include/*.h; \
968         for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
970 # Sanitation targets -- clean leaves libraries, executables and tags
971 # files, which clobber removes those as well
973 clean:
974         find . -name '*.o' -exec rm -f {} ';'
975         find . -name '*.s[ol]' -exec rm -f {} ';'
976         find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
978 clobber: clean
979         -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
980                 tags TAGS \
981                 config.cache config.log pyconfig.h Modules/config.c
982         -rm -rf build platform
983         -rm -rf $(PYTHONFRAMEWORKDIR)
985 # Make things extra clean, before making a distribution:
986 # remove all generated files, even Makefile[.pre]
987 distclean: clobber
988         -rm -f core Makefile Makefile.pre buildno config.status \
989                 Modules/Setup Modules/Setup.local Modules/Setup.config
990         find $(srcdir) '(' -name '*.fdc' -o -name '*~' \
991                            -o -name '[@,#]*' -o -name '*.old' \
992                            -o -name '*.orig' -o -name '*.rej' \
993                            -o -name '*.bak' ')' \
994                            -exec rm -f {} ';'
996 # Check for smelly exported symbols (not starting with Py/_Py)
997 smelly: all
998         nm -p $(LIBRARY) | \
999                 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
1001 # Find files with funny names
1002 funny:
1003         find $(DISTDIRS) -type d \
1004                 -o -name '*.[chs]' \
1005                 -o -name '*.py' \
1006                 -o -name '*.doc' \
1007                 -o -name '*.sty' \
1008                 -o -name '*.bib' \
1009                 -o -name '*.dat' \
1010                 -o -name '*.el' \
1011                 -o -name '*.fd' \
1012                 -o -name '*.in' \
1013                 -o -name '*.tex' \
1014                 -o -name '*,[vpt]' \
1015                 -o -name 'Setup' \
1016                 -o -name 'Setup.*' \
1017                 -o -name README \
1018                 -o -name Makefile \
1019                 -o -name ChangeLog \
1020                 -o -name Repository \
1021                 -o -name Root \
1022                 -o -name Entries \
1023                 -o -name Tag \
1024                 -o -name tags \
1025                 -o -name TAGS \
1026                 -o -name .cvsignore \
1027                 -o -name MANIFEST \
1028                 -o -print
1030 # Dependencies
1032 Python/thread.o: @THREADHEADERS@
1034 # Declare targets that aren't real files
1035 .PHONY: all sharedmods oldsharedmods test quicktest memtest
1036 .PHONY: install altinstall oldsharedinstall bininstall altbininstall
1037 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall
1038 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1039 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1040 .PHONY: recheck autoconf clean clobber distclean smelly funny
1042 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY