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

Delta Between Two Patch Sets: Makefile.pre.in

Issue 3353: make built-in tokenizer available via Python C API
Left Patch Set: Created 5 years, 9 months ago
Right Patch Set: Created 4 years, 11 months 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 | « Lib/token.py ('k') | Modules/parsermodule.c » ('j') | 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 MKDIR_P= @MKDIR_P@ 65 MKDIR_P= @MKDIR_P@
66 66
67 MAKESETUP= $(srcdir)/Modules/makesetup 67 MAKESETUP= $(srcdir)/Modules/makesetup
68 68
69 # Compiler options 69 # Compiler options
70 OPT= @OPT@ 70 OPT= @OPT@
71 BASECFLAGS= @BASECFLAGS@ 71 BASECFLAGS= @BASECFLAGS@
72 BASECPPFLAGS= @BASECPPFLAGS@ 72 BASECPPFLAGS= @BASECPPFLAGS@
73 CONFIGURE_CFLAGS= @CFLAGS@ 73 CONFIGURE_CFLAGS= @CFLAGS@
74 # CFLAGS_NODIST is used for building the interpreter and stdlib C extensions.
75 # Use it when a compiler flag should _not_ be part of the distutils CFLAGS
76 # once Python is installed (Issue #21121).
77 CONFIGURE_CFLAGS_NODIST=@CFLAGS_NODIST@
74 CONFIGURE_CPPFLAGS= @CPPFLAGS@ 78 CONFIGURE_CPPFLAGS= @CPPFLAGS@
75 CONFIGURE_LDFLAGS= @LDFLAGS@ 79 CONFIGURE_LDFLAGS= @LDFLAGS@
76 # Avoid assigning CFLAGS, LDFLAGS, etc. so users can use them on the 80 # Avoid assigning CFLAGS, LDFLAGS, etc. so users can use them on the
77 # command line to append to these values without stomping the pre-set 81 # command line to append to these values without stomping the pre-set
78 # values. 82 # values.
79 PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAG S) 83 PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAG S)
84 PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST)
80 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to 85 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
81 # be able to build extension modules using the directories specified in the 86 # be able to build extension modules using the directories specified in the
82 # environment variables 87 # environment variables
83 PY_CPPFLAGS= $(BASECPPFLAGS) -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CP PFLAGS) $(CPPFLAGS) 88 PY_CPPFLAGS= $(BASECPPFLAGS) -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CP PFLAGS) $(CPPFLAGS)
84 PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS) 89 PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS)
85 NO_AS_NEEDED= @NO_AS_NEEDED@ 90 NO_AS_NEEDED= @NO_AS_NEEDED@
86 LDLAST= @LDLAST@ 91 LDLAST= @LDLAST@
87 SGI_ABI= @SGI_ABI@ 92 SGI_ABI= @SGI_ABI@
88 CCSHARED= @CCSHARED@ 93 CCSHARED= @CCSHARED@
89 LINKFORSHARED= @LINKFORSHARED@ 94 LINKFORSHARED= @LINKFORSHARED@
90 ARFLAGS= @ARFLAGS@ 95 ARFLAGS= @ARFLAGS@
91 # Extra C flags added for building the interpreter object files. 96 # Extra C flags added for building the interpreter object files.
92 CFLAGSFORSHARED=@CFLAGSFORSHARED@ 97 CFLAGSFORSHARED=@CFLAGSFORSHARED@
93 # C flags used for building the interpreter object files 98 # C flags used for building the interpreter object files
94 PY_CORE_CFLAGS=»$(PY_CFLAGS) $(PY_CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE 99 PY_CORE_CFLAGS=»$(PY_CFLAGS) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS) $(CFLAGSFORSHARE D) -DPy_BUILD_CORE
95 100
96 101
97 # Machine-dependent subdirectories 102 # Machine-dependent subdirectories
98 MACHDEP= @MACHDEP@ 103 MACHDEP= @MACHDEP@
99 104
100 # Multiarch directory (may be empty) 105 # Multiarch directory (may be empty)
101 MULTIARCH= @MULTIARCH@ 106 MULTIARCH= @MULTIARCH@
102 107
103 # Install prefix for architecture-independent files 108 # Install prefix for architecture-independent files
104 prefix= @prefix@ 109 prefix= @prefix@
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 # 336 #
332 ########################################################################## 337 ##########################################################################
333 # AST 338 # AST
334 AST_H_DIR= Include 339 AST_H_DIR= Include
335 AST_H= $(AST_H_DIR)/Python-ast.h 340 AST_H= $(AST_H_DIR)/Python-ast.h
336 AST_C_DIR= Python 341 AST_C_DIR= Python
337 AST_C= $(AST_C_DIR)/Python-ast.c 342 AST_C= $(AST_C_DIR)/Python-ast.c
338 AST_ASDL= $(srcdir)/Parser/Python.asdl 343 AST_ASDL= $(srcdir)/Parser/Python.asdl
339 344
340 ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py 345 ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
341 # XXX Note that a build now requires Python exist before the build starts 346 # Note that a build now requires Python to exist before the build starts.
347 # Use "hg touch" to fix up screwed up file mtimes in a checkout.
342 ASDLGEN= @ASDLGEN@ $(srcdir)/Parser/asdl_c.py 348 ASDLGEN= @ASDLGEN@ $(srcdir)/Parser/asdl_c.py
343 349
344 ########################################################################## 350 ##########################################################################
345 # Python 351 # Python
346 352
347 OPCODETARGETS_H= \ 353 OPCODETARGETS_H= \
348 Python/opcode_targets.h 354 Python/opcode_targets.h
349 355
350 OPCODETARGETGEN= \ 356 OPCODETARGETGEN= \
351 $(srcdir)/Python/makeopcodetargets.py 357 $(srcdir)/Python/makeopcodetargets.py
(...skipping 24 matching lines...) Expand all
376 Python/importdl.o \ 382 Python/importdl.o \
377 Python/marshal.o \ 383 Python/marshal.o \
378 Python/modsupport.o \ 384 Python/modsupport.o \
379 Python/mystrtoul.o \ 385 Python/mystrtoul.o \
380 Python/mysnprintf.o \ 386 Python/mysnprintf.o \
381 Python/peephole.o \ 387 Python/peephole.o \
382 Python/pyarena.o \ 388 Python/pyarena.o \
383 Python/pyctype.o \ 389 Python/pyctype.o \
384 Python/pyfpe.o \ 390 Python/pyfpe.o \
385 Python/pyhash.o \ 391 Python/pyhash.o \
392 Python/pylifecycle.o \
386 Python/pymath.o \ 393 Python/pymath.o \
387 Python/pystate.o \ 394 Python/pystate.o \
388 Python/pythonrun.o \ 395 Python/pythonrun.o \
389 Python/pytime.o \ 396 Python/pytime.o \
390 Python/random.o \ 397 Python/random.o \
391 Python/structmember.o \ 398 Python/structmember.o \
392 Python/symtable.o \ 399 Python/symtable.o \
393 Python/sysmodule.o \ 400 Python/sysmodule.o \
394 Python/traceback.o \ 401 Python/traceback.o \
395 Python/getopt.o \ 402 Python/getopt.o \
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 466
460 LIBRARY_OBJS= \ 467 LIBRARY_OBJS= \
461 $(LIBRARY_OBJS_OMIT_FROZEN) \ 468 $(LIBRARY_OBJS_OMIT_FROZEN) \
462 Python/frozen.o 469 Python/frozen.o
463 470
464 ######################################################################### 471 #########################################################################
465 # Rules 472 # Rules
466 473
467 # Default target 474 # Default target
468 all: build_all 475 all: build_all
469 build_all:» $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Modules/_testem bed python-config 476 build_all:» $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_teste mbed python-config
470 477
471 # Compile a binary with gcc profile guided optimization. 478 # Compile a binary with gcc profile guided optimization.
472 profile-opt: 479 profile-opt:
473 @echo "Building with support for profile generation:" 480 @echo "Building with support for profile generation:"
474 $(MAKE) clean 481 $(MAKE) clean
475 $(MAKE) build_all_generate_profile 482 $(MAKE) build_all_generate_profile
476 @echo "Running benchmark to generate profile data:" 483 @echo "Running benchmark to generate profile data:"
477 $(MAKE) profile-removal 484 $(MAKE) profile-removal
478 $(MAKE) run_profile_task 485 $(MAKE) run_profile_task
479 @echo "Rebuilding with profile guided optimizations:" 486 @echo "Rebuilding with profile guided optimizations:"
480 $(MAKE) clean 487 $(MAKE) clean
481 $(MAKE) build_all_use_profile 488 $(MAKE) build_all_use_profile
482 489
483 build_all_generate_profile: 490 build_all_generate_profile:
484 » $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov" 491 » $(MAKE) all CFLAGS_NODIST="$(CFLAGS) -fprofile-generate" LDFLAGS="-fprof ile-generate" LIBS="$(LIBS) -lgcov"
485 492
486 run_profile_task: 493 run_profile_task:
487 : # FIXME: can't run for a cross build 494 : # FIXME: can't run for a cross build
488 $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) 495 $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
489 496
490 build_all_use_profile: 497 build_all_use_profile:
491 » $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use -fprofile-correction" 498 » $(MAKE) all CFLAGS_NODIST="$(CFLAGS) -fprofile-use -fprofile-correction"
492 499
493 # Compile and run with gcov 500 # Compile and run with gcov
494 .PHONY=coverage coverage-lcov coverage-report 501 .PHONY=coverage coverage-lcov coverage-report
495 coverage: 502 coverage:
496 @echo "Building with support for coverage checking:" 503 @echo "Building with support for coverage checking:"
497 $(MAKE) clean profile-removal 504 $(MAKE) clean profile-removal
498 $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LI BS="$(LIBS) -lgcov" 505 $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LI BS="$(LIBS) -lgcov"
499 506
500 coverage-lcov: 507 coverage-lcov:
501 @echo "Creating Coverage HTML report with LCOV:" 508 @echo "Creating Coverage HTML report with LCOV:"
(...skipping 30 matching lines...) Expand all
532 : # build lcov report 539 : # build lcov report
533 $(MAKE) coverage-lcov 540 $(MAKE) coverage-lcov
534 541
535 # Run "Argument Clinic" over all source files 542 # Run "Argument Clinic" over all source files
536 # (depends on python having already been built) 543 # (depends on python having already been built)
537 .PHONY=clinic 544 .PHONY=clinic
538 clinic: $(BUILDPYTHON) 545 clinic: $(BUILDPYTHON)
539 $(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make 546 $(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make
540 547
541 # Build the interpreter 548 # Build the interpreter
542 $(BUILDPYTHON):»Modules/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) 549 $(BUILDPYTHON):»Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
543 » $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules/python.o $(BLDLIB RARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 550 » $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLI BRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
544 551
545 platform: $(BUILDPYTHON) pybuilddir.txt 552 platform: $(BUILDPYTHON) pybuilddir.txt
546 $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print(get_platform()+"-"+sys.version[0:3])' >platform 553 $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print(get_platform()+"-"+sys.version[0:3])' >platform
547 554
548 # Create build directory and generate the sysconfig build-time data there. 555 # Create build directory and generate the sysconfig build-time data there.
549 # pybuilddir.txt contains the name of the build dir and is used for 556 # pybuilddir.txt contains the name of the build dir and is used for
550 # sys.path fixup -- see Modules/getpath.c. 557 # sys.path fixup -- see Modules/getpath.c.
558 # Since this step runs before shared modules are built, try to avoid bootstrap
559 # problems by creating a dummy pybuilddir.txt just to allow interpreter
560 # initialization to succeed. It will be overwritten by generate-posix-vars
561 # or removed in case of failure.
551 pybuilddir.txt: $(BUILDPYTHON) 562 pybuilddir.txt: $(BUILDPYTHON)
552 » $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars 563 » @echo "none" > ./pybuilddir.txt
564 » $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ; \
565 » if test $$? -ne 0 ; then \
566 » » echo "generate-posix-vars failed" ; \
567 » » rm -f ./pybuilddir.txt ; \
568 » » exit 1 ; \
569 » fi
553 570
554 # Build the shared modules 571 # Build the shared modules
555 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for 572 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
556 # -s, --silent or --quiet is always the first char. 573 # -s, --silent or --quiet is always the first char.
557 # Under BSD make, MAKEFLAGS might be " -s -v x=y". 574 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
558 sharedmods: $(BUILDPYTHON) pybuilddir.txt 575 sharedmods: $(BUILDPYTHON) pybuilddir.txt
559 @case "$$MAKEFLAGS" in \ 576 @case "$$MAKEFLAGS" in \
560 *\ -s*|s*) quiet="-q";; \ 577 *\ -s*|s*) quiet="-q";; \
561 *) quiet="";; \ 578 *) quiet="";; \
562 esac; \ 579 esac; \
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 Modules/Setup: $(srcdir)/Modules/Setup.dist 675 Modules/Setup: $(srcdir)/Modules/Setup.dist
659 @if test -f Modules/Setup; then \ 676 @if test -f Modules/Setup; then \
660 echo "-----------------------------------------------"; \ 677 echo "-----------------------------------------------"; \
661 echo "Modules/Setup.dist is newer than Modules/Setup;"; \ 678 echo "Modules/Setup.dist is newer than Modules/Setup;"; \
662 echo "check to make sure you have all the updates you"; \ 679 echo "check to make sure you have all the updates you"; \
663 echo "need in your Modules/Setup file."; \ 680 echo "need in your Modules/Setup file."; \
664 echo "Usually, copying Modules/Setup.dist to Modules/Setup will work."; \ 681 echo "Usually, copying Modules/Setup.dist to Modules/Setup will work."; \
665 echo "-----------------------------------------------"; \ 682 echo "-----------------------------------------------"; \
666 fi 683 fi
667 684
668 Modules/_testembed: Modules/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) 685 Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
669 » $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules/_testembed.o $(BL DLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 686 » $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(B LDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
670 687
671 ############################################################################ 688 ############################################################################
672 # Importlib 689 # Importlib
673 690
674 Modules/_freeze_importlib: Modules/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZE N) 691 Programs/_freeze_importlib.o: Programs/_freeze_importlib.c Makefile
675 » $(LINKCC) $(PY_LDFLAGS) -o $@ Modules/_freeze_importlib.o $(LIBRARY_OBJS _OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 692
676 693 Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FRO ZEN)
677 Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Modules/_freeze_import lib.c 694 » $(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJ S_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
678 » $(MAKE) Modules/_freeze_importlib 695
679 » ./Modules/_freeze_importlib \ 696 Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_impor tlib
697 » ./Programs/_freeze_importlib \
680 $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h 698 $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
681 699
682 700
683 ############################################################################ 701 ############################################################################
684 # Special rules for object files 702 # Special rules for object files
685 703
686 Modules/getbuildinfo.o: $(PARSER_OBJS) \ 704 Modules/getbuildinfo.o: $(PARSER_OBJS) \
687 $(OBJECT_OBJS) \ 705 $(OBJECT_OBJS) \
688 $(PYTHON_OBJS) \ 706 $(PYTHON_OBJS) \
689 $(MODULE_OBJS) \ 707 $(MODULE_OBJS) \
690 $(SIGNAL_OBJS) \ 708 $(SIGNAL_OBJS) \
691 $(MODOBJS) \ 709 $(MODOBJS) \
692 $(srcdir)/Modules/getbuildinfo.c 710 $(srcdir)/Modules/getbuildinfo.c
693 $(CC) -c $(PY_CORE_CFLAGS) \ 711 $(CC) -c $(PY_CORE_CFLAGS) \
694 -DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \ 712 -DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \
695 -DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \ 713 -DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \
696 -DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \ 714 -DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \
697 -o $@ $(srcdir)/Modules/getbuildinfo.c 715 -o $@ $(srcdir)/Modules/getbuildinfo.c
698 716
699 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile 717 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
700 $(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \ 718 $(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
701 -DPREFIX='"$(prefix)"' \ 719 -DPREFIX='"$(prefix)"' \
702 -DEXEC_PREFIX='"$(exec_prefix)"' \ 720 -DEXEC_PREFIX='"$(exec_prefix)"' \
703 -DVERSION='"$(VERSION)"' \ 721 -DVERSION='"$(VERSION)"' \
704 -DVPATH='"$(VPATH)"' \ 722 -DVPATH='"$(VPATH)"' \
705 -o $@ $(srcdir)/Modules/getpath.c 723 -o $@ $(srcdir)/Modules/getpath.c
706 724
707 Modules/python.o: $(srcdir)/Modules/python.c 725 Programs/python.o: $(srcdir)/Programs/python.c
708 » $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules/python.c 726 » $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/python.c
709 727
710 Modules/_testembed.o: $(srcdir)/Modules/_testembed.c 728 Programs/_testembed.o: $(srcdir)/Programs/_testembed.c
711 » $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules/_testembed.c 729 » $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/_testembed.c
712 730
713 Modules/_sre.o: $(srcdir)/Modules/_sre.c $(srcdir)/Modules/sre.h $(srcdir)/Modul es/sre_constants.h $(srcdir)/Modules/sre_lib.h 731 Modules/_sre.o: $(srcdir)/Modules/_sre.c $(srcdir)/Modules/sre.h $(srcdir)/Modul es/sre_constants.h $(srcdir)/Modules/sre_lib.h
714 732
715 Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmo dule.h 733 Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmo dule.h
716 734
717 Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule .h 735 Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule .h
718 736
719 Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule .h 737 Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule .h
720 738
721 Modules/signalmodule.o: $(srcdir)/Modules/signalmodule.c $(srcdir)/Modules/posix module.h 739 Modules/signalmodule.o: $(srcdir)/Modules/signalmodule.c $(srcdir)/Modules/posix module.h
722 740
723 Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile 741 Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
724 $(CC) -c $(PY_CORE_CFLAGS) \ 742 $(CC) -c $(PY_CORE_CFLAGS) \
725 -DSOABI='"$(SOABI)"' \ 743 -DSOABI='"$(SOABI)"' \
726 -o $@ $(srcdir)/Python/dynload_shlib.c 744 -o $@ $(srcdir)/Python/dynload_shlib.c
727 745
728 Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile 746 Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile
729 $(CC) -c $(PY_CORE_CFLAGS) \ 747 $(CC) -c $(PY_CORE_CFLAGS) \
730 -DSHLIB_EXT='"$(EXT_SUFFIX)"' \ 748 -DSHLIB_EXT='"$(EXT_SUFFIX)"' \
731 -o $@ $(srcdir)/Python/dynload_hpux.c 749 -o $@ $(srcdir)/Python/dynload_hpux.c
732 750
733 Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile 751 Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile
734 $(CC) -c $(PY_CORE_CFLAGS) \ 752 $(CC) -c $(PY_CORE_CFLAGS) \
735 -DABIFLAGS='"$(ABIFLAGS)"' \ 753 -DABIFLAGS='"$(ABIFLAGS)"' \
736 -o $@ $(srcdir)/Python/sysmodule.c 754 -o $@ $(srcdir)/Python/sysmodule.c
737 755
738 $(IO_OBJS): $(IO_H) 756 $(IO_OBJS): $(IO_H)
739 757
740 $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) 758 $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
741 @$(MKDIR_P) Include 759 @$(MKDIR_P) Include
742 $(MAKE) $(PGEN)
743 $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) 760 $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
744 $(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS) 761 $(GRAMMAR_C): $(GRAMMAR_H)
745 » » $(MAKE) $(GRAMMAR_H)
746 touch $(GRAMMAR_C) 762 touch $(GRAMMAR_C)
747 763
748 $(PGEN):» $(PGENOBJS) 764 $(PGEN): $(PGENOBJS)
749 $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) 765 $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
750 766
751 Parser/grammar.o: $(srcdir)/Parser/grammar.c \ 767 Parser/grammar.o: $(srcdir)/Parser/grammar.c \
752 $(srcdir)/Include/token.h \ 768 $(srcdir)/Include/token.h \
753 $(srcdir)/Include/grammar.h 769 $(srcdir)/Include/grammar.h
754 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c 770 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
755 771
756 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c 772 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
757 Parser/parsetok_pgen.o: $(srcdir)/Parser/parsetok.c 773 Parser/parsetok_pgen.o: $(srcdir)/Parser/parsetok.c
758 Parser/printgrammar.o: $(srcdir)/Parser/printgrammar.c 774 Parser/printgrammar.o: $(srcdir)/Parser/printgrammar.c
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 $(srcdir)/Include/pgen.h \ 903 $(srcdir)/Include/pgen.h \
888 $(srcdir)/Include/pgenheaders.h \ 904 $(srcdir)/Include/pgenheaders.h \
889 $(srcdir)/Include/pyarena.h \ 905 $(srcdir)/Include/pyarena.h \
890 $(srcdir)/Include/pyatomic.h \ 906 $(srcdir)/Include/pyatomic.h \
891 $(srcdir)/Include/pycapsule.h \ 907 $(srcdir)/Include/pycapsule.h \
892 $(srcdir)/Include/pyctype.h \ 908 $(srcdir)/Include/pyctype.h \
893 $(srcdir)/Include/pydebug.h \ 909 $(srcdir)/Include/pydebug.h \
894 $(srcdir)/Include/pyerrors.h \ 910 $(srcdir)/Include/pyerrors.h \
895 $(srcdir)/Include/pyfpe.h \ 911 $(srcdir)/Include/pyfpe.h \
896 $(srcdir)/Include/pyhash.h \ 912 $(srcdir)/Include/pyhash.h \
913 $(srcdir)/Include/pylifecycle.h \
897 $(srcdir)/Include/pymath.h \ 914 $(srcdir)/Include/pymath.h \
898 $(srcdir)/Include/pygetopt.h \ 915 $(srcdir)/Include/pygetopt.h \
899 $(srcdir)/Include/pymacro.h \ 916 $(srcdir)/Include/pymacro.h \
900 $(srcdir)/Include/pymem.h \ 917 $(srcdir)/Include/pymem.h \
901 $(srcdir)/Include/pyport.h \ 918 $(srcdir)/Include/pyport.h \
902 $(srcdir)/Include/pystate.h \ 919 $(srcdir)/Include/pystate.h \
903 $(srcdir)/Include/pystrcmp.h \ 920 $(srcdir)/Include/pystrcmp.h \
904 $(srcdir)/Include/pystrtod.h \ 921 $(srcdir)/Include/pystrtod.h \
905 $(srcdir)/Include/pythonrun.h \ 922 $(srcdir)/Include/pythonrun.h \
906 $(srcdir)/Include/pythread.h \ 923 $(srcdir)/Include/pythread.h \
907 $(srcdir)/Include/pytime.h \ 924 $(srcdir)/Include/pytime.h \
908 $(srcdir)/Include/rangeobject.h \ 925 $(srcdir)/Include/rangeobject.h \
909 $(srcdir)/Include/setobject.h \ 926 $(srcdir)/Include/setobject.h \
910 $(srcdir)/Include/sliceobject.h \ 927 $(srcdir)/Include/sliceobject.h \
911 $(srcdir)/Include/structmember.h \ 928 $(srcdir)/Include/structmember.h \
912 $(srcdir)/Include/structseq.h \ 929 $(srcdir)/Include/structseq.h \
913 $(srcdir)/Include/symtable.h \ 930 $(srcdir)/Include/symtable.h \
914 $(srcdir)/Include/sysmodule.h \ 931 $(srcdir)/Include/sysmodule.h \
915 $(srcdir)/Include/traceback.h \ 932 $(srcdir)/Include/traceback.h \
916 $(srcdir)/Include/tupleobject.h \ 933 $(srcdir)/Include/tupleobject.h \
917 $(srcdir)/Include/ucnhash.h \ 934 $(srcdir)/Include/ucnhash.h \
918 $(srcdir)/Include/unicodeobject.h \ 935 $(srcdir)/Include/unicodeobject.h \
919 $(srcdir)/Include/warnings.h \ 936 $(srcdir)/Include/warnings.h \
920 $(srcdir)/Include/weakrefobject.h \ 937 $(srcdir)/Include/weakrefobject.h \
921 pyconfig.h \ 938 pyconfig.h \
922 $(PARSER_HEADERS) \ 939 $(PARSER_HEADERS) \
923 $(AST_H) 940 $(AST_H)
924 941
925 $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS) 942 $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS)
926 943
927 944
928 ###################################################################### 945 ######################################################################
929 946
930 TESTOPTS= $(EXTRATESTOPTS) 947 TESTOPTS= $(EXTRATESTOPTS)
931 TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) $(TESTPYTHONOPTS) 948 TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) $(TESTPYTHONOPTS)
932 TESTRUNNER= $(TESTPYTHON) $(srcdir)/Tools/scripts/run_tests.py 949 TESTRUNNER= $(TESTPYTHON) $(srcdir)/Tools/scripts/run_tests.py
933 TESTTIMEOUT= 3600 950 TESTTIMEOUT= 3600
934 951
935 # Run a basic set of regression tests. 952 # Run a basic set of regression tests.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 done 1127 done
1111 $(INSTALL_DATA) $(srcdir)/Misc/python.man \ 1128 $(INSTALL_DATA) $(srcdir)/Misc/python.man \
1112 $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1 1129 $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1
1113 1130
1114 # Install the unversioned manual page 1131 # Install the unversioned manual page
1115 maninstall: altmaninstall 1132 maninstall: altmaninstall
1116 -rm -f $(DESTDIR)$(MANDIR)/man1/python3.1 1133 -rm -f $(DESTDIR)$(MANDIR)/man1/python3.1
1117 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1) 1134 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1)
1118 1135
1119 # Install the library 1136 # Install the library
1120 PLATDIR=» plat-$(MACHDEP) 1137 PLATDIR=» @PLATDIR@
1121 EXTRAPLATDIR= @EXTRAPLATDIR@ 1138 EXTRAPLATDIR= @EXTRAPLATDIR@
1122 MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR) 1139 MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR)
1123 XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax 1140 XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
1124 LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ 1141 LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \
1125 tkinter/test/test_ttk site-packages test \ 1142 tkinter/test/test_ttk site-packages test \
1126 test/audiodata \ 1143 test/audiodata \
1127 test/capath test/data \ 1144 test/capath test/data \
1128 test/cjkencodings test/decimaltestdata test/xmltestdata \ 1145 test/cjkencodings test/decimaltestdata test/xmltestdata \
1146 test/eintrdata \
1129 test/imghdrdata \ 1147 test/imghdrdata \
1130 test/subprocessdata test/sndhdrdata test/support \ 1148 test/subprocessdata test/sndhdrdata test/support \
1131 test/tracedmodules test/encoded_modules \ 1149 test/tracedmodules test/encoded_modules \
1150 test/test_import \
1151 test/test_import/data \
1152 test/test_import/data/circular_imports \
1153 test/test_import/data/circular_imports/subpkg \
1132 test/test_importlib/namespace_pkgs \ 1154 test/test_importlib/namespace_pkgs \
1133 test/test_importlib/namespace_pkgs/both_portions \ 1155 test/test_importlib/namespace_pkgs/both_portions \
1134 test/test_importlib/namespace_pkgs/both_portions/foo \ 1156 test/test_importlib/namespace_pkgs/both_portions/foo \
1135 test/test_importlib/namespace_pkgs/not_a_namespace_pkg \ 1157 test/test_importlib/namespace_pkgs/not_a_namespace_pkg \
1136 test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo \ 1158 test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo \
1137 test/test_importlib/namespace_pkgs/portion1 \ 1159 test/test_importlib/namespace_pkgs/portion1 \
1138 test/test_importlib/namespace_pkgs/portion1/foo \ 1160 test/test_importlib/namespace_pkgs/portion1/foo \
1139 test/test_importlib/namespace_pkgs/portion2 \ 1161 test/test_importlib/namespace_pkgs/portion2 \
1140 test/test_importlib/namespace_pkgs/portion2/foo \ 1162 test/test_importlib/namespace_pkgs/portion2/foo \
1141 test/test_importlib/namespace_pkgs/project1 \ 1163 test/test_importlib/namespace_pkgs/project1 \
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1256 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1235 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ 1257 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
1236 -d $(LIBDEST) -f \ 1258 -d $(LIBDEST) -f \
1237 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 1259 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1238 $(DESTDIR)$(LIBDEST) 1260 $(DESTDIR)$(LIBDEST)
1239 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1261 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1240 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \ 1262 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
1241 -d $(LIBDEST) -f \ 1263 -d $(LIBDEST) -f \
1242 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 1264 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1243 $(DESTDIR)$(LIBDEST) 1265 $(DESTDIR)$(LIBDEST)
1244 » -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1266 » -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1267 » » $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
1268 » » -d $(LIBDEST) -f \
1269 » » -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1270 » » $(DESTDIR)$(LIBDEST)
1271 » -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1245 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ 1272 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
1246 -d $(LIBDEST)/site-packages -f \ 1273 -d $(LIBDEST)/site-packages -f \
1247 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 1274 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1248 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1275 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1249 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \ 1276 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
1277 -d $(LIBDEST)/site-packages -f \
1278 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1279 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1280 $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
1250 -d $(LIBDEST)/site-packages -f \ 1281 -d $(LIBDEST)/site-packages -f \
1251 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 1282 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1252 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1283 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1253 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/Grammar.txt 1284 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/Grammar.txt
1254 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1285 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1255 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/PatternGrammar.txt 1286 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/PatternGrammar.txt
1256 1287
1257 # Create the PLATDIR source directory, if one wasn't distributed.. 1288 # Create the PLATDIR source directory, if one wasn't distributed..
1258 $(srcdir)/Lib/$(PLATDIR): 1289 $(srcdir)/Lib/$(PLATDIR):
1259 mkdir $(srcdir)/Lib/$(PLATDIR) 1290 mkdir $(srcdir)/Lib/$(PLATDIR)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 done 1329 done
1299 @for i in $(srcdir)/Include/*.h; \ 1330 @for i in $(srcdir)/Include/*.h; \
1300 do \ 1331 do \
1301 echo $(INSTALL_DATA) $$i $(INCLUDEPY); \ 1332 echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
1302 $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \ 1333 $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
1303 done 1334 done
1304 $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h 1335 $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
1305 1336
1306 # Install the library and miscellaneous stuff needed for extending/embedding 1337 # Install the library and miscellaneous stuff needed for extending/embedding
1307 # This goes into $(exec_prefix) 1338 # This goes into $(exec_prefix)
1308 LIBPL=» » $(LIBDEST)/config-$(LDVERSION) 1339 LIBPL=» » @LIBPL@
1309 1340
1310 # pkgconfig directory 1341 # pkgconfig directory
1311 LIBPC= $(LIBDIR)/pkgconfig 1342 LIBPC= $(LIBDIR)/pkgconfig
1312 1343
1313 libainstall: all python-config 1344 libainstall: all python-config
1314 @for i in $(LIBDIR) $(LIBPL) $(LIBPC); \ 1345 @for i in $(LIBDIR) $(LIBPL) $(LIBPC); \
1315 do \ 1346 do \
1316 if test ! -d $(DESTDIR)$$i; then \ 1347 if test ! -d $(DESTDIR)$$i; then \
1317 echo "Creating directory $$i"; \ 1348 echo "Creating directory $$i"; \
1318 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1349 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1319 else true; \ 1350 else true; \
1320 fi; \ 1351 fi; \
1321 done 1352 done
1322 @if test -d $(LIBRARY); then :; else \ 1353 @if test -d $(LIBRARY); then :; else \
1323 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \ 1354 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
1324 if test "$(SHLIB_SUFFIX)" = .dll; then \ 1355 if test "$(SHLIB_SUFFIX)" = .dll; then \
1325 $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \ 1356 $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
1326 else \ 1357 else \
1327 $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$( LIBRARY) ; \ 1358 $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$( LIBRARY) ; \
1328 $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \ 1359 $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
1329 fi; \ 1360 fi; \
1330 else \ 1361 else \
1331 echo Skip install of $(LIBRARY) - use make frameworkinst all; \ 1362 echo Skip install of $(LIBRARY) - use make frameworkinst all; \
1332 fi; \ 1363 fi; \
1333 fi 1364 fi
1334 $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c 1365 $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
1335 » $(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o 1366 » $(INSTALL_DATA) Programs/python.o $(DESTDIR)$(LIBPL)/python.o
1336 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config. c.in 1367 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config. c.in
1337 $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile 1368 $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
1338 $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup 1369 $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
1339 $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local 1370 $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
1340 $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config 1371 $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
1341 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc 1372 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
1342 $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makeset up 1373 $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makeset up
1343 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh 1374 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
1344 $(INSTALL_SCRIPT) python-config.py $(DESTDIR)$(LIBPL)/python-config.py 1375 $(INSTALL_SCRIPT) python-config.py $(DESTDIR)$(LIBPL)/python-config.py
1345 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-c onfig 1376 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-c onfig
1346 » @if [ -s Modules/python.exp -a \ 1377 » @if [ -s Programs/python.exp -a \
1347 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \ 1378 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
1348 echo; echo "Installing support files for building shared extensi on modules on AIX:"; \ 1379 echo; echo "Installing support files for building shared extensi on modules on AIX:"; \
1349 » » $(INSTALL_DATA) Modules/python.exp» » \ 1380 » » $(INSTALL_DATA) Programs/python.exp» » \
1350 $(DESTDIR)$(LIBPL)/python.exp; \ 1381 $(DESTDIR)$(LIBPL)/python.exp; \
1351 echo; echo "$(LIBPL)/python.exp"; \ 1382 echo; echo "$(LIBPL)/python.exp"; \
1352 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \ 1383 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \
1353 $(DESTDIR)$(LIBPL)/makexp_aix; \ 1384 $(DESTDIR)$(LIBPL)/makexp_aix; \
1354 echo "$(LIBPL)/makexp_aix"; \ 1385 echo "$(LIBPL)/makexp_aix"; \
1355 $(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix \ 1386 $(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix \
1356 $(DESTDIR)$(LIBPL)/ld_so_aix; \ 1387 $(DESTDIR)$(LIBPL)/ld_so_aix; \
1357 echo "$(LIBPL)/ld_so_aix"; \ 1388 echo "$(LIBPL)/ld_so_aix"; \
1358 echo; echo "See Misc/AIX-NOTES for details."; \ 1389 echo; echo "See Misc/AIX-NOTES for details."; \
1359 else true; \ 1390 else true; \
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \ 1519 for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
1489 done; \ 1520 done; \
1490 sort -o tags tags 1521 sort -o tags tags
1491 1522
1492 # Create a tags file for GNU Emacs 1523 # Create a tags file for GNU Emacs
1493 TAGS:: 1524 TAGS::
1494 cd $(srcdir); \ 1525 cd $(srcdir); \
1495 etags Include/*.h; \ 1526 etags Include/*.h; \
1496 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done 1527 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
1497 1528
1498 # Touch generated files 1529 # This fixes up the mtimes of checked-in generated files, assuming that they
1530 # only *appear* to be outdated because of checkout order.
1531 # This is run while preparing a source release tarball, and can be run manually
1532 # to avoid bootstrap issues.
1499 touch: 1533 touch:
1500 cd $(srcdir); \ 1534 cd $(srcdir); \
1501 hg --config extensions.touch=Tools/hg/hgtouch.py touch -v 1535 hg --config extensions.touch=Tools/hg/hgtouch.py touch -v
1502 1536
1503 # Sanitation targets -- clean leaves libraries, executables and tags 1537 # Sanitation targets -- clean leaves libraries, executables and tags
1504 # files, which clobber removes as well 1538 # files, which clobber removes as well
1505 pycremoval: 1539 pycremoval:
1506 -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';' 1540 -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';'
1507 -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' 1541 -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
1508 1542
(...skipping 10 matching lines...) Expand all
1519 1553
1520 clean: pycremoval 1554 clean: pycremoval
1521 find . -name '*.[oa]' -exec rm -f {} ';' 1555 find . -name '*.[oa]' -exec rm -f {} ';'
1522 find . -name '*.s[ol]' -exec rm -f {} ';' 1556 find . -name '*.s[ol]' -exec rm -f {} ';'
1523 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' 1557 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
1524 find build -name 'fficonfig.h' -exec rm -f {} ';' || true 1558 find build -name 'fficonfig.h' -exec rm -f {} ';' || true
1525 find build -name '*.py' -exec rm -f {} ';' || true 1559 find build -name '*.py' -exec rm -f {} ';' || true
1526 find build -name '*.py[co]' -exec rm -f {} ';' || true 1560 find build -name '*.py[co]' -exec rm -f {} ';' || true
1527 -rm -f pybuilddir.txt 1561 -rm -f pybuilddir.txt
1528 -rm -f Lib/lib2to3/*Grammar*.pickle 1562 -rm -f Lib/lib2to3/*Grammar*.pickle
1529 » -rm -f Modules/_testembed Modules/_freeze_importlib 1563 » -rm -f Programs/_testembed Programs/_freeze_importlib
1530 1564
1531 profile-removal: 1565 profile-removal:
1532 find . -name '*.gc??' -exec rm -f {} ';' 1566 find . -name '*.gc??' -exec rm -f {} ';'
1533 rm -f $(COVERAGE_INFO) 1567 rm -f $(COVERAGE_INFO)
1534 rm -rf $(COVERAGE_REPORT) 1568 rm -rf $(COVERAGE_REPORT)
1535 1569
1536 clobber: clean profile-removal 1570 clobber: clean profile-removal
1537 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ 1571 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
1538 tags TAGS \ 1572 tags TAGS \
1539 config.cache config.log pyconfig.h Modules/config.c 1573 config.cache config.log pyconfig.h Modules/config.c
1540 -rm -rf build platform 1574 -rm -rf build platform
1541 -rm -rf $(PYTHONFRAMEWORKDIR) 1575 -rm -rf $(PYTHONFRAMEWORKDIR)
1542 -rm -f python-config.py python-config 1576 -rm -f python-config.py python-config
1543 1577
1544 # Make things extra clean, before making a distribution: 1578 # Make things extra clean, before making a distribution:
1545 # remove all generated files, even Makefile[.pre] 1579 # remove all generated files, even Makefile[.pre]
1546 # Keep configure and Python-ast.[ch], it's possible they can't be generated 1580 # Keep configure and Python-ast.[ch], it's possible they can't be generated
1547 distclean: clobber 1581 distclean: clobber
1548 for file in $(srcdir)/Lib/test/data/* ; do \ 1582 for file in $(srcdir)/Lib/test/data/* ; do \
1549 if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$fil e"; fi; \ 1583 if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$fil e"; fi; \
1550 done 1584 done
1551 -rm -f core Makefile Makefile.pre config.status \ 1585 -rm -f core Makefile Makefile.pre config.status \
1552 Modules/Setup Modules/Setup.local Modules/Setup.config \ 1586 Modules/Setup Modules/Setup.local Modules/Setup.config \
1553 » » Modules/ld_so_aix Modules/python.exp Misc/python.pc 1587 » » Modules/ld_so_aix Programs/python.exp Misc/python.pc
1554 -rm -f python*-gdb.py 1588 -rm -f python*-gdb.py
1555 find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \ 1589 find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
1556 -o -name '[@,#]*' -o -name '*.old' \ 1590 -o -name '[@,#]*' -o -name '*.old' \
1557 -o -name '*.orig' -o -name '*.rej' \ 1591 -o -name '*.orig' -o -name '*.rej' \
1558 -o -name '*.bak' ')' \ 1592 -o -name '*.bak' ')' \
1559 -exec rm -f {} ';' 1593 -exec rm -f {} ';'
1560 1594
1561 # Check for smelly exported symbols (not starting with Py/_Py) 1595 # Check for smelly exported symbols (not starting with Py/_Py)
1562 smelly: all 1596 smelly: all
1563 nm -p $(LIBRARY) | \ 1597 nm -p $(LIBRARY) | \
(...skipping 26 matching lines...) Expand all
1590 -o -name NEWS \ 1624 -o -name NEWS \
1591 -o -name HISTORY \ 1625 -o -name HISTORY \
1592 -o -name Makefile \ 1626 -o -name Makefile \
1593 -o -name ChangeLog \ 1627 -o -name ChangeLog \
1594 -o -name .hgignore \ 1628 -o -name .hgignore \
1595 -o -name .bzrignore \ 1629 -o -name .bzrignore \
1596 -o -name MANIFEST \ 1630 -o -name MANIFEST \
1597 -o -print 1631 -o -print
1598 1632
1599 # Perform some verification checks on any modified files. 1633 # Perform some verification checks on any modified files.
1600 patchcheck: 1634 patchcheck: all
1601 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py 1635 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py
1602 1636
1603 # Dependencies 1637 # Dependencies
1604 1638
1605 Python/thread.o: @THREADHEADERS@ 1639 Python/thread.o: @THREADHEADERS@
1606 1640
1607 # Declare targets that aren't real files 1641 # Declare targets that aren't real files
1608 .PHONY: all build_all sharedmods oldsharedmods test quicktest 1642 .PHONY: all build_all sharedmods oldsharedmods test quicktest
1609 .PHONY: install altinstall oldsharedinstall bininstall altbininstall 1643 .PHONY: install altinstall oldsharedinstall bininstall altbininstall
1610 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall 1644 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall
1611 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1645 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1612 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1646 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1613 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1647 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1614 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall 1648 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall
1615 .PHONY: gdbhooks 1649 .PHONY: gdbhooks
1616 1650
1617 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1651 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
1618 # Local Variables: 1652 # Local Variables:
1619 # mode: makefile 1653 # mode: makefile
1620 # End: 1654 # End:
LEFTRIGHT

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