Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(147855)

Delta Between Two Patch Sets: Makefile.pre.in

Issue 28046: Remove the concept of platform-specific directories
Left Patch Set: Created 3 years, 2 months ago
Right Patch Set: Created 3 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Top-level Makefile for Python 1 # Top-level Makefile for Python
2 # 2 #
3 # As distributed, this file is called Makefile.pre.in; it is processed 3 # As distributed, this file is called Makefile.pre.in; it is processed
4 # into the real Makefile by running the script ./configure, which 4 # into the real Makefile by running the script ./configure, which
5 # replaces things like @spam@ with values appropriate for your system. 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 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: 7 # time you run the configure script. Ideally, you can do:
8 # 8 #
9 # ./configure 9 # ./configure
10 # make 10 # make
(...skipping 30 matching lines...) Expand all
41 SOABI= @SOABI@ 41 SOABI= @SOABI@
42 LDVERSION= @LDVERSION@ 42 LDVERSION= @LDVERSION@
43 HGVERSION= @HGVERSION@ 43 HGVERSION= @HGVERSION@
44 HGTAG= @HGTAG@ 44 HGTAG= @HGTAG@
45 HGBRANCH= @HGBRANCH@ 45 HGBRANCH= @HGBRANCH@
46 PGO_PROF_GEN_FLAG=@PGO_PROF_GEN_FLAG@ 46 PGO_PROF_GEN_FLAG=@PGO_PROF_GEN_FLAG@
47 PGO_PROF_USE_FLAG=@PGO_PROF_USE_FLAG@ 47 PGO_PROF_USE_FLAG=@PGO_PROF_USE_FLAG@
48 LLVM_PROF_MERGER=@LLVM_PROF_MERGER@ 48 LLVM_PROF_MERGER=@LLVM_PROF_MERGER@
49 LLVM_PROF_FILE=@LLVM_PROF_FILE@ 49 LLVM_PROF_FILE=@LLVM_PROF_FILE@
50 LLVM_PROF_ERR=@LLVM_PROF_ERR@ 50 LLVM_PROF_ERR=@LLVM_PROF_ERR@
51 DTRACE= @DTRACE@
52 DFLAGS= @DFLAGS@
53 DTRACE_HEADERS= @DTRACE_HEADERS@
54 DTRACE_OBJS= @DTRACE_OBJS@
51 55
52 GNULD= @GNULD@ 56 GNULD= @GNULD@
53 57
54 # Shell used by make (some versions default to the login shell, which is bad) 58 # Shell used by make (some versions default to the login shell, which is bad)
55 SHELL= /bin/sh 59 SHELL= /bin/sh
56 60
57 # Use this to make a link between python$(VERSION) and python in $(BINDIR) 61 # Use this to make a link between python$(VERSION) and python in $(BINDIR)
58 LN= @LN@ 62 LN= @LN@
59 63
60 # Portable install script (configure doesn't always guess right) 64 # Portable install script (configure doesn't always guess right)
(...skipping 22 matching lines...) Expand all
83 CONFIGURE_CPPFLAGS= @CPPFLAGS@ 87 CONFIGURE_CPPFLAGS= @CPPFLAGS@
84 CONFIGURE_LDFLAGS= @LDFLAGS@ 88 CONFIGURE_LDFLAGS= @LDFLAGS@
85 # Avoid assigning CFLAGS, LDFLAGS, etc. so users can use them on the 89 # Avoid assigning CFLAGS, LDFLAGS, etc. so users can use them on the
86 # command line to append to these values without stomping the pre-set 90 # command line to append to these values without stomping the pre-set
87 # values. 91 # values.
88 PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAG S) 92 PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAG S)
89 PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST) 93 PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST)
90 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to 94 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
91 # be able to build extension modules using the directories specified in the 95 # be able to build extension modules using the directories specified in the
92 # environment variables 96 # environment variables
93 PY_CPPFLAGS=» $(BASECPPFLAGS) -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CP PFLAGS) $(CPPFLAGS) 97 PY_CPPFLAGS=» $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $( CPPFLAGS)
94 PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS) 98 PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS)
95 NO_AS_NEEDED= @NO_AS_NEEDED@ 99 NO_AS_NEEDED= @NO_AS_NEEDED@
96 LDLAST= @LDLAST@ 100 LDLAST= @LDLAST@
97 SGI_ABI= @SGI_ABI@ 101 SGI_ABI= @SGI_ABI@
98 CCSHARED= @CCSHARED@ 102 CCSHARED= @CCSHARED@
99 LINKFORSHARED= @LINKFORSHARED@ 103 LINKFORSHARED= @LINKFORSHARED@
100 ARFLAGS= @ARFLAGS@ 104 ARFLAGS= @ARFLAGS@
101 # Extra C flags added for building the interpreter object files. 105 # Extra C flags added for building the interpreter object files.
102 CFLAGSFORSHARED=@CFLAGSFORSHARED@ 106 CFLAGSFORSHARED=@CFLAGSFORSHARED@
103 # C flags used for building the interpreter object files 107 # C flags used for building the interpreter object files
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 251
248 252
249 ########################################################################## 253 ##########################################################################
250 # Modules 254 # Modules
251 MODULE_OBJS= \ 255 MODULE_OBJS= \
252 Modules/config.o \ 256 Modules/config.o \
253 Modules/getpath.o \ 257 Modules/getpath.o \
254 Modules/main.o \ 258 Modules/main.o \
255 Modules/gcmodule.o 259 Modules/gcmodule.o
256 260
257 # Used of signalmodule.o is not available
258 SIGNAL_OBJS= @SIGNAL_OBJS@
259
260 IO_H= Modules/_io/_iomodule.h 261 IO_H= Modules/_io/_iomodule.h
261 262
262 IO_OBJS= \ 263 IO_OBJS= \
263 Modules/_io/_iomodule.o \ 264 Modules/_io/_iomodule.o \
264 Modules/_io/iobase.o \ 265 Modules/_io/iobase.o \
265 Modules/_io/fileio.o \ 266 Modules/_io/fileio.o \
266 Modules/_io/bufferedio.o \ 267 Modules/_io/bufferedio.o \
267 Modules/_io/textio.o \ 268 Modules/_io/textio.o \
268 Modules/_io/bytesio.o \ 269 Modules/_io/bytesio.o \
269 Modules/_io/stringio.o 270 Modules/_io/stringio.o
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 $(srcdir)/Parser/tokenizer.h 312 $(srcdir)/Parser/tokenizer.h
312 313
313 PGENOBJS= $(POBJS) $(PGOBJS) 314 PGENOBJS= $(POBJS) $(PGOBJS)
314 315
315 ########################################################################## 316 ##########################################################################
316 # opcode.h generation 317 # opcode.h generation
317 OPCODE_H_DIR= $(srcdir)/Include 318 OPCODE_H_DIR= $(srcdir)/Include
318 OPCODE_H_SCRIPT= $(srcdir)/Tools/scripts/generate_opcode_h.py 319 OPCODE_H_SCRIPT= $(srcdir)/Tools/scripts/generate_opcode_h.py
319 OPCODE_H= $(OPCODE_H_DIR)/opcode.h 320 OPCODE_H= $(OPCODE_H_DIR)/opcode.h
320 OPCODE_H_GEN= $(PYTHON_FOR_GEN) $(OPCODE_H_SCRIPT) $(srcdir)/Lib/opcode.py $(O PCODE_H) 321 OPCODE_H_GEN= $(PYTHON_FOR_GEN) $(OPCODE_H_SCRIPT) $(srcdir)/Lib/opcode.py $(O PCODE_H)
321 # 322
322 ########################################################################## 323 ##########################################################################
323 # AST 324 # AST
324 AST_H_DIR= Include 325 AST_H_DIR= Include
325 AST_H= $(AST_H_DIR)/Python-ast.h 326 AST_H= $(AST_H_DIR)/Python-ast.h
326 AST_C_DIR= Python 327 AST_C_DIR= Python
327 AST_C= $(AST_C_DIR)/Python-ast.c 328 AST_C= $(AST_C_DIR)/Python-ast.c
328 AST_ASDL= $(srcdir)/Parser/Python.asdl 329 AST_ASDL= $(srcdir)/Parser/Python.asdl
329 330
330 ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py 331 ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
331 # Note that a build now requires Python to exist before the build starts. 332 # Note that a build now requires Python to exist before the build starts.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 Python/getopt.o \ 388 Python/getopt.o \
388 Python/pystrcmp.o \ 389 Python/pystrcmp.o \
389 Python/pystrtod.o \ 390 Python/pystrtod.o \
390 Python/pystrhex.o \ 391 Python/pystrhex.o \
391 Python/dtoa.o \ 392 Python/dtoa.o \
392 Python/formatter_unicode.o \ 393 Python/formatter_unicode.o \
393 Python/fileutils.o \ 394 Python/fileutils.o \
394 Python/$(DYNLOADFILE) \ 395 Python/$(DYNLOADFILE) \
395 $(LIBOBJS) \ 396 $(LIBOBJS) \
396 $(MACHDEP_OBJS) \ 397 $(MACHDEP_OBJS) \
397 » » $(THREADOBJ) 398 » » $(THREADOBJ) \
399 » » $(DTRACE_OBJS)
398 400
399 401
400 ########################################################################## 402 ##########################################################################
401 # Objects 403 # Objects
402 OBJECT_OBJS= \ 404 OBJECT_OBJS= \
403 Objects/abstract.o \ 405 Objects/abstract.o \
404 Objects/accu.o \ 406 Objects/accu.o \
405 Objects/boolobject.o \ 407 Objects/boolobject.o \
406 Objects/bytes_methods.o \ 408 Objects/bytes_methods.o \
407 Objects/bytearrayobject.o \ 409 Objects/bytearrayobject.o \
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 Objects/weakrefobject.o 443 Objects/weakrefobject.o
442 444
443 ########################################################################## 445 ##########################################################################
444 # objects that get linked into the Python library 446 # objects that get linked into the Python library
445 LIBRARY_OBJS_OMIT_FROZEN= \ 447 LIBRARY_OBJS_OMIT_FROZEN= \
446 Modules/getbuildinfo.o \ 448 Modules/getbuildinfo.o \
447 $(PARSER_OBJS) \ 449 $(PARSER_OBJS) \
448 $(OBJECT_OBJS) \ 450 $(OBJECT_OBJS) \
449 $(PYTHON_OBJS) \ 451 $(PYTHON_OBJS) \
450 $(MODULE_OBJS) \ 452 $(MODULE_OBJS) \
451 $(SIGNAL_OBJS) \
452 $(MODOBJS) 453 $(MODOBJS)
453 454
454 LIBRARY_OBJS= \ 455 LIBRARY_OBJS= \
455 $(LIBRARY_OBJS_OMIT_FROZEN) \ 456 $(LIBRARY_OBJS_OMIT_FROZEN) \
456 Python/frozen.o 457 Python/frozen.o
458
459 ##########################################################################
460 # DTrace
461
462 # On some systems, object files that reference DTrace probes need to be modified
463 # in-place by dtrace(1).
464 DTRACE_DEPS = \
465 Python/ceval.o
466 # XXX: should gcmodule, etc. be here, too?
457 467
458 ######################################################################### 468 #########################################################################
459 # Rules 469 # Rules
460 470
461 # Default target 471 # Default target
462 all: @DEF_MAKE_ALL_RULE@ 472 all: @DEF_MAKE_ALL_RULE@
463 build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_teste mbed python-config 473 build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_teste mbed python-config
464 474
465 # Compile a binary with profile guided optimization. 475 # Compile a binary with profile guided optimization.
466 profile-opt: 476 profile-opt:
(...skipping 12 matching lines...) Expand all
479 $(MAKE) build_all_merge_profile 489 $(MAKE) build_all_merge_profile
480 @echo "Rebuilding with profile guided optimizations:" 490 @echo "Rebuilding with profile guided optimizations:"
481 $(MAKE) clean 491 $(MAKE) clean
482 $(MAKE) build_all_use_profile 492 $(MAKE) build_all_use_profile
483 $(MAKE) profile-removal 493 $(MAKE) profile-removal
484 494
485 build_all_generate_profile: 495 build_all_generate_profile:
486 $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @L TOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)" 496 $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @L TOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)"
487 497
488 run_profile_task: 498 run_profile_task:
489 » : # FIXME: can't run for a cross build 499 » @ # FIXME: can't run for a cross build
490 $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true 500 $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
491 501
492 build_all_merge_profile: 502 build_all_merge_profile:
493 $(LLVM_PROF_MERGER) 503 $(LLVM_PROF_MERGER)
494 504
495 build_all_use_profile: 505 build_all_use_profile:
496 $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG) @L TOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@" 506 $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG) @L TOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@"
497 507
498 # Compile and run with gcov 508 # Compile and run with gcov
499 .PHONY=coverage coverage-lcov coverage-report 509 .PHONY=coverage coverage-lcov coverage-report
500 coverage: 510 coverage:
501 @echo "Building with support for coverage checking:" 511 @echo "Building with support for coverage checking:"
502 $(MAKE) clean profile-removal 512 $(MAKE) clean profile-removal
503 $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest- coverage" LIBS="$(LIBS) -lgcov" 513 $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest- coverage" LIBS="$(LIBS) -lgcov"
504 514
505 coverage-lcov: 515 coverage-lcov:
506 @echo "Creating Coverage HTML report with LCOV:" 516 @echo "Creating Coverage HTML report with LCOV:"
507 @rm -f $(COVERAGE_INFO) 517 @rm -f $(COVERAGE_INFO)
508 @rm -rf $(COVERAGE_REPORT) 518 @rm -rf $(COVERAGE_REPORT)
509 @lcov --capture --directory $(abs_builddir) \ 519 @lcov --capture --directory $(abs_builddir) \
510 --base-directory $(realpath $(abs_builddir)) \ 520 --base-directory $(realpath $(abs_builddir)) \
511 --path $(realpath $(abs_srcdir)) \ 521 --path $(realpath $(abs_srcdir)) \
512 --output-file $(COVERAGE_INFO) 522 --output-file $(COVERAGE_INFO)
513 » : # remove 3rd party modules and system headers 523 » @ # remove 3rd party modules, system headers and internal files with
524 » @ # debug, test or dummy functions.
514 @lcov --remove $(COVERAGE_INFO) \ 525 @lcov --remove $(COVERAGE_INFO) \
526 '*/Modules/_blake2/impl/*' \
515 '*/Modules/_ctypes/libffi*/*' \ 527 '*/Modules/_ctypes/libffi*/*' \
516 '*/Modules/_decimal/libmpdec/*' \ 528 '*/Modules/_decimal/libmpdec/*' \
529 '*/Modules/_sha3/kcp/*' \
517 '*/Modules/expat/*' \ 530 '*/Modules/expat/*' \
518 '*/Modules/zlib/*' \ 531 '*/Modules/zlib/*' \
519 '*/Include/*' \ 532 '*/Include/*' \
533 '*/Modules/xx*.c' \
534 '*/Parser/listnode.c' \
535 '*/Python/pyfpe.c' \
536 '*/Python/pystrcmp.c' \
520 '/usr/include/*' \ 537 '/usr/include/*' \
521 '/usr/local/include/*' \ 538 '/usr/local/include/*' \
539 '/usr/lib/gcc/*' \
522 --output-file $(COVERAGE_INFO) 540 --output-file $(COVERAGE_INFO)
523 @genhtml $(COVERAGE_INFO) --output-directory $(COVERAGE_REPORT) \ 541 @genhtml $(COVERAGE_INFO) --output-directory $(COVERAGE_REPORT) \
524 $(COVERAGE_REPORT_OPTIONS) 542 $(COVERAGE_REPORT_OPTIONS)
525 @echo 543 @echo
526 @echo "lcov report at $(COVERAGE_REPORT)/index.html" 544 @echo "lcov report at $(COVERAGE_REPORT)/index.html"
527 @echo 545 @echo
528 546
529 coverage-report: 547 coverage-report:
530 » : # force rebuilding of parser and importlib 548 » @ # force rebuilding of parser and importlib
531 @touch $(GRAMMAR_INPUT) 549 @touch $(GRAMMAR_INPUT)
532 @touch $(srcdir)/Lib/importlib/_bootstrap.py 550 @touch $(srcdir)/Lib/importlib/_bootstrap.py
533 @touch $(srcdir)/Lib/importlib/_bootstrap_external.py 551 @touch $(srcdir)/Lib/importlib/_bootstrap_external.py
534 » : # build with coverage info 552 » @ # build with coverage info
535 $(MAKE) coverage 553 $(MAKE) coverage
536 » : # run tests, ignore failures 554 » @ # run tests, ignore failures
537 $(TESTRUNNER) $(TESTOPTS) || true 555 $(TESTRUNNER) $(TESTOPTS) || true
538 » : # build lcov report 556 » @ # build lcov report
539 $(MAKE) coverage-lcov 557 $(MAKE) coverage-lcov
540 558
541 # Run "Argument Clinic" over all source files 559 # Run "Argument Clinic" over all source files
542 # (depends on python having already been built) 560 # (depends on python having already been built)
543 .PHONY=clinic 561 .PHONY=clinic
544 clinic: $(BUILDPYTHON) $(srcdir)/Modules/_blake2/blake2s_impl.c 562 clinic: $(BUILDPYTHON) $(srcdir)/Modules/_blake2/blake2s_impl.c
545 $(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make 563 $(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make
546 564
547 # Build the interpreter 565 # Build the interpreter
548 $(BUILDPYTHON): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) 566 $(BUILDPYTHON): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 609
592 610
593 # Build static library 611 # Build static library
594 # avoid long command lines, same as LIBRARY_OBJS 612 # avoid long command lines, same as LIBRARY_OBJS
595 $(LIBRARY): $(LIBRARY_OBJS) 613 $(LIBRARY): $(LIBRARY_OBJS)
596 -rm -f $@ 614 -rm -f $@
597 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o 615 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o
598 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS) 616 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS)
599 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS) 617 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS)
600 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS) Python/frozen.o 618 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS) Python/frozen.o
601 » $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS) 619 » $(AR) $(ARFLAGS) $@ $(MODULE_OBJS)
602 $(AR) $(ARFLAGS) $@ $(MODOBJS) 620 $(AR) $(ARFLAGS) $@ $(MODOBJS)
603 $(RANLIB) $@ 621 $(RANLIB) $@
604 622
605 libpython$(LDVERSION).so: $(LIBRARY_OBJS) 623 libpython$(LDVERSION).so: $(LIBRARY_OBJS)
606 if test $(INSTSONAME) != $(LDLIBRARY); then \ 624 if test $(INSTSONAME) != $(LDLIBRARY); then \
607 $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS ) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ 625 $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS ) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
608 $(LN) -f $(INSTSONAME) $@; \ 626 $(LN) -f $(INSTSONAME) $@; \
609 else \ 627 else \
610 $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ 628 $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
611 fi 629 fi
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 $(INSTALL) -d -m $(DIRMODE) \ 666 $(INSTALL) -d -m $(DIRMODE) \
649 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lpro j 667 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lpro j
650 $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \ 668 $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \
651 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist 669 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist
652 $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current 670 $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
653 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(P YTHONFRAMEWORK) 671 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(P YTHONFRAMEWORK)
654 $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources 672 $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
655 673
656 # This rule builds the Cygwin Python DLL and import library if configured 674 # This rule builds the Cygwin Python DLL and import library if configured
657 # for a shared core library; otherwise, this rule is a noop. 675 # for a shared core library; otherwise, this rule is a noop.
658 $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS) 676 $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
659 if test -n "$(DLLLIBRARY)"; then \ 677 if test -n "$(DLLLIBRARY)"; then \
660 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \ 678 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
661 $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \ 679 $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \
662 else true; \ 680 else true; \
663 fi 681 fi
664 682
665 683
666 oldsharedmods: $(SHAREDMODS) 684 oldsharedmods: $(SHAREDMODS)
667 685
668 686
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h 729 $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
712 730
713 731
714 ############################################################################ 732 ############################################################################
715 # Special rules for object files 733 # Special rules for object files
716 734
717 Modules/getbuildinfo.o: $(PARSER_OBJS) \ 735 Modules/getbuildinfo.o: $(PARSER_OBJS) \
718 $(OBJECT_OBJS) \ 736 $(OBJECT_OBJS) \
719 $(PYTHON_OBJS) \ 737 $(PYTHON_OBJS) \
720 $(MODULE_OBJS) \ 738 $(MODULE_OBJS) \
721 $(SIGNAL_OBJS) \
722 $(MODOBJS) \ 739 $(MODOBJS) \
723 $(srcdir)/Modules/getbuildinfo.c 740 $(srcdir)/Modules/getbuildinfo.c
724 $(CC) -c $(PY_CORE_CFLAGS) \ 741 $(CC) -c $(PY_CORE_CFLAGS) \
725 -DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \ 742 -DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \
726 -DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \ 743 -DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \
727 -DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \ 744 -DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \
728 -o $@ $(srcdir)/Modules/getbuildinfo.c 745 -o $@ $(srcdir)/Modules/getbuildinfo.c
729 746
730 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile 747 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
731 $(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \ 748 $(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 Objects/odictobject.o: $(srcdir)/Objects/dict-common.h 866 Objects/odictobject.o: $(srcdir)/Objects/dict-common.h
850 Objects/dictobject.o: $(srcdir)/Objects/stringlib/eq.h $(srcdir)/Objects/dict-co mmon.h 867 Objects/dictobject.o: $(srcdir)/Objects/stringlib/eq.h $(srcdir)/Objects/dict-co mmon.h
851 Objects/setobject.o: $(srcdir)/Objects/stringlib/eq.h 868 Objects/setobject.o: $(srcdir)/Objects/stringlib/eq.h
852 869
853 $(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES) 870 $(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES)
854 $(PYTHON_FOR_GEN) $(OPCODETARGETGEN) $(OPCODETARGETS_H) 871 $(PYTHON_FOR_GEN) $(OPCODETARGETGEN) $(OPCODETARGETS_H)
855 872
856 Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h 873 Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h
857 874
858 Python/frozen.o: Python/importlib.h Python/importlib_external.h 875 Python/frozen.o: Python/importlib.h Python/importlib_external.h
876
877 # Generate DTrace probe macros, then rename them (PYTHON_ -> PyDTrace_) to
878 # follow our naming conventions. dtrace(1) uses the output filename to generate
879 # an include guard, so we can't use a pipeline to transform its output.
880 Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d
881 $(DTRACE) $(DFLAGS) -o $@ -h -s $<
882 : sed in-place edit with POSIX-only tools
883 sed 's/PYTHON_/PyDTrace_/' $@ > $@.tmp
884 mv $@.tmp $@
885
886 Python/pydtrace.o: $(srcdir)/Include/pydtrace.d $(DTRACE_DEPS)
887 $(DTRACE) $(DFLAGS) -o $@ -G -s $< $(DTRACE_DEPS)
859 888
860 Objects/typeobject.o: Objects/typeslots.inc 889 Objects/typeobject.o: Objects/typeslots.inc
861 Objects/typeslots.inc: $(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots .py 890 Objects/typeslots.inc: $(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots .py
862 $(PYTHON_FOR_GEN) $(srcdir)/Objects/typeslots.py < $(srcdir)/Include/typ eslots.h Objects/typeslots.inc 891 $(PYTHON_FOR_GEN) $(srcdir)/Objects/typeslots.py < $(srcdir)/Include/typ eslots.h Objects/typeslots.inc
863 892
864 ############################################################################ 893 ############################################################################
865 # Header files 894 # Header files
866 895
867 PYTHON_HEADERS= \ 896 PYTHON_HEADERS= \
868 $(srcdir)/Include/Python.h \ 897 $(srcdir)/Include/Python.h \
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 $(srcdir)/Include/osdefs.h \ 945 $(srcdir)/Include/osdefs.h \
917 $(srcdir)/Include/osmodule.h \ 946 $(srcdir)/Include/osmodule.h \
918 $(srcdir)/Include/patchlevel.h \ 947 $(srcdir)/Include/patchlevel.h \
919 $(srcdir)/Include/pgen.h \ 948 $(srcdir)/Include/pgen.h \
920 $(srcdir)/Include/pgenheaders.h \ 949 $(srcdir)/Include/pgenheaders.h \
921 $(srcdir)/Include/pyarena.h \ 950 $(srcdir)/Include/pyarena.h \
922 $(srcdir)/Include/pyatomic.h \ 951 $(srcdir)/Include/pyatomic.h \
923 $(srcdir)/Include/pycapsule.h \ 952 $(srcdir)/Include/pycapsule.h \
924 $(srcdir)/Include/pyctype.h \ 953 $(srcdir)/Include/pyctype.h \
925 $(srcdir)/Include/pydebug.h \ 954 $(srcdir)/Include/pydebug.h \
955 $(srcdir)/Include/pydtrace.h \
926 $(srcdir)/Include/pyerrors.h \ 956 $(srcdir)/Include/pyerrors.h \
927 $(srcdir)/Include/pyfpe.h \ 957 $(srcdir)/Include/pyfpe.h \
928 $(srcdir)/Include/pyhash.h \ 958 $(srcdir)/Include/pyhash.h \
929 $(srcdir)/Include/pylifecycle.h \ 959 $(srcdir)/Include/pylifecycle.h \
930 $(srcdir)/Include/pymath.h \ 960 $(srcdir)/Include/pymath.h \
931 $(srcdir)/Include/pygetopt.h \ 961 $(srcdir)/Include/pygetopt.h \
932 $(srcdir)/Include/pymacro.h \ 962 $(srcdir)/Include/pymacro.h \
933 $(srcdir)/Include/pymem.h \ 963 $(srcdir)/Include/pymem.h \
934 $(srcdir)/Include/pyport.h \ 964 $(srcdir)/Include/pyport.h \
935 $(srcdir)/Include/pystate.h \ 965 $(srcdir)/Include/pystate.h \
(...skipping 11 matching lines...) Expand all
947 $(srcdir)/Include/symtable.h \ 977 $(srcdir)/Include/symtable.h \
948 $(srcdir)/Include/sysmodule.h \ 978 $(srcdir)/Include/sysmodule.h \
949 $(srcdir)/Include/traceback.h \ 979 $(srcdir)/Include/traceback.h \
950 $(srcdir)/Include/tupleobject.h \ 980 $(srcdir)/Include/tupleobject.h \
951 $(srcdir)/Include/ucnhash.h \ 981 $(srcdir)/Include/ucnhash.h \
952 $(srcdir)/Include/unicodeobject.h \ 982 $(srcdir)/Include/unicodeobject.h \
953 $(srcdir)/Include/warnings.h \ 983 $(srcdir)/Include/warnings.h \
954 $(srcdir)/Include/weakrefobject.h \ 984 $(srcdir)/Include/weakrefobject.h \
955 pyconfig.h \ 985 pyconfig.h \
956 $(PARSER_HEADERS) \ 986 $(PARSER_HEADERS) \
957 » » $(AST_H) 987 » » $(AST_H) \
988 » » $(DTRACE_HEADERS)
958 989
959 $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS) 990 $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS)
960 991
961 992
962 ###################################################################### 993 ######################################################################
963 994
964 TESTOPTS= $(EXTRATESTOPTS) 995 TESTOPTS= $(EXTRATESTOPTS)
965 TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) $(TESTPYTHONOPTS) 996 TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) $(TESTPYTHONOPTS)
966 TESTRUNNER= $(TESTPYTHON) $(srcdir)/Tools/scripts/run_tests.py 997 TESTRUNNER= $(TESTPYTHON) $(srcdir)/Tools/scripts/run_tests.py
967 TESTTIMEOUT=» 900 998 TESTTIMEOUT=» 1200
968 999
969 # Run a basic set of regression tests. 1000 # Run a basic set of regression tests.
970 # This excludes some tests that are particularly resource-intensive. 1001 # This excludes some tests that are particularly resource-intensive.
971 test: all platform 1002 test: all platform
972 $(TESTRUNNER) $(TESTOPTS) 1003 $(TESTRUNNER) $(TESTOPTS)
973 1004
974 # Run the full test suite twice - once without .pyc files, and once with. 1005 # Run the full test suite twice - once without .pyc files, and once with.
975 # In the past, we've had problems where bugs in the marshalling or 1006 # In the past, we've had problems where bugs in the marshalling or
976 # elsewhere caused bytecode read from .pyc files to behave differently 1007 # elsewhere caused bytecode read from .pyc files to behave differently
977 # than bytecode generated directly from a .py source file. Sometimes 1008 # than bytecode generated directly from a .py source file. Sometimes
978 # the bytecode read from a .pyc file had the bug, sometimes the directly 1009 # the bytecode read from a .pyc file had the bug, sometimes the directly
979 # generated bytecode. This is sometimes a very shy bug needing a lot of 1010 # generated bytecode. This is sometimes a very shy bug needing a lot of
980 # sample data. 1011 # sample data.
981 testall: all platform 1012 testall: all platform
982 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f 1013 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
983 $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py 1014 $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py
984 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f 1015 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
985 -$(TESTRUNNER) -u all $(TESTOPTS) 1016 -$(TESTRUNNER) -u all $(TESTOPTS)
986 $(TESTRUNNER) -u all $(TESTOPTS) 1017 $(TESTRUNNER) -u all $(TESTOPTS)
987 1018
988 # Run the test suite for both architectures in a Universal build on OSX. 1019 # Run the test suite for both architectures in a Universal build on OSX.
989 # Must be run on an Intel box. 1020 # Must be run on an Intel box.
990 testuniversal: all platform 1021 testuniversal: all platform
991 » » if [ `arch` != 'i386' ];then \ 1022 » » @if [ `arch` != 'i386' ]; then \
992 echo "This can only be used on OSX/i386" ;\ 1023 echo "This can only be used on OSX/i386" ;\
993 exit 1 ;\ 1024 exit 1 ;\
994 fi 1025 fi
995 $(TESTRUNNER) -u all $(TESTOPTS) 1026 $(TESTRUNNER) -u all $(TESTOPTS)
996 $(RUNSHARED) /usr/libexec/oah/translate \ 1027 $(RUNSHARED) /usr/libexec/oah/translate \
997 ./$(BUILDPYTHON) -E -m test -j 0 -u all $(TESTOPTS) 1028 ./$(BUILDPYTHON) -E -m test -j 0 -u all $(TESTOPTS)
998 1029
999 # Like testall, but with only one pass and without multiple processes. 1030 # Like testall, but with only one pass and without multiple processes.
1000 # Run an optional script to include information about the build environment. 1031 # Run an optional script to include information about the build environment.
1001 buildbottest:» all platform 1032 buildbottest:» build_all platform
1002 -@if which pybuildbot.identify >/dev/null 2>&1; then \ 1033 -@if which pybuildbot.identify >/dev/null 2>&1; then \
1003 pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \ 1034 pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
1004 fi 1035 fi
1005 $(TESTRUNNER) -j 1 -u all -W --slowest --timeout=$(TESTTIMEOUT) $(TESTOPTS) 1036 $(TESTRUNNER) -j 1 -u all -W --slowest --timeout=$(TESTTIMEOUT) $(TESTOPTS)
1006 1037
1007 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \ 1038 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
1008 test_multibytecodec test_urllib2_localnet test_itertools \ 1039 test_multibytecodec test_urllib2_localnet test_itertools \
1009 test_multiprocessing_fork test_multiprocessing_spawn \ 1040 test_multiprocessing_fork test_multiprocessing_spawn \
1010 test_multiprocessing_forkserver \ 1041 test_multiprocessing_forkserver \
1011 test_mailbox test_socket test_poll \ 1042 test_mailbox test_socket test_poll \
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 -rm -f $(DESTDIR)$(MANDIR)/man1/python3.1 1185 -rm -f $(DESTDIR)$(MANDIR)/man1/python3.1
1155 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1) 1186 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1)
1156 1187
1157 # Install the library 1188 # Install the library
1158 XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax 1189 XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
1159 LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ 1190 LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \
1160 tkinter/test/test_ttk site-packages test \ 1191 tkinter/test/test_ttk site-packages test \
1161 test/audiodata \ 1192 test/audiodata \
1162 test/capath test/data \ 1193 test/capath test/data \
1163 test/cjkencodings test/decimaltestdata test/xmltestdata \ 1194 test/cjkencodings test/decimaltestdata test/xmltestdata \
1195 test/dtracedata \
1164 test/eintrdata \ 1196 test/eintrdata \
1165 test/imghdrdata \ 1197 test/imghdrdata \
1166 test/libregrtest \ 1198 test/libregrtest \
1167 test/subprocessdata test/sndhdrdata test/support \ 1199 test/subprocessdata test/sndhdrdata test/support \
1168 test/tracedmodules test/encoded_modules \ 1200 test/tracedmodules test/encoded_modules \
1169 test/test_import \ 1201 test/test_import \
1170 test/test_import/data \ 1202 test/test_import/data \
1171 test/test_import/data/circular_imports \ 1203 test/test_import/data/circular_imports \
1172 test/test_import/data/circular_imports/subpkg \ 1204 test/test_import/data/circular_imports/subpkg \
1173 test/test_importlib/namespace_pkgs \ 1205 test/test_importlib/namespace_pkgs \
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \ 1295 $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \
1264 else \ 1296 else \
1265 echo $(INSTALL_DATA) $$i $$b; \ 1297 echo $(INSTALL_DATA) $$i $$b; \
1266 $(INSTALL_DATA) $$i $(DESTDIR)$$b; \ 1298 $(INSTALL_DATA) $$i $(DESTDIR)$$b; \
1267 fi;; \ 1299 fi;; \
1268 esac; \ 1300 esac; \
1269 done; \ 1301 done; \
1270 done 1302 done
1271 $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDE P)_$(MULTIARCH).py \ 1303 $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDE P)_$(MULTIARCH).py \
1272 $(DESTDIR)$(LIBDEST); \ 1304 $(DESTDIR)$(LIBDEST); \
1273 echo $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS).py \
1274 $(LIBDEST)
1275 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt 1305 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
1276 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \ 1306 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
1277 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ 1307 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
1278 $(DESTDIR)$(LIBDEST)/distutils/tests ; \ 1308 $(DESTDIR)$(LIBDEST)/distutils/tests ; \
1279 fi 1309 fi
1280 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1310 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1281 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ 1311 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
1282 -d $(LIBDEST) -f \ 1312 -d $(LIBDEST) -f \
1283 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 1313 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1284 $(DESTDIR)$(LIBDEST) 1314 $(DESTDIR)$(LIBDEST)
(...skipping 18 matching lines...) Expand all
1303 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1333 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1304 $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \ 1334 $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
1305 -d $(LIBDEST)/site-packages -f \ 1335 -d $(LIBDEST)/site-packages -f \
1306 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 1336 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1307 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1337 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1308 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/Grammar.txt 1338 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/Grammar.txt
1309 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1339 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1310 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/PatternGrammar.txt 1340 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/PatternGrammar.txt
1311 1341
1312 python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh 1342 python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
1313 » # Substitution happens here, as the completely-expanded BINDIR 1343 » @ # Substitution happens here, as the completely-expanded BINDIR
1314 » # is not available in configure 1344 » @ # is not available in configure
1315 sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Mis c/python-config.in >python-config.py 1345 sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Mis c/python-config.in >python-config.py
1316 » # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR} 1346 » @ # Replace makefile compat. variable references with shell script compa t. ones; $(VAR) -> ${VAR}
1317 » sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >p ython-config 1347 » LC_ALL=C sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-con fig.sh >python-config
1318 » # On Darwin, always use the python version of the script, the shell 1348 » @ # On Darwin, always use the python version of the script, the shell
1319 » # version doesn't use the compiler customizations that are provided 1349 » @ # version doesn't use the compiler customizations that are provided
1320 » # in python (_osx_support.py). 1350 » @ # in python (_osx_support.py).
1321 » if test `uname -s` = Darwin; then \ 1351 » @if test `uname -s` = Darwin; then \
1322 cp python-config.py python-config; \ 1352 cp python-config.py python-config; \
1323 fi 1353 fi
1324 1354
1325 1355
1326 # Install the include files 1356 # Install the include files
1327 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY) 1357 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
1328 inclinstall: 1358 inclinstall:
1329 @for i in $(INCLDIRSTOMAKE); \ 1359 @for i in $(INCLDIRSTOMAKE); \
1330 do \ 1360 do \
1331 if test ! -d $(DESTDIR)$$i; then \ 1361 if test ! -d $(DESTDIR)$$i; then \
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 fi 1428 fi
1399 1429
1400 # Install the dynamically loadable modules 1430 # Install the dynamically loadable modules
1401 # This goes into $(exec_prefix) 1431 # This goes into $(exec_prefix)
1402 sharedinstall: sharedmods 1432 sharedinstall: sharedmods
1403 $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \ 1433 $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
1404 --prefix=$(prefix) \ 1434 --prefix=$(prefix) \
1405 --install-scripts=$(BINDIR) \ 1435 --install-scripts=$(BINDIR) \
1406 --install-platlib=$(DESTSHARED) \ 1436 --install-platlib=$(DESTSHARED) \
1407 --root=$(DESTDIR)/ 1437 --root=$(DESTDIR)/
1408 » -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS).py 1438 » -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULT IARCH).py
1409 -rm -r $(DESTDIR)$(DESTSHARED)/__pycache__ 1439 -rm -r $(DESTDIR)$(DESTSHARED)/__pycache__
1410 1440
1411 # Here are a couple of targets for MacOSX again, to install a full 1441 # Here are a couple of targets for MacOSX again, to install a full
1412 # framework-based Python. frameworkinstall installs everything, the 1442 # framework-based Python. frameworkinstall installs everything, the
1413 # subtargets install specific parts. Much of the actual work is offloaded to 1443 # subtargets install specific parts. Much of the actual work is offloaded to
1414 # the Makefile in Mac 1444 # the Makefile in Mac
1415 # 1445 #
1416 # 1446 #
1417 # This target is here for backward compatibility, previous versions of Python 1447 # This target is here for backward compatibility, previous versions of Python
1418 # hadn't integrated framework installation in the normal install process. 1448 # hadn't integrated framework installation in the normal install process.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 find . -name '*.[oa]' -exec rm -f {} ';' 1592 find . -name '*.[oa]' -exec rm -f {} ';'
1563 find . -name '*.s[ol]' -exec rm -f {} ';' 1593 find . -name '*.s[ol]' -exec rm -f {} ';'
1564 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' 1594 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
1565 find build -name 'fficonfig.h' -exec rm -f {} ';' || true 1595 find build -name 'fficonfig.h' -exec rm -f {} ';' || true
1566 find build -name '*.py' -exec rm -f {} ';' || true 1596 find build -name '*.py' -exec rm -f {} ';' || true
1567 find build -name '*.py[co]' -exec rm -f {} ';' || true 1597 find build -name '*.py[co]' -exec rm -f {} ';' || true
1568 -rm -f pybuilddir.txt 1598 -rm -f pybuilddir.txt
1569 -rm -f Lib/lib2to3/*Grammar*.pickle 1599 -rm -f Lib/lib2to3/*Grammar*.pickle
1570 -rm -f Programs/_testembed Programs/_freeze_importlib 1600 -rm -f Programs/_testembed Programs/_freeze_importlib
1571 -find build -type f -a ! -name '*.gc??' -exec rm -f {} ';' 1601 -find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
1602 -rm -f Include/pydtrace_probes.h
1572 1603
1573 profile-removal: 1604 profile-removal:
1574 find . -name '*.gc??' -exec rm -f {} ';' 1605 find . -name '*.gc??' -exec rm -f {} ';'
1575 find . -name '*.profclang?' -exec rm -f {} ';' 1606 find . -name '*.profclang?' -exec rm -f {} ';'
1576 find . -name '*.dyn' -exec rm -f {} ';' 1607 find . -name '*.dyn' -exec rm -f {} ';'
1577 rm -f $(COVERAGE_INFO) 1608 rm -f $(COVERAGE_INFO)
1578 rm -rf $(COVERAGE_REPORT) 1609 rm -rf $(COVERAGE_REPORT)
1579 1610
1580 clobber: clean profile-removal 1611 clobber: clean profile-removal
1581 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ 1612 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
1582 tags TAGS \ 1613 tags TAGS \
1583 config.cache config.log pyconfig.h Modules/config.c 1614 config.cache config.log pyconfig.h Modules/config.c
1584 -rm -rf build platform 1615 -rm -rf build platform
1585 -rm -rf $(PYTHONFRAMEWORKDIR) 1616 -rm -rf $(PYTHONFRAMEWORKDIR)
1586 -rm -f python-config.py python-config 1617 -rm -f python-config.py python-config
1587 1618
1588 # Make things extra clean, before making a distribution: 1619 # Make things extra clean, before making a distribution:
1589 # remove all generated files, even Makefile[.pre] 1620 # remove all generated files, even Makefile[.pre]
1590 # Keep configure and Python-ast.[ch], it's possible they can't be generated 1621 # Keep configure and Python-ast.[ch], it's possible they can't be generated
1591 distclean: clobber 1622 distclean: clobber
1592 for file in $(srcdir)/Lib/test/data/* ; do \ 1623 for file in $(srcdir)/Lib/test/data/* ; do \
1593 if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$fil e"; fi; \ 1624 if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$fil e"; fi; \
1594 done 1625 done
1595 -rm -f core Makefile Makefile.pre config.status \ 1626 -rm -f core Makefile Makefile.pre config.status \
1596 Modules/Setup Modules/Setup.local Modules/Setup.config \ 1627 Modules/Setup Modules/Setup.local Modules/Setup.config \
1597 Modules/ld_so_aix Modules/python.exp Misc/python.pc 1628 Modules/ld_so_aix Modules/python.exp Misc/python.pc
1598 -rm -f python*-gdb.py 1629 -rm -f python*-gdb.py
1599 » find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \ 1630 » # Issue #28258: set LC_ALL to avoid issues with Estonian locale.
1631 » # Expansion is performed here by shell (spawned by make) itself before
1632 » # arguments are passed to find. So LC_ALL=C must be set as a separate
1633 » # command.
1634 » LC_ALL=C; find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
1600 -o -name '[@,#]*' -o -name '*.old' \ 1635 -o -name '[@,#]*' -o -name '*.old' \
1601 -o -name '*.orig' -o -name '*.rej' \ 1636 -o -name '*.orig' -o -name '*.rej' \
1602 -o -name '*.bak' ')' \ 1637 -o -name '*.bak' ')' \
1603 -exec rm -f {} ';' 1638 -exec rm -f {} ';'
1604 1639
1605 # Check for smelly exported symbols (not starting with Py/_Py) 1640 # Check for smelly exported symbols (not starting with Py/_Py)
1606 smelly: all 1641 smelly: all
1607 nm -p $(LIBRARY) | \ 1642 nm -p $(LIBRARY) | \
1608 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \ 1643 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
1609 1644
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1689 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1655 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1690 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1656 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1691 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1657 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall 1692 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall
1658 .PHONY: gdbhooks 1693 .PHONY: gdbhooks
1659 1694
1660 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1695 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
1661 # Local Variables: 1696 # Local Variables:
1662 # mode: makefile 1697 # mode: makefile
1663 # End: 1698 # End:
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+