Debian Codegraph @

cpython27/Makefile.pre.in

raw
1 # Top-level Makefile for Python
2 #
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:
8 #
9 # ./configure
10 # make
11 # make test
12 # make install
13 #
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.
18 #
19 # See also the section "Build instructions" in the README file.
20
21 # === Variables set by makesetup ===
22
23 MODOBJS= _MODOBJS_
24 MODLIBS= _MODLIBS_
25
26 # === Variables set by configure
27 VERSION= @VERSION@
28 srcdir= @srcdir@
29 VPATH= @srcdir@
30 abs_srcdir= @abs_srcdir@
31 abs_builddir= @abs_builddir@
32 build= @build@
33 host= @host@
34
35 CC= @CC@
36 CXX= @CXX@
37 MAINCC= @MAINCC@
38 LINKCC= @LINKCC@
39 AR= @AR@
40 RANLIB= @RANLIB@
41 GITVERSION= @GITVERSION@
42 GITTAG= @GITTAG@
43 GITBRANCH= @GITBRANCH@
44 PGO_PROF_GEN_FLAG=@PGO_PROF_GEN_FLAG@
45 PGO_PROF_USE_FLAG=@PGO_PROF_USE_FLAG@
46 LLVM_PROF_MERGER=@LLVM_PROF_MERGER@
47 LLVM_PROF_FILE=@LLVM_PROF_FILE@
48 LLVM_PROF_ERR=@LLVM_PROF_ERR@
49
50 GNULD= @GNULD@
51
52 # Shell used by make (some versions default to the login shell, which is bad)
53 SHELL= /bin/sh
54
55 # Use this to make a link between python$(VERSION) and python in $(BINDIR)
56 LN= @LN@
57
58 # Portable install script (configure doesn't always guess right)
59 INSTALL= @INSTALL@
60 INSTALL_PROGRAM=@INSTALL_PROGRAM@
61 INSTALL_SCRIPT= @INSTALL_SCRIPT@
62 INSTALL_DATA= @INSTALL_DATA@
63 # Shared libraries must be installed with executable mode on some systems;
64 # rather than figuring out exactly which, we always give them executable mode.
65 # Also, making them read-only seems to be a good idea...
66 INSTALL_SHARED= ${INSTALL} -m 555
67
68 MKDIR_P= @MKDIR_P@
69
70 MAKESETUP= $(srcdir)/Modules/makesetup
71
72 # Compiler options
73 OPT= @OPT@
74 BASECFLAGS= @BASECFLAGS@
75 CFLAGS= $(BASECFLAGS) @CFLAGS@ $(OPT) $(EXTRA_CFLAGS)
76 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
77 # be able to build extension modules using the directories specified in the
78 # environment variables
79 CPPFLAGS= -I. -IInclude -I$(srcdir)/Include @CPPFLAGS@
80 LDFLAGS= @LDFLAGS@
81 LDLAST= @LDLAST@
82 SGI_ABI= @SGI_ABI@
83 CCSHARED= @CCSHARED@
84 LINKFORSHARED= @LINKFORSHARED@
85 ARFLAGS= @ARFLAGS@
86 # Extra C flags added for building the interpreter object files.
87 CFLAGSFORSHARED=@CFLAGSFORSHARED@
88 # C flags used for building the interpreter object files
89 PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
90
91
92 # Machine-dependent subdirectories
93 MACHDEP= @MACHDEP@
94
95 # Multiarch directory (may be empty)
96 MULTIARCH= @MULTIARCH@
97
98 # Install prefix for architecture-independent files
99 prefix= @prefix@
100
101 # Install prefix for architecture-dependent files
102 exec_prefix= @exec_prefix@
103
104 # Install prefix for data files
105 datarootdir= @datarootdir@
106
107 # Expanded directories
108 BINDIR= @bindir@
109 LIBDIR= @libdir@
110 MANDIR= @mandir@
111 INCLUDEDIR= @includedir@
112 CONFINCLUDEDIR= $(exec_prefix)/include
113 SCRIPTDIR= $(prefix)/lib
114
115 # Detailed destination directories
116 BINLIBDEST= $(LIBDIR)/python$(VERSION)
117 LIBDEST= $(SCRIPTDIR)/python$(VERSION)
118 INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
119 CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(VERSION)
120 LIBP= $(LIBDIR)/python$(VERSION)
121
122 # Symbols used for using shared libraries
123 SO= @SO@
124 LDSHARED= @LDSHARED@ $(LDFLAGS)
125 BLDSHARED= @BLDSHARED@ $(LDFLAGS)
126 LDCXXSHARED= @LDCXXSHARED@
127 DESTSHARED= $(BINLIBDEST)/lib-dynload
128
129 # Executable suffix (.exe on Windows and Mac OS X)
130 EXE= @EXEEXT@
131 BUILDEXE= @BUILDEXEEXT@
132
133 # Short name and location for Mac OS X Python framework
134 UNIVERSALSDK=@UNIVERSALSDK@
135 PYTHONFRAMEWORK= @PYTHONFRAMEWORK@
136 PYTHONFRAMEWORKDIR= @PYTHONFRAMEWORKDIR@
137 PYTHONFRAMEWORKPREFIX= @PYTHONFRAMEWORKPREFIX@
138 PYTHONFRAMEWORKINSTALLDIR= @PYTHONFRAMEWORKINSTALLDIR@
139 # Deployment target selected during configure, to be checked
140 # by distutils. The export statement is needed to ensure that the
141 # deployment target is active during build.
142 MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
143 @EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET
144
145 # Options to enable prebinding (for fast startup prior to Mac OS X 10.3)
146 OTHER_LIBTOOL_OPT=@OTHER_LIBTOOL_OPT@
147
148 # Environment to run shared python without installed libraries
149 RUNSHARED= @RUNSHARED@
150
151 # ensurepip options
152 ENSUREPIP= @ENSUREPIP@
153
154 # Modes for directories, executables and data files created by the
155 # install process. Default to user-only-writable for all file types.
156 DIRMODE= 755
157 EXEMODE= 755
158 FILEMODE= 644
159
160 # configure script arguments
161 CONFIG_ARGS= @CONFIG_ARGS@
162
163
164 # Subdirectories with code
165 SRCDIRS= @SRCDIRS@
166
167 # Other subdirectories
168 SUBDIRSTOO= Include Lib Misc Demo
169
170 # Files and directories to be distributed
171 CONFIGFILES= configure configure.ac acconfig.h pyconfig.h.in Makefile.pre.in
172 DISTFILES= README ChangeLog $(CONFIGFILES)
173 DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
174 DIST= $(DISTFILES) $(DISTDIRS)
175
176
177 LIBRARY= @LIBRARY@
178 LDLIBRARY= @LDLIBRARY@
179 BLDLIBRARY= @BLDLIBRARY@
180 DLLLIBRARY= @DLLLIBRARY@
181 LDLIBRARYDIR= @LDLIBRARYDIR@
182 INSTSONAME= @INSTSONAME@
183
184
185 LIBS= @LIBS@
186 LIBM= @LIBM@
187 LIBC= @LIBC@
188 SYSLIBS= $(LIBM) $(LIBC)
189 SHLIBS= @SHLIBS@
190
191 THREADOBJ= @THREADOBJ@
192 DLINCLDIR= @DLINCLDIR@
193 DYNLOADFILE= @DYNLOADFILE@
194 MACHDEP_OBJS= @MACHDEP_OBJS@
195 LIBOBJDIR= Python/
196 LIBOBJS= @LIBOBJS@
197 UNICODE_OBJS= @UNICODE_OBJS@
198
199 PYTHON= python$(EXE)
200 BUILDPYTHON= python$(BUILDEXE)
201
202 PYTHON_FOR_REGEN=@PYTHON_FOR_REGEN@
203 PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
204 _PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
205 HOST_GNU_TYPE= @host@
206
207 # Tcl and Tk config info from --with-tcltk-includes and -libs options
208 TCLTK_INCLUDES= @TCLTK_INCLUDES@
209 TCLTK_LIBS= @TCLTK_LIBS@
210
211 # The task to run while instrument when building the profile-opt target
212 # We exclude unittests with -x that take a rediculious amount of time to
213 # run in the instrumented training build or do not provide much value.
214 PROFILE_TASK=-m test.regrtest --pgo -x test_asyncore test_gdb test_multiprocessing test_subprocess
215
216 # report files for gcov / lcov coverage report
217 COVERAGE_INFO= $(abs_builddir)/coverage.info
218 COVERAGE_REPORT=$(abs_builddir)/lcov-report
219 COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report"
220
221 # === Definitions added by makesetup ===
222
223
224 ##########################################################################
225 # Modules
226 MODULE_OBJS= \
227 Modules/config.o \
228 Modules/getpath.o \
229 Modules/main.o \
230 Modules/gcmodule.o
231
232 # Used of signalmodule.o is not available
233 SIGNAL_OBJS= @SIGNAL_OBJS@
234
235
236 ##########################################################################
237
238 LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
239
240 ##########################################################################
241 # Parser
242 PGEN= Parser/pgen$(EXE)
243
244 PSRCS= \
245 Parser/acceler.c \
246 Parser/grammar1.c \
247 Parser/listnode.c \
248 Parser/node.c \
249 Parser/parser.c \
250 Parser/parsetok.c \
251 Parser/bitset.c \
252 Parser/metagrammar.c \
253 Parser/firstsets.c \
254 Parser/grammar.c \
255 Parser/pgen.c
256
257 POBJS= \
258 Parser/acceler.o \
259 Parser/grammar1.o \
260 Parser/listnode.o \
261 Parser/node.o \
262 Parser/parser.o \
263 Parser/parsetok.o \
264 Parser/bitset.o \
265 Parser/metagrammar.o \
266 Parser/firstsets.o \
267 Parser/grammar.o \
268 Parser/pgen.o
269
270 PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/tokenizer.o
271
272 PGSRCS= \
273 Objects/obmalloc.c \
274 Python/mysnprintf.c \
275 Python/pyctype.c \
276 Parser/tokenizer_pgen.c \
277 Parser/printgrammar.c \
278 Parser/pgenmain.c
279
280 PGOBJS= \
281 Objects/obmalloc.o \
282 Python/mysnprintf.o \
283 Python/pyctype.o \
284 Parser/tokenizer_pgen.o \
285 Parser/printgrammar.o \
286 Parser/pgenmain.o
287
288 PARSER_HEADERS= \
289 Parser/parser.h \
290 Parser/tokenizer.h
291
292 PGENSRCS= $(PSRCS) $(PGSRCS)
293 PGENOBJS= $(POBJS) $(PGOBJS)
294
295 ##########################################################################
296 PYTHON_OBJS= \
297 Python/_warnings.o \
298 Python/Python-ast.o \
299 Python/asdl.o \
300 Python/ast.o \
301 Python/bltinmodule.o \
302 Python/ceval.o \
303 Python/compile.o \
304 Python/codecs.o \
305 Python/errors.o \
306 Python/frozen.o \
307 Python/frozenmain.o \
308 Python/future.o \
309 Python/getargs.o \
310 Python/getcompiler.o \
311 Python/getcopyright.o \
312 Python/getplatform.o \
313 Python/getversion.o \
314 Python/graminit.o \
315 Python/import.o \
316 Python/importdl.o \
317 Python/marshal.o \
318 Python/modsupport.o \
319 Python/mystrtoul.o \
320 Python/mysnprintf.o \
321 Python/peephole.o \
322 Python/pyarena.o \
323 Python/pyctype.o \
324 Python/pyfpe.o \
325 Python/pymath.o \
326 Python/pystate.o \
327 Python/pythonrun.o \
328 Python/random.o \
329 Python/structmember.o \
330 Python/symtable.o \
331 Python/sysmodule.o \
332 Python/traceback.o \
333 Python/getopt.o \
334 Python/pystrcmp.o \
335 Python/pystrtod.o \
336 Python/dtoa.o \
337 Python/formatter_unicode.o \
338 Python/formatter_string.o \
339 Python/$(DYNLOADFILE) \
340 $(LIBOBJS) \
341 $(MACHDEP_OBJS) \
342 $(THREADOBJ)
343
344
345 ##########################################################################
346 # Objects
347 OBJECT_OBJS= \
348 Objects/abstract.o \
349 Objects/boolobject.o \
350 Objects/bufferobject.o \
351 Objects/bytes_methods.o \
352 Objects/bytearrayobject.o \
353 Objects/capsule.o \
354 Objects/cellobject.o \
355 Objects/classobject.o \
356 Objects/cobject.o \
357 Objects/codeobject.o \
358 Objects/complexobject.o \
359 Objects/descrobject.o \
360 Objects/enumobject.o \
361 Objects/exceptions.o \
362 Objects/genobject.o \
363 Objects/fileobject.o \
364 Objects/floatobject.o \
365 Objects/frameobject.o \
366 Objects/funcobject.o \
367 Objects/intobject.o \
368 Objects/iterobject.o \
369 Objects/listobject.o \
370 Objects/longobject.o \
371 Objects/dictobject.o \
372 Objects/memoryobject.o \
373 Objects/methodobject.o \
374 Objects/moduleobject.o \
375 Objects/object.o \
376 Objects/obmalloc.o \
377 Objects/rangeobject.o \
378 Objects/setobject.o \
379 Objects/sliceobject.o \
380 Objects/stringobject.o \
381 Objects/structseq.o \
382 Objects/tupleobject.o \
383 Objects/typeobject.o \
384 Objects/weakrefobject.o \
385 $(UNICODE_OBJS)
386
387
388 ##########################################################################
389 # objects that get linked into the Python library
390 LIBRARY_OBJS= \
391 Modules/getbuildinfo.o \
392 $(PARSER_OBJS) \
393 $(OBJECT_OBJS) \
394 $(PYTHON_OBJS) \
395 $(MODULE_OBJS) \
396 $(SIGNAL_OBJS) \
397 $(MODOBJS)
398
399 #########################################################################
400 # Rules
401
402 # Default target
403 all: @DEF_MAKE_ALL_RULE@
404 build_all: check-clean-src $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
405
406 # Check that the source is clean when building out of source.
407 check-clean-src:
408 @if test -n "$(VPATH)" -a -f "$(srcdir)/Modules/python.o"; then \
409 echo "Error: The source directory ($(srcdir)) is not clean" ; \
410 echo "Building Python out of the source tree (in $(abs_builddir)) requires a clean source tree ($(abs_srcdir))" ; \
411 echo "Try to run: make -C \"$(srcdir)\" clean" ; \
412 exit 1; \
413 fi
414
415 # Compile a binary with profile guided optimization.
416 profile-opt:
417 @if [ $(LLVM_PROF_ERR) = yes ]; then \
418 echo "Error: Cannot perform PGO build because llvm-profdata was not found in PATH" ;\
419 echo "Please add it to PATH and run ./configure again" ;\
420 exit 1;\
421 fi
422 @echo "Building with support for profile generation:"
423 $(MAKE) clean
424 $(MAKE) profile-removal
425 $(MAKE) build_all_generate_profile
426 $(MAKE) profile-removal
427 @echo "Running code to generate profile data (this can take a while):"
428 $(MAKE) run_profile_task
429 $(MAKE) build_all_merge_profile
430 @echo "Rebuilding with profile guided optimizations:"
431 $(MAKE) clean
432 $(MAKE) build_all_use_profile
433 $(MAKE) profile-removal
434
435 build_all_generate_profile:
436 $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)"
437
438 run_profile_task:
439 : # FIXME: can't run for a cross build
440 $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
441
442 build_all_merge_profile:
443 $(LLVM_PROF_MERGER)
444
445 build_all_use_profile:
446 $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) $(PGO_PROF_USE_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@"
447
448 # Compile and run with gcov
449 .PHONY=coverage coverage-lcov coverage-report
450 coverage:
451 @echo "Building with support for coverage checking:"
452 $(MAKE) clean profile-removal
453 $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
454
455 coverage-lcov:
456 @echo "Creating Coverage HTML report with LCOV:"
457 @rm -f $(COVERAGE_INFO)
458 @rm -rf $(COVERAGE_REPORT)
459 @lcov --capture --directory $(abs_builddir) \
460 --base-directory $(realpath $(abs_builddir)) \
461 --path $(realpath $(abs_srcdir)) \
462 --output-file $(COVERAGE_INFO)
463 : # remove 3rd party modules and system headers
464 @lcov --remove $(COVERAGE_INFO) \
465 '*/Modules/_ctypes/libffi*/*' \
466 '*/Modules/expat/*' \
467 '*/Modules/zlib/*' \
468 '*/Include/*' \
469 '/usr/include/*' \
470 '/usr/local/include/*' \
471 --output-file $(COVERAGE_INFO)
472 @genhtml $(COVERAGE_INFO) --output-directory $(COVERAGE_REPORT) \
473 $(COVERAGE_REPORT_OPTIONS)
474 @echo
475 @echo "lcov report at $(COVERAGE_REPORT)/index.html"
476 @echo
477
478 # Force regeneration of parser
479 coverage-report: regen-grammar
480 : # build with coverage info
481 $(MAKE) coverage
482 : # run tests, ignore failures
483 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) || true
484 : # build lcov report
485 $(MAKE) coverage-lcov
486
487
488 # Build the interpreter
489 $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY)
490 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
491 Modules/python.o \
492 $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
493
494 platform: $(BUILDPYTHON) pybuilddir.txt
495 $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
496
497 # Create build directory and generate the sysconfig build-time data there.
498 # pybuilddir.txt contains the name of the build dir and is used for
499 # sys.path fixup -- see Modules/getpath.c.
500 # Since this step runs before shared modules are built, try to avoid bootstrap
501 # problems by creating a dummy pybuilddir.txt just to allow interpreter
502 # initialization to succeed. It will be overwritten by generate-posix-vars
503 # or removed in case of failure.
504 pybuilddir.txt: $(BUILDPYTHON)
505 @echo "none" > ./pybuilddir.txt
506 $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ;\
507 if test $$? -ne 0 ; then \
508 echo "generate-posix-vars failed" ; \
509 rm -f ./pybuilddir.txt ; \
510 exit 1 ; \
511 fi
512
513 # This is shared by the math and cmath modules
514 Modules/_math.o: Modules/_math.c Modules/_math.h
515 $(CC) -c $(CCSHARED) $(PY_CFLAGS) -o $@ $<
516
517 # Build the shared modules
518 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
519 # -s, --silent or --quiet is always the first char.
520 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
521 sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
522 @case "$$MAKEFLAGS" in \
523 *\ -s*|s*) quiet="-q";; \
524 *) quiet="";; \
525 esac; \
526 $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
527 _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
528 $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
529
530 # Build static library
531 # avoid long command lines, same as LIBRARY_OBJS
532 $(LIBRARY): $(LIBRARY_OBJS)
533 -rm -f $@
534 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o
535 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS)
536 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS)
537 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS)
538 $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS)
539 $(AR) $(ARFLAGS) $@ $(MODOBJS)
540 $(RANLIB) $@
541
542 libpython$(VERSION).so: $(LIBRARY_OBJS)
543 if test $(INSTSONAME) != $(LDLIBRARY); then \
544 $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
545 $(LN) -f $(INSTSONAME) $@; \
546 else \
547 $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
548 fi
549
550 libpython$(VERSION).dylib: $(LIBRARY_OBJS)
551 $(CC) -dynamiclib -Wl,-single_module $(LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(VERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
552
553
554 libpython$(VERSION).sl: $(LIBRARY_OBJS)
555 $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST)
556
557 # Copy up the gdb python hooks into a position where they can be automatically
558 # loaded by gdb during Lib/test/test_gdb.py
559 #
560 # Distributors are likely to want to install this somewhere else e.g. relative
561 # to the stripped DWARF data for the shared library.
562 gdbhooks: $(BUILDPYTHON)-gdb.py
563
564 SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py
565 $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS)
566 $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py
567
568 # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
569 # minimal framework (not including the Lib directory and such) in the current
570 # directory.
571 RESSRCDIR=Mac/Resources/framework
572 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
573 $(LIBRARY) \
574 $(RESSRCDIR)/Info.plist
575 $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
576 $(CC) -o $(LDLIBRARY) $(LDFLAGS) -dynamiclib \
577 -all_load $(LIBRARY) -Wl,-single_module \
578 -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
579 -compatibility_version $(VERSION) \
580 -current_version $(VERSION);
581 $(INSTALL) -d -m $(DIRMODE) \
582 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
583 $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \
584 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist
585 $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
586 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
587 $(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
588 $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
589
590 # This rule builds the Cygwin Python DLL and import library if configured
591 # for a shared core library; otherwise, this rule is a noop.
592 $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
593 if test -n "$(DLLLIBRARY)"; then \
594 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
595 $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \
596 else true; \
597 fi
598
599
600 oldsharedmods: $(SHAREDMODS)
601
602
603 Makefile Modules/config.c: Makefile.pre \
604 $(srcdir)/Modules/config.c.in \
605 $(MAKESETUP) \
606 Modules/Setup.config \
607 Modules/Setup \
608 Modules/Setup.local
609 $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
610 -s Modules \
611 Modules/Setup.config \
612 Modules/Setup.local \
613 Modules/Setup
614 @mv config.c Modules
615 @echo "The Makefile was updated, you may need to re-run make."
616
617
618 Modules/Setup: $(srcdir)/Modules/Setup.dist
619 @if test -f Modules/Setup; then \
620 echo "-----------------------------------------------"; \
621 echo "Modules/Setup.dist is newer than Modules/Setup;"; \
622 echo "check to make sure you have all the updates you"; \
623 echo "need in your Modules/Setup file."; \
624 echo "Usually, copying Modules/Setup.dist to Modules/Setup will work."; \
625 echo "-----------------------------------------------"; \
626 fi
627
628
629 ############################################################################
630 # Regenerate all generated files
631
632 regen-all: regen-opcode-targets regen-grammar regen-ast
633
634 ############################################################################
635 # Special rules for object files
636
637 Modules/getbuildinfo.o: $(PARSER_OBJS) \
638 $(OBJECT_OBJS) \
639 $(PYTHON_OBJS) \
640 $(MODULE_OBJS) \
641 $(SIGNAL_OBJS) \
642 $(MODOBJS) \
643 $(srcdir)/Modules/getbuildinfo.c
644 $(CC) -c $(PY_CFLAGS) \
645 -DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
646 -DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
647 -DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
648 -o $@ $(srcdir)/Modules/getbuildinfo.c
649
650 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
651 $(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
652 -DPREFIX='"$(prefix)"' \
653 -DEXEC_PREFIX='"$(exec_prefix)"' \
654 -DVERSION='"$(VERSION)"' \
655 -DVPATH='"$(VPATH)"' \
656 -o $@ $(srcdir)/Modules/getpath.c
657
658 Modules/python.o: $(srcdir)/Modules/python.c
659 $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c
660
661 Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmodule.h
662
663 Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule.h
664
665 Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h
666
667 $(PGEN): $(PGENOBJS)
668 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
669
670 .PHONY: regen-grammar
671 regen-grammar: $(PGEN)
672 # Regenerate Include/graminit.h and Python/graminit.c
673 # from Grammar/Grammar using pgen
674 @$(MKDIR_P) Include
675 $(PGEN) $(srcdir)/Grammar/Grammar \
676 $(srcdir)/Include/graminit.h \
677 $(srcdir)/Python/graminit.c
678
679 Parser/grammar.o: $(srcdir)/Parser/grammar.c \
680 $(srcdir)/Include/token.h \
681 $(srcdir)/Include/grammar.h
682 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
683
684 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
685
686 Parser/pgenmain.o: $(srcdir)/Include/parsetok.h
687
688 .PHONY=regen-ast
689 regen-ast:
690 # Regenerate Include/Python-ast.h using Parser/asdl_c.py -h
691 $(MKDIR_P) $(srcdir)/Include
692 $(PYTHON_FOR_REGEN) $(srcdir)/Parser/asdl_c.py \
693 -h $(srcdir)/Include \
694 $(srcdir)/Parser/Python.asdl
695 # Regenerate Python/Python-ast.c using Parser/asdl_c.py -c
696 $(MKDIR_P) $(srcdir)/Python
697 $(PYTHON_FOR_REGEN) $(srcdir)/Parser/asdl_c.py \
698 -c $(srcdir)/Python \
699 $(srcdir)/Parser/Python.asdl
700
701 Python/compile.o Python/symtable.o Python/ast.o: $(srcdir)/Include/graminit.h $(srcdir)/Include/Python-ast.h
702
703 Python/getplatform.o: $(srcdir)/Python/getplatform.c
704 $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
705
706 Python/importdl.o: $(srcdir)/Python/importdl.c
707 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
708
709 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \
710 $(srcdir)/Objects/unicodetype_db.h
711
712 STRINGLIB_HEADERS= \
713 $(srcdir)/Include/bytes_methods.h \
714 $(srcdir)/Objects/stringlib/count.h \
715 $(srcdir)/Objects/stringlib/ctype.h \
716 $(srcdir)/Objects/stringlib/fastsearch.h \
717 $(srcdir)/Objects/stringlib/find.h \
718 $(srcdir)/Objects/stringlib/formatter.h \
719 $(srcdir)/Objects/stringlib/partition.h \
720 $(srcdir)/Objects/stringlib/split.h \
721 $(srcdir)/Objects/stringlib/stringdefs.h \
722 $(srcdir)/Objects/stringlib/string_format.h \
723 $(srcdir)/Objects/stringlib/transmogrify.h \
724 $(srcdir)/Objects/stringlib/unicodedefs.h \
725 $(srcdir)/Objects/stringlib/localeutil.h
726
727 Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \
728 $(STRINGLIB_HEADERS)
729
730 Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c \
731 $(STRINGLIB_HEADERS)
732
733 Objects/stringobject.o: $(srcdir)/Objects/stringobject.c \
734 $(STRINGLIB_HEADERS)
735
736 .PHONY: regen-opcode-targets
737 regen-opcode-targets:
738 # Regenerate Python/opcode_targets.h from Lib/opcode.py
739 # using Python/makeopcodetargets.py
740 $(PYTHON_FOR_REGEN) $(srcdir)/Python/makeopcodetargets.py \
741 $(srcdir)/Python/opcode_targets.h
742
743 Python/ceval.o: $(srcdir)/Python/opcode_targets.h
744
745 Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \
746 $(STRINGLIB_HEADERS)
747
748 Python/formatter_string.o: $(srcdir)/Python/formatter_string.c \
749 $(STRINGLIB_HEADERS)
750
751 ############################################################################
752 # Header files
753
754 PYTHON_HEADERS= \
755 Include/Python-ast.h \
756 Include/Python.h \
757 Include/abstract.h \
758 Include/asdl.h \
759 Include/ast.h \
760 Include/bitset.h \
761 Include/boolobject.h \
762 Include/bytearrayobject.h \
763 Include/bytes_methods.h \
764 Include/bytesobject.h \
765 Include/bufferobject.h \
766 Include/cellobject.h \
767 Include/ceval.h \
768 Include/classobject.h \
769 Include/cobject.h \
770 Include/code.h \
771 Include/codecs.h \
772 Include/compile.h \
773 Include/complexobject.h \
774 Include/descrobject.h \
775 Include/dictobject.h \
776 Include/dtoa.h \
777 Include/enumobject.h \
778 Include/errcode.h \
779 Include/eval.h \
780 Include/fileobject.h \
781 Include/floatobject.h \
782 Include/frameobject.h \
783 Include/funcobject.h \
784 Include/genobject.h \
785 Include/import.h \
786 Include/intobject.h \
787 Include/intrcheck.h \
788 Include/iterobject.h \
789 Include/listobject.h \
790 Include/longintrepr.h \
791 Include/longobject.h \
792 Include/marshal.h \
793 Include/memoryobject.h \
794 Include/metagrammar.h \
795 Include/methodobject.h \
796 Include/modsupport.h \
797 Include/moduleobject.h \
798 Include/node.h \
799 Include/object.h \
800 Include/objimpl.h \
801 Include/opcode.h \
802 Include/osdefs.h \
803 Include/parsetok.h \
804 Include/patchlevel.h \
805 Include/pgen.h \
806 Include/pgenheaders.h \
807 Include/pyarena.h \
808 Include/pycapsule.h \
809 Include/pyctype.h \
810 Include/pydebug.h \
811 Include/pyerrors.h \
812 Include/pyfpe.h \
813 Include/pymath.h \
814 Include/pygetopt.h \
815 Include/pymem.h \
816 Include/pyport.h \
817 Include/pystate.h \
818 Include/pystrcmp.h \
819 Include/pystrtod.h \
820 Include/pythonrun.h \
821 Include/pythread.h \
822 Include/rangeobject.h \
823 Include/setobject.h \
824 Include/sliceobject.h \
825 Include/stringobject.h \
826 Include/structmember.h \
827 Include/structseq.h \
828 Include/symtable.h \
829 Include/sysmodule.h \
830 Include/traceback.h \
831 Include/tupleobject.h \
832 Include/ucnhash.h \
833 Include/unicodeobject.h \
834 Include/warnings.h \
835 Include/weakrefobject.h \
836 pyconfig.h \
837 $(PARSER_HEADERS) \
838 $(srcdir)/Include/Python-ast.h
839
840 $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
841
842
843 ######################################################################
844
845 # Test the interpreter (twice, once without .pyc files, once with)
846 # In the past, we've had problems where bugs in the marshalling or
847 # elsewhere caused bytecode read from .pyc files to behave differently
848 # than bytecode generated directly from a .py source file. Sometimes
849 # the bytecode read from a .pyc file had the bug, sometimes the directly
850 # generated bytecode. This is sometimes a very shy bug needing a lot of
851 # sample data.
852
853 .PHONY: test testall testuniversal buildbottest pythoninfo
854
855 TESTOPTS= -l $(EXTRATESTOPTS)
856 TESTPROG= $(srcdir)/Lib/test/regrtest.py
857 TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS)
858
859 # Remove "test_python_*" directories of previous failed test jobs.
860 # Pass TESTOPTS options because it can contain --tempdir option.
861 cleantest: build_all
862 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) --cleanup
863
864 test: @DEF_MAKE_RULE@ platform
865 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
866 -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
867 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
868
869 testall: @DEF_MAKE_RULE@ platform
870 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
871 $(TESTPYTHON) $(srcdir)/Lib/compileall.py
872 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
873 -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
874 $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
875
876 # Run the unitests for both architectures in a Universal build on OSX
877 # Must be run on an Intel box.
878 testuniversal: @DEF_MAKE_RULE@ platform
879 if [ `arch` != 'i386' ];then \
880 echo "This can only be used on OSX/i386" ;\
881 exit 1 ;\
882 fi
883 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
884 -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
885 $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
886 $(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) -uall $(TESTOPTS)
887
888
889 # Like testall, but with a single pass only
890 # run an optional script to include some information about the build environment
891 buildbottest: build_all platform
892 -@if which pybuildbot.identify >/dev/null 2>&1; then \
893 pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
894 fi
895 $(TESTPYTHON) -R $(TESTPROG) -uall --slowest -rwW $(TESTOPTS)
896
897 pythoninfo: build_all
898 $(RUNSHARED) ./$(BUILDPYTHON) -m test.pythoninfo
899
900 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
901 test_multibytecodec test_urllib2_localnet test_itertools \
902 test_multiprocessing test_mailbox test_socket test_poll \
903 test_select test_zipfile
904 quicktest: @DEF_MAKE_RULE@ platform
905 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
906 -$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
907 $(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
908
909 MEMTESTOPTS= $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \
910 test_longexp
911 memtest: @DEF_MAKE_RULE@ platform
912 -rm -f $(srcdir)/Lib/test/*.py[co]
913 -$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
914 $(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
915
916 # SSL tests
917 .PHONY: multisslcompile multissltest
918 multisslcompile: build_all
919 $(RUNSHARED) ./$(BUILDPYTHON) Tools/ssl/multissltests.py --compile-only
920
921 multissltest: build_all
922 $(RUNSHARED) ./$(BUILDPYTHON) Tools/ssl/multissltests.py
923
924 # Install everything
925 install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@
926 if test "x$(ENSUREPIP)" != "xno" ; then \
927 case $(ENSUREPIP) in \
928 upgrade) ensurepip="--upgrade" ;; \
929 install|*) ensurepip="" ;; \
930 esac; \
931 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
932 $$ensurepip --root=$(DESTDIR)/ ; \
933 fi
934
935 # Install almost everything without disturbing previous versions
936 altinstall: commoninstall
937 if test "x$(ENSUREPIP)" != "xno" ; then \
938 case $(ENSUREPIP) in \
939 upgrade) ensurepip="--altinstall --upgrade --no-default-pip" ;; \
940 install|*) ensurepip="--altinstall --no-default-pip" ;; \
941 esac; \
942 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
943 $$ensurepip --root=$(DESTDIR)/ ; \
944 fi
945
946 commoninstall: check-clean-src @FRAMEWORKALTINSTALLFIRST@ \
947 altbininstall libinstall inclinstall libainstall \
948 sharedinstall oldsharedinstall altmaninstall \
949 @FRAMEWORKALTINSTALLLAST@
950
951 # Install shared libraries enabled by Setup
952 DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
953
954 oldsharedinstall: $(DESTSHARED) $(SHAREDMODS)
955 @for i in X $(SHAREDMODS); do \
956 if test $$i != X; then \
957 echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
958 $(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
959 fi; \
960 done
961
962 $(DESTSHARED):
963 @for i in $(DESTDIRS); \
964 do \
965 if test ! -d $(DESTDIR)$$i; then \
966 echo "Creating directory $$i"; \
967 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
968 else true; \
969 fi; \
970 done
971
972
973 # Install the interpreter by creating a symlink chain:
974 # $(PYTHON) -> python2 -> python$(VERSION))
975 # Also create equivalent chains for other installed files
976 bininstall: altbininstall
977 if test ! -d $(DESTDIR)$(LIBPC); then \
978 echo "Creating directory $(LIBPC)"; \
979 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
980 fi
981 -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
982 then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
983 else true; \
984 fi
985 (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
986 -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
987 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
988 -rm -f $(DESTDIR)$(BINDIR)/python2-config
989 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
990 -rm -f $(DESTDIR)$(BINDIR)/python-config
991 (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
992 -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
993 -rm -f $(DESTDIR)$(LIBPC)/python2.pc
994 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)
995 -rm -f $(DESTDIR)$(LIBPC)/python.pc
996 (cd $(DESTDIR)$(LIBPC); $(LN) -s python2.pc python.pc)
997
998 # Install the interpreter with $(VERSION) affixed
999 # This goes into $(exec_prefix)
1000 altbininstall: $(BUILDPYTHON)
1001 @for i in $(BINDIR) $(LIBDIR); \
1002 do \
1003 if test ! -d $(DESTDIR)$$i; then \
1004 echo "Creating directory $$i"; \
1005 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1006 else true; \
1007 fi; \
1008 done
1009 $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE)
1010 if test -f $(LDLIBRARY); then \
1011 if test -n "$(DLLLIBRARY)" ; then \
1012 $(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \
1013 else \
1014 $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \
1015 if test $(LDLIBRARY) != $(INSTSONAME); then \
1016 (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \
1017 fi \
1018 fi; \
1019 else true; \
1020 fi
1021
1022 # Install the versioned manual page
1023 altmaninstall:
1024 @for i in $(MANDIR) $(MANDIR)/man1; \
1025 do \
1026 if test ! -d $(DESTDIR)$$i; then \
1027 echo "Creating directory $$i"; \
1028 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1029 else true; \
1030 fi; \
1031 done
1032 $(INSTALL_DATA) $(srcdir)/Misc/python.man \
1033 $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1
1034
1035 # Install the unversioned manual pages
1036 maninstall: altmaninstall
1037 -rm -f $(DESTDIR)$(MANDIR)/man1/python2.1
1038 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python2.1)
1039 -rm -f $(DESTDIR)$(MANDIR)/man1/python.1
1040 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python2.1 python.1)
1041
1042 # Install the library
1043 PLATDIR= @PLATDIR@
1044 EXTRAPLATDIR= @EXTRAPLATDIR@
1045 EXTRAMACHDEPPATH=@EXTRAMACHDEPPATH@
1046 MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR)
1047 XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
1048 PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \
1049 plat-mac/lib-scriptpackages/_builtinSuites \
1050 plat-mac/lib-scriptpackages/CodeWarrior \
1051 plat-mac/lib-scriptpackages/Explorer \
1052 plat-mac/lib-scriptpackages/Finder \
1053 plat-mac/lib-scriptpackages/Netscape \
1054 plat-mac/lib-scriptpackages/StdSuites \
1055 plat-mac/lib-scriptpackages/SystemEvents \
1056 plat-mac/lib-scriptpackages/Terminal
1057 PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
1058 LIBSUBDIRS= lib-tk lib-tk/test lib-tk/test/test_tkinter \
1059 lib-tk/test/test_ttk site-packages test test/audiodata test/capath \
1060 test/data test/cjkencodings test/decimaltestdata test/xmltestdata \
1061 test/imghdrdata \
1062 test/subprocessdata \
1063 test/support \
1064 test/tracedmodules \
1065 encodings compiler hotshot \
1066 email email/mime email/test email/test/data \
1067 ensurepip ensurepip/_bundled \
1068 json json/tests \
1069 sqlite3 sqlite3/test \
1070 logging bsddb bsddb/test csv importlib wsgiref \
1071 lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \
1072 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
1073 ctypes ctypes/test ctypes/macholib \
1074 idlelib idlelib/Icons idlelib/idle_test \
1075 distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
1076 multiprocessing multiprocessing/dummy \
1077 unittest unittest/test \
1078 lib-old \
1079 curses pydoc_data $(MACHDEPS)
1080 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
1081 @for i in $(SCRIPTDIR) $(LIBDEST); \
1082 do \
1083 if test ! -d $(DESTDIR)$$i; then \
1084 echo "Creating directory $$i"; \
1085 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1086 else true; \
1087 fi; \
1088 done
1089 @for d in $(LIBSUBDIRS); \
1090 do \
1091 a=$(srcdir)/Lib/$$d; \
1092 if test ! -d $$a; then continue; else true; fi; \
1093 b=$(LIBDEST)/$$d; \
1094 if test ! -d $(DESTDIR)$$b; then \
1095 echo "Creating directory $$b"; \
1096 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \
1097 else true; \
1098 fi; \
1099 done
1100 @for i in $(srcdir)/Lib/*.py `cat pybuilddir.txt`/_sysconfigdata.py $(srcdir)/Lib/*.doc $(srcdir)/Lib/*.egg-info ; \
1101 do \
1102 if test -x $$i; then \
1103 $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \
1104 echo $(INSTALL_SCRIPT) $$i $(LIBDEST); \
1105 else \
1106 $(INSTALL_DATA) $$i $(DESTDIR)$(LIBDEST); \
1107 echo $(INSTALL_DATA) $$i $(LIBDEST); \
1108 fi; \
1109 done
1110 @for d in $(LIBSUBDIRS); \
1111 do \
1112 a=$(srcdir)/Lib/$$d; \
1113 if test ! -d $$a; then continue; else true; fi; \
1114 if test `ls $$a | wc -l` -lt 1; then continue; fi; \
1115 b=$(LIBDEST)/$$d; \
1116 for i in $$a/*; \
1117 do \
1118 case $$i in \
1119 *CVS) ;; \
1120 *.py[co]) ;; \
1121 *.orig) ;; \
1122 *~) ;; \
1123 *) \
1124 if test -d $$i; then continue; fi; \
1125 if test -x $$i; then \
1126 echo $(INSTALL_SCRIPT) $$i $$b; \
1127 $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \
1128 else \
1129 echo $(INSTALL_DATA) $$i $$b; \
1130 $(INSTALL_DATA) $$i $(DESTDIR)$$b; \
1131 fi;; \
1132 esac; \
1133 done; \
1134 done
1135 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
1136 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
1137 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
1138 $(DESTDIR)$(LIBDEST)/distutils/tests ; \
1139 fi
1140 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1141 $(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
1142 -d $(LIBDEST) -f \
1143 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1144 $(DESTDIR)$(LIBDEST)
1145 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1146 $(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
1147 -d $(LIBDEST) -f \
1148 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1149 $(DESTDIR)$(LIBDEST)
1150 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1151 $(PYTHON_FOR_BUILD) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
1152 -d $(LIBDEST)/site-packages -f \
1153 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1154 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1155 $(PYTHON_FOR_BUILD) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
1156 -d $(LIBDEST)/site-packages -f \
1157 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1158 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1159 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
1160 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1161 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
1162
1163 # Create the PLATDIR source directory, if one wasn't distributed..
1164 $(srcdir)/Lib/$(PLATDIR):
1165 mkdir $(srcdir)/Lib/$(PLATDIR)
1166 cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
1167 export PATH; PATH="`pwd`:$$PATH"; \
1168 export PYTHONPATH; PYTHONPATH="$(srcdir)/Lib:$(abs_builddir)/`cat pybuilddir.txt`"; \
1169 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
1170 export EXE; EXE="$(BUILDEXE)"; \
1171 if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
1172 export PYTHON_FOR_BUILD; \
1173 if [ "$(build)" = "$(host)" ]; then \
1174 PYTHON_FOR_BUILD="$(BUILDPYTHON)"; \
1175 else \
1176 PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \
1177 fi; \
1178 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
1179
1180 python-config: $(srcdir)/Misc/python-config.in
1181 # Substitution happens here, as the completely-expanded BINDIR
1182 # is not available in configure
1183 sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
1184
1185 # Install the include files
1186 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
1187 inclinstall:
1188 @for i in $(INCLDIRSTOMAKE); \
1189 do \
1190 if test ! -d $(DESTDIR)$$i; then \
1191 echo "Creating directory $$i"; \
1192 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1193 else true; \
1194 fi; \
1195 done
1196 @for i in $(srcdir)/Include/*.h; \
1197 do \
1198 echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
1199 $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
1200 done
1201 $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
1202
1203 # Install the library and miscellaneous stuff needed for extending/embedding
1204 # This goes into $(exec_prefix)
1205 LIBPL= $(LIBP)/config
1206
1207 # pkgconfig directory
1208 LIBPC= $(LIBDIR)/pkgconfig
1209
1210 libainstall: @DEF_MAKE_RULE@ python-config
1211 @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \
1212 do \
1213 if test ! -d $(DESTDIR)$$i; then \
1214 echo "Creating directory $$i"; \
1215 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1216 else true; \
1217 fi; \
1218 done
1219 @if test -d $(LIBRARY); then :; else \
1220 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
1221 if test "$(SO)" = .dll; then \
1222 $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
1223 else \
1224 $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
1225 $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
1226 fi; \
1227 else \
1228 echo Skip install of $(LIBRARY) - use make frameworkinstall; \
1229 fi; \
1230 fi
1231 $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
1232 $(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o
1233 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in
1234 $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
1235 $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
1236 $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
1237 $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
1238 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
1239 $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup
1240 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
1241 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config
1242 rm python-config
1243 @if [ -s Modules/python.exp -a \
1244 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
1245 echo; echo "Installing support files for building shared extension modules on AIX:"; \
1246 $(INSTALL_DATA) Modules/python.exp \
1247 $(DESTDIR)$(LIBPL)/python.exp; \
1248 echo; echo "$(LIBPL)/python.exp"; \
1249 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \
1250 $(DESTDIR)$(LIBPL)/makexp_aix; \
1251 echo "$(LIBPL)/makexp_aix"; \
1252 $(INSTALL_SCRIPT) Modules/ld_so_aix \
1253 $(DESTDIR)$(LIBPL)/ld_so_aix; \
1254 echo "$(LIBPL)/ld_so_aix"; \
1255 echo; echo "See Misc/AIX-NOTES for details."; \
1256 else true; \
1257 fi
1258 @case "$(MACHDEP)" in beos*) \
1259 echo; echo "Installing support files for building shared extension modules on BeOS:"; \
1260 $(INSTALL_DATA) Misc/BeOS-NOTES $(DESTDIR)$(LIBPL)/README; \
1261 echo; echo "$(LIBPL)/README"; \
1262 $(INSTALL_SCRIPT) Modules/ar_beos $(DESTDIR)$(LIBPL)/ar_beos; \
1263 echo "$(LIBPL)/ar_beos"; \
1264 $(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_beos; \
1265 echo "$(LIBPL)/ld_so_beos"; \
1266 echo; echo "See Misc/BeOS-NOTES for details."; \
1267 ;; \
1268 esac
1269
1270 # Install the dynamically loadable modules
1271 # This goes into $(exec_prefix)
1272 sharedinstall: sharedmods
1273 $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
1274 --prefix=$(prefix) \
1275 --install-scripts=$(BINDIR) \
1276 --install-platlib=$(DESTSHARED) \
1277 --root=$(DESTDIR)/
1278 -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata.py*
1279
1280 # Here are a couple of targets for MacOSX again, to install a full
1281 # framework-based Python. frameworkinstall installs everything, the
1282 # subtargets install specific parts. Much of the actual work is offloaded to
1283 # the Makefile in Mac
1284 #
1285 #
1286 # This target is here for backward compatibility, previous versions of Python
1287 # hadn't integrated framework installation in the normal install process.
1288 frameworkinstall: install
1289
1290 # On install, we re-make the framework
1291 # structure in the install location, /Library/Frameworks/ or the argument to
1292 # --enable-framework. If --enable-framework has been specified then we have
1293 # automatically set prefix to the location deep down in the framework, so we
1294 # only have to cater for the structural bits of the framework.
1295
1296 frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib
1297
1298 frameworkinstallstructure: $(LDLIBRARY)
1299 @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
1300 echo Not configured with --enable-framework; \
1301 exit 1; \
1302 else true; \
1303 fi
1304 @for i in $(prefix)/Resources/English.lproj $(prefix)/lib; do\
1305 if test ! -d $(DESTDIR)$$i; then \
1306 echo "Creating directory $(DESTDIR)$$i"; \
1307 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1308 else true; \
1309 fi; \
1310 done
1311 $(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers
1312 sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(RESSRCDIR)/Info.plist > $(DESTDIR)$(prefix)/Resources/Info.plist
1313 $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
1314 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAMEWORK)
1315 $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
1316 $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
1317 $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY)
1318
1319 # This installs Mac/Lib into the framework
1320 # Install a number of symlinks to keep software that expects a normal unix
1321 # install (which includes python-config) happy.
1322 frameworkinstallmaclib:
1323 ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).a"
1324 ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).dylib"
1325 ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib"
1326 cd Mac && $(MAKE) installmacsubtree DESTDIR="$(DESTDIR)"
1327
1328 # This installs the IDE, the Launcher and other apps into /Applications
1329 frameworkinstallapps:
1330 cd Mac && $(MAKE) installapps DESTDIR="$(DESTDIR)"
1331
1332 # This install the unix python and pythonw tools in /usr/local/bin
1333 frameworkinstallunixtools:
1334 cd Mac && $(MAKE) installunixtools DESTDIR="$(DESTDIR)"
1335
1336 frameworkaltinstallunixtools:
1337 cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)"
1338
1339 # This installs the Demos and Tools into the applications directory.
1340 # It is not part of a normal frameworkinstall
1341 frameworkinstallextras:
1342 cd Mac && $(MAKE) installextras DESTDIR="$(DESTDIR)"
1343
1344 # This installs a few of the useful scripts in Tools/scripts
1345 scriptsinstall:
1346 SRCDIR=$(srcdir) $(RUNSHARED) \
1347 $(PYTHON_FOR_BUILD) $(srcdir)/Tools/scripts/setup.py install \
1348 --prefix=$(prefix) \
1349 --install-scripts=$(BINDIR) \
1350 --root=$(DESTDIR)/
1351
1352 # Build the toplevel Makefile
1353 Makefile.pre: Makefile.pre.in config.status
1354 CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status
1355 $(MAKE) -f Makefile.pre Makefile
1356
1357 # Run the configure script.
1358 config.status: $(srcdir)/configure
1359 $(SHELL) $(srcdir)/configure $(CONFIG_ARGS)
1360
1361 .PRECIOUS: config.status $(BUILDPYTHON) Makefile Makefile.pre
1362
1363 # Some make's put the object file in the current directory
1364 .c.o:
1365 $(CC) -c $(PY_CFLAGS) -o $@ $<
1366
1367 # Run reindent on the library
1368 reindent:
1369 ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib
1370
1371 # Rerun configure with the same options as it was run last time,
1372 # provided the config.status script exists
1373 recheck:
1374 $(SHELL) config.status --recheck
1375 $(SHELL) config.status
1376
1377 # Regenerate configure and pyconfig.h.in
1378 .PHONY: autoconf
1379 autoconf:
1380 # Regenerate the configure script from configure.ac using autoconf
1381 (cd $(srcdir); autoconf)
1382 # Regenerate pyconfig.h.in from configure.ac using autoheader
1383 (cd $(srcdir); autoheader)
1384
1385 # Create a tags file for vi
1386 tags::
1387 ctags -w $(srcdir)/Include/*.h
1388 for i in $(SRCDIRS); do ctags -f tags -w -a $(srcdir)/$$i/*.[ch]; done
1389 ctags -f tags -w -a $(srcdir)/Modules/_ctypes/*.[ch]
1390 LC_ALL=C sort -o tags tags
1391
1392 # Create a tags file for GNU Emacs
1393 TAGS::
1394 cd $(srcdir); \
1395 etags Include/*.h; \
1396 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
1397
1398 # Sanitation targets -- clean leaves libraries, executables and tags
1399 # files, which clobber removes as well
1400 pycremoval:
1401 find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
1402
1403 clean: pycremoval
1404 find . -name '*.[oa]' -exec rm -f {} ';'
1405 find . -name '*.s[ol]' -exec rm -f {} ';'
1406 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
1407 find build -name 'fficonfig.h' -exec rm -f {} ';' || true
1408 find build -name 'fficonfig.py' -exec rm -f {} ';' || true
1409 -rm -f Lib/lib2to3/*Grammar*.pickle
1410 -find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
1411
1412 profile-removal:
1413 find . -name '*.gc??' -exec rm -f {} ';'
1414 find . -name '*.profclang?' -exec rm -f {} ';'
1415 find . -name '*.dyn' -exec rm -f {} ';'
1416
1417 clobber: clean profile-removal
1418 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
1419 tags TAGS \
1420 config.cache config.log pyconfig.h Modules/config.c
1421 -rm -rf build platform
1422 -rm -rf $(PYTHONFRAMEWORKDIR)
1423
1424 # Make things extra clean, before making a distribution:
1425 # remove all generated files, even Makefile[.pre]
1426 # Keep configure and Python-ast.[ch], it's possible they can't be generated
1427 distclean: clobber
1428 for file in Lib/test/data/* ; do \
1429 if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \
1430 done
1431 -rm -f core Makefile Makefile.pre config.status \
1432 Modules/Setup Modules/Setup.local Modules/Setup.config \
1433 Modules/ld_so_aix Modules/python.exp Misc/python.pc
1434 -rm -f python*-gdb.py
1435 -rm -f pybuilddir.txt
1436 # Issue #28258: set LC_ALL to avoid issues with Estonian locale.
1437 # Expansion is performed here by shell (spawned by make) itself before
1438 # arguments are passed to find. So LC_ALL=C must be set as a separate
1439 # command.
1440 LC_ALL=C; find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
1441 -o -name '[@,#]*' -o -name '*.old' \
1442 -o -name '*.orig' -o -name '*.rej' \
1443 -o -name '*.bak' ')' \
1444 -exec rm -f {} ';'
1445
1446 # Check for smelly exported symbols (not starting with Py/_Py)
1447 smelly: @DEF_MAKE_RULE@
1448 nm -p $(LIBRARY) | \
1449 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
1450
1451 # Find files with funny names
1452 funny:
1453 find $(SUBDIRS) $(SUBDIRSTOO) -type d \
1454 -o -name '*.[chs]' \
1455 -o -name '*.py' \
1456 -o -name '*.doc' \
1457 -o -name '*.sty' \
1458 -o -name '*.bib' \
1459 -o -name '*.dat' \
1460 -o -name '*.el' \
1461 -o -name '*.fd' \
1462 -o -name '*.in' \
1463 -o -name '*.tex' \
1464 -o -name '*,[vpt]' \
1465 -o -name 'Setup' \
1466 -o -name 'Setup.*' \
1467 -o -name README \
1468 -o -name Makefile \
1469 -o -name ChangeLog \
1470 -o -name Repository \
1471 -o -name Root \
1472 -o -name Entries \
1473 -o -name Tag \
1474 -o -name tags \
1475 -o -name TAGS \
1476 -o -name .cvsignore \
1477 -o -name MANIFEST \
1478 -o -print
1479
1480 # Perform some verification checks on any modified files.
1481 patchcheck:
1482 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py
1483
1484 # Dependencies
1485
1486 Python/thread.o: @THREADHEADERS@
1487
1488 # Declare targets that aren't real files
1489 .PHONY: all build_all sharedmods check-clean-src oldsharedmods test quicktest memtest
1490 .PHONY: install altinstall oldsharedinstall bininstall altbininstall
1491 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall
1492 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1493 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1494 .PHONY: frameworkaltinstallunixtools recheck clean clobber distclean
1495 .PHONY: smelly funny patchcheck altmaninstall commoninstall
1496 .PHONY: gdbhooks
1497
1498 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY