• Home
  • Raw
  • Download

Lines Matching +full:gcov +full:- +full:exec

1 # Top-level Makefile for Python
73 INSTALL_SHARED= ${INSTALL} -m 755
90 # once Python is installed (bpo-35257)
95 # command line to append to these values without stomping the pre-set
98 PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST) -I$(srcdir)/Include/internal
102 PY_CPPFLAGS= $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
108 # the python executable -- this is only needed for a few systems
115 PY_BUILTIN_MODULE_CFLAGS= $(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE_BUILTIN
116 PY_CORE_CFLAGS= $(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE
119 # Strict or non-strict aliasing flags used to compile dtoa.c, see above
123 # Machine-dependent subdirectories
130 # Install prefix for architecture-independent files
133 # Install prefix for architecture-dependent files
163 DESTSHARED= $(BINLIBDEST)/lib-dynload
186 STRIPFLAG=-s
188 # Flags to lipo to produce a 32-bit-only universal executable
191 # Flags to lipo to produce an intel-64-only universal executable
213 # install process. Default to user-only-writable for all file types.
231 DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
269 # Tcl and Tk config info from --with-tcltk-includes and -libs options
273 # The task to run while instrumented when building the profile-opt target.
275 # by default. The default is "-m test --pgo". To run more tests, use
276 # PROFILE_TASK="-m test --pgo-extended"
279 # report files for gcov / lcov coverage report
281 COVERAGE_REPORT=$(abs_builddir)/lcov-report
282 COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report"
340 Python/Python-ast.o \
465 # in-place by dtrace(1).
474 build_all: check-clean-src $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks \
475 Programs/_testembed python-config
478 check-clean-src:
479 @if test -n "$(VPATH)" -a -f "$(srcdir)/Programs/python.o"; then \
482 echo "Try to run: make -C \"$(srcdir)\" clean" ; \
487 profile-clean-stamp:
492 profile-gen-stamp: profile-clean-stamp
494 echo "Error: Cannot perform PGO build because llvm-profdata was not found in PATH" ;\
503 profile-run-stamp:
507 $(MAKE) profile-gen-stamp
512 $(MAKE) clean-retain-profile
515 # to record its completion and avoid re-running it.
529 # To force re-running of the profile task, remove the profile-run-stamp file.
530 profile-opt: profile-run-stamp
532 -rm -f profile-clean-stamp
535 # Compile and run with gcov
536 .PHONY=coverage coverage-lcov coverage-report
540 $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg --coverage" LIBS="$(LIBS) --coverage"
542 coverage-lcov:
544 @rm -f $(COVERAGE_INFO)
545 @rm -rf $(COVERAGE_REPORT)
546 @lcov --capture --directory $(abs_builddir) \
547 --base-directory $(realpath $(abs_builddir)) \
548 --path $(realpath $(abs_srcdir)) \
549 --output-file $(COVERAGE_INFO)
552 @lcov --remove $(COVERAGE_INFO) \
566 --output-file $(COVERAGE_INFO)
567 @genhtml $(COVERAGE_INFO) --output-directory $(COVERAGE_REPORT) \
574 coverage-report: regen-token regen-importlib
580 $(MAKE) coverage-lcov
584 clinic: check-clean-src $(srcdir)/Modules/_blake2/blake2s_impl.c
585 $(PYTHON_FOR_REGEN) $(srcdir)/Tools/clinic/clinic.py --make --srcdir $(srcdir)
589 …$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODL…
592 …$(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%…
594 # Create build directory and generate the sysconfig build-time data there.
596 # sys.path fixup -- see Modules/getpath.c.
599 # initialization to succeed. It will be overwritten by generate-posix-vars
603 $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ;\
604 if test $$? -ne 0 ; then \
605 echo "generate-posix-vars failed" ; \
606 rm -f ./pybuilddir.txt ; \
612 $(CC) -c $(CCSHARED) $(PY_CORE_CFLAGS) -o $@ $<
614 # blake2s is auto-generated from blake2b
617 $(PYTHON_FOR_REGEN) $(srcdir)/Tools/clinic/clinic.py -f $@
621 # -s, --silent or --quiet is always the first char.
622 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
623 # Ignore macros passed by GNU make, passed after --
625 @case "`echo X $$MAKEFLAGS | sed 's/^X //;s/ -- .*//'`" in \
626 *\ -s*|s*) quiet="-q";; \
639 -rm -f $@
644 …$(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(L…
645 $(LN) -f $(INSTSONAME) $@; \
647 $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM); \
651 $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
654-dynamiclib -Wl,-single_module $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(pr…
658 $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM)
669 gdbhooks: $(BUILDPYTHON)-gdb.py
672 $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS)
673 $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py
682 $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
683 $(CC) -o $(LDLIBRARY) $(PY_CORE_LDFLAGS) -dynamiclib \
684 -all_load $(LIBRARY) -Wl,-single_module \
685 -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
686 -compatibility_version $(VERSION) \
687 -current_version $(VERSION) \
688 -framework CoreFoundation $(LIBS);
689 $(INSTALL) -d -m $(DIRMODE) \
693 $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
694 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
695 $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
700 if test -n "$(DLLLIBRARY)"; then \
701 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
715 $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
716 -s Modules \
720 @echo "The Makefile was updated, you may need to re-run make."
724 …$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(BLDLIBRARY) $(LIBS) $(…
732 …$(LINKCC) $(PY_CORE_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS…
734 .PHONY: regen-importlib
735 regen-importlib: Programs/_freeze_importlib
755 regen-abidump: all
757 …abidw "libpython$(LDVERSION).so" --no-architecture --out-file $(srcdir)/Doc/data/python$(LDVERSION…
760 check-abidump: all
761 …/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-add…
763 regen-limited-abi: all
764 …$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py --generate-all $(srcdir)/Misc/…
770 regen-all: regen-opcode regen-opcode-targets regen-typeslots \
771 regen-token regen-ast regen-keyword regen-importlib clinic \
772 regen-pegen-metaparser regen-pegen regen-frozen
774 @echo "Note: make regen-stdlib-module-names and autoconf should be run manually"
786 $(CC) -c $(PY_CORE_CFLAGS) \
787 -DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
788 -DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
789 -DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
790 -o $@ $(srcdir)/Modules/getbuildinfo.c
793 $(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
794 -DPREFIX='"$(prefix)"' \
795 -DEXEC_PREFIX='"$(exec_prefix)"' \
796 -DVERSION='"$(VERSION)"' \
797 -DVPATH='"$(VPATH)"' \
798 -o $@ $(srcdir)/Modules/getpath.c
801 $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/python.c
804 $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/_testembed.c
817 $(CC) -c $(PY_CORE_CFLAGS) \
818 -DSOABI='"$(SOABI)"' \
819 -o $@ $(srcdir)/Python/dynload_shlib.c
822 $(CC) -c $(PY_CORE_CFLAGS) \
823 -DSHLIB_EXT='"$(EXT_SUFFIX)"' \
824 -o $@ $(srcdir)/Python/dynload_hpux.c
827 $(CC) -c $(PY_CORE_CFLAGS) \
828 -DABIFLAGS='"$(ABIFLAGS)"' \
830 -o $@ $(srcdir)/Python/sysmodule.c
833 $(CC) -c $(PY_CORE_CFLAGS) \
834 -DPLATLIBDIR='"$(PLATLIBDIR)"' \
835 -o $@ $(srcdir)/Python/initconfig.c
839 .PHONY: regen-pegen-metaparser
840 regen-pegen-metaparser:
842 PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -q python \
844 -o $(srcdir)/Tools/peg_generator/pegen/grammar_parser.py.new
848 .PHONY: regen-pegen
849 regen-pegen:
851 PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -q c \
854 -o $(srcdir)/Parser/parser.new.c
857 .PHONY=regen-ast
858 regen-ast:
860 # - Include/internal/pycore_ast.h
861 # - Include/internal/pycore_ast_state.h
862 # - Python/Python-ast.c
867 -H $(srcdir)/Include/internal/pycore_ast.h.new \
868 -I $(srcdir)/Include/internal/pycore_ast_state.h.new \
869 -C $(srcdir)/Python/Python-ast.c.new
873 $(UPDATE_FILE) $(srcdir)/Python/Python-ast.c $(srcdir)/Python/Python-ast.c.new
875 .PHONY: regen-opcode
876 regen-opcode:
884 .PHONY: regen-frozen
885 regen-frozen: Programs/_freeze_importlib
893 .PHONY: regen-token
894 regen-token:
895 # Regenerate Doc/library/token-list.inc from Grammar/Tokens
899 $(srcdir)/Doc/library/token-list.inc
916 .PHONY: regen-keyword
917 regen-keyword:
920 PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen.keywordgen \
926 .PHONY: regen-stdlib-module-names
927 regen-stdlib-module-names: build_all Programs/_testembed
938 $(CC) -c $(PY_CORE_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
941 $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
981 Objects/odictobject.o: $(srcdir)/Objects/dict-common.h
982 Objects/dictobject.o: $(srcdir)/Objects/stringlib/eq.h $(srcdir)/Objects/dict-common.h
985 .PHONY: regen-opcode-targets
986 regen-opcode-targets:
999 # Generate DTrace probe macros, then rename them (PYTHON_ -> PyDTrace_) to
1004 $(DTRACE) $(DFLAGS) -o $@ -h -s $<
1005 : sed in-place edit with POSIX-only tools
1014 $(DTRACE) $(DFLAGS) -o $@ -G -s $< $(DTRACE_DEPS)
1018 .PHONY: regen-typeslots
1019 regen-typeslots:
1205 # Pass TESTOPTS options because it can contain --tempdir option.
1207 $(TESTRUNNER) $(TESTOPTS) --cleanup
1210 # This excludes some tests that are particularly resource-intensive.
1214 # Run the full test suite twice - once without .pyc files, and once with.
1222 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
1223 $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py
1224 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
1225 -$(TESTRUNNER) -u all $(TESTOPTS)
1226 $(TESTRUNNER) -u all $(TESTOPTS)
1235 $(TESTRUNNER) -u all $(TESTOPTS)
1237 ./$(BUILDPYTHON) -E -m test -j 0 -u all $(TESTOPTS)
1242 -@if which pybuildbot.identify >/dev/null 2>&1; then \
1245 $(TESTRUNNER) -j 1 -u all -W --slowest --fail-env-changed --timeout=$(TESTTIMEOUT) $(TESTOPTS)
1248 $(RUNSHARED) ./$(BUILDPYTHON) -m test.pythoninfo
1250 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
1262 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/ssl/multissltests.py --steps=modules
1270 upgrade) ensurepip="--upgrade" ;; \
1273 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
1274 $$ensurepip --root=$(DESTDIR)/ ; \
1280 upgrade) ensurepip="--altinstall --upgrade" ;; \
1281 install|*) ensurepip="--altinstall" ;; \
1283 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
1284 $$ensurepip --root=$(DESTDIR)/ ; \
1287 commoninstall: check-clean-src @FRAMEWORKALTINSTALLFIRST@ \
1306 if test ! -d $(DESTDIR)$$i; then \
1308 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1318 if test ! -d $(DESTDIR)$$i; then \
1320 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1324 if test "$(PYTHONFRAMEWORKDIR)" = "no-framework" ; then \
1329 -if test "$(VERSION)" != "$(LDVERSION)"; then \
1330 …if test -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/python$(VERSION)$(…
1331 then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
1335 @if test "$(PY_ENABLE_SHARED)" = 1 -o "$(STATIC_LIBPYTHON)" = 1; then \
1336 if test -f $(LDLIBRARY) && test "$(PYTHONFRAMEWORKDIR)" = "no-framework" ; then \
1337 if test -n "$(DLLLIBRARY)" ; then \
1342 (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \
1345 if test -n "$(PY3LIBRARY)"; then \
1352 rm -f $(DESTDIR)$(BINDIR)python$(VERSION)-32$(EXE); \
1354 -output $(DESTDIR)$(BINDIR)/python$(VERSION)-32$(EXE) \
1358 rm -f $(DESTDIR)$(BINDIR)python$(VERSION)-intel64$(EXE); \
1360 -output $(DESTDIR)$(BINDIR)/python$(VERSION)-intel64$(EXE) \
1365 if test ! -d $(DESTDIR)$(LIBPC); then \
1367 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
1369 -if test -f $(DESTDIR)$(BINDIR)/python3$(EXE) -o -h $(DESTDIR)$(BINDIR)/python3$(EXE); \
1370 then rm -f $(DESTDIR)$(BINDIR)/python3$(EXE); \
1373 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python3$(EXE))
1374 -if test "$(VERSION)" != "$(LDVERSION)"; then \
1375 rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config; \
1376 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)-config python$(VERSION)-config); \
1377 rm -f $(DESTDIR)$(LIBPC)/python-$(LDVERSION).pc; \
1378 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python-$(LDVERSION).pc); \
1379 rm -f $(DESTDIR)$(LIBPC)/python-$(LDVERSION)-embed.pc; \
1380 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION)-embed.pc python-$(LDVERSION)-embed.pc); \
1382 -rm -f $(DESTDIR)$(BINDIR)/python3-config
1383 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-config)
1384 -rm -f $(DESTDIR)$(LIBPC)/python3.pc
1385 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc)
1386 -rm -f $(DESTDIR)$(LIBPC)/python3-embed.pc
1387 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION)-embed.pc python3-embed.pc)
1388 -rm -f $(DESTDIR)$(BINDIR)/idle3
1389 (cd $(DESTDIR)$(BINDIR); $(LN) -s idle$(VERSION) idle3)
1390 -rm -f $(DESTDIR)$(BINDIR)/pydoc3
1391 (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
1392 -rm -f $(DESTDIR)$(BINDIR)/2to3
1393 (cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3)
1395 rm -f $(DESTDIR)$(BINDIR)/python3-32$(EXE); \
1396 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-32$(EXE) python3-32$(EXE)) \
1399 rm -f $(DESTDIR)$(BINDIR)/python3-intel64$(EXE); \
1400 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-intel64$(EXE) python3-intel64$(EXE)) \
1407 if test ! -d $(DESTDIR)$$i; then \
1409 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1418 -rm -f $(DESTDIR)$(MANDIR)/man1/python3.1
1419 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1)
1443 site-packages \
1524 test/xmltestdata test/xmltestdata/c14n-20 \
1534 if test ! -d $(DESTDIR)$$i; then \
1536 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1548 if test ! -d $$a; then continue; else true; fi; \
1550 if test ! -d $(DESTDIR)$$b; then \
1552 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \
1558 if test -x $$i; then \
1574 if test ! -d $$a; then continue; else true; fi; \
1575 if test `ls $$a | wc -l` -lt 1; then continue; fi; \
1585 if test -d $$i; then continue; fi; \
1586 if test -x $$i; then \
1599 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
1603 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1604 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
1605 -j0 -d $(LIBDEST) -f \
1606 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1608 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1609 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
1610 -j0 -d $(LIBDEST) -f \
1611 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1613 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1614 $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
1615 -j0 -d $(LIBDEST) -f \
1616 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1618 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1619 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
1620 -j0 -d $(LIBDEST)/site-packages -f \
1621 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1622 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1623 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
1624 -j0 -d $(LIBDEST)/site-packages -f \
1625 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1626 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1627 $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
1628 -j0 -d $(LIBDEST)/site-packages -f \
1629 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1630 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1631 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
1632 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1633 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
1635 # bpo-21536: Misc/python-config.sh is generated in the build directory
1636 # from $(srcdir)Misc/python-config.sh.in.
1637 python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
1638 @ # Substitution happens here, as the completely-expanded BINDIR
1640 …sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python
1641 @ # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
1642 LC_ALL=C sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
1646 @if test `uname -s` = Darwin; then \
1647 cp python-config.py python-config; \
1656 if test ! -d $(DESTDIR)$$i; then \
1658 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1662 @if test ! -d $(DESTDIR)$(INCLUDEPY)/cpython; then \
1664 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/cpython; \
1667 @if test ! -d $(DESTDIR)$(INCLUDEPY)/internal; then \
1669 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
1696 libainstall: @DEF_MAKE_RULE@ python-config
1699 if test ! -d $(DESTDIR)$$i; then \
1701 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1706 if test -d $(LIBRARY); then :; else \
1707 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
1714 echo Skip install of $(LIBRARY) - use make frameworkinstall; \
1724 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
1725 $(INSTALL_DATA) Misc/python-embed.pc $(DESTDIR)$(LIBPC)/python-$(VERSION)-embed.pc
1727 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
1728 $(INSTALL_SCRIPT) python-config.py $(DESTDIR)$(LIBPL)/python-config.py
1729 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-config
1730 @if [ -s Modules/python.exp -a \
1750 --prefix=$(prefix) \
1751 --install-scripts=$(BINDIR) \
1752 --install-platlib=$(DESTSHARED) \
1753 --root=$(DESTDIR)/
1754 -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
1755 -rm -r $(DESTDIR)$(DESTSHARED)/__pycache__
1758 # framework-based Python. frameworkinstall installs everything, the
1767 # On install, we re-make the framework
1769 # --enable-framework. If --enable-framework has been specified then we have
1776 @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
1777 echo Not configured with --enable-framework; \
1782 if test ! -d $(DESTDIR)$$i; then \
1784 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1788 $(LN) -fsn include/python$(LDVERSION) $(DESTDIR)$(prefix)/Headers
1789 …sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print(platform.python_versi…
1790 $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
1791 …$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAM…
1792 $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
1793 $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
1798 # install (which includes python-config) happy.
1800 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(LDVERSION).a"
1801 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(LDVERSION).dylib"
1802 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(VERSION).a"
1803 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(VERSION).dylib"
1804 $(LN) -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(LDVERSION).dylib"
1805 $(LN) -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib"
1833 $(MAKE) -f Makefile.pre Makefile
1843 $(CC) -c $(PY_CORE_CFLAGS) -o $@ $<
1845 # bpo-30104: dtoa.c uses union to cast double to unsigned long[2]. clang 4.0
1846 # with -O2 or higher and strict aliasing miscompiles the ratio() function
1847 # causing rounding issues. Compile dtoa.c using -fno-strict-aliasing on clang.
1850 $(CC) -c $(PY_CORE_CFLAGS) $(CFLAGS_ALIASING) -o $@ $<
1854 ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib
1859 $(SHELL) config.status --recheck
1866 (cd $(srcdir); autoconf -Wall)
1868 (cd $(srcdir); autoheader -Wall)
1872 ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
1873 for i in $(SRCDIRS); do ctags -f tags -w -a $(srcdir)/$$i/*.[ch]; done
1874 ctags -f tags -w -a $(srcdir)/Modules/_ctypes/*.[ch]
1875 …r)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/tests/*" -n…
1876 LC_ALL=C sort -o tags tags
1882 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
1883 etags -a $(srcdir)/Modules/_ctypes/*.[ch]
1884 …$(srcdir)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/test…
1886 # Sanitation targets -- clean leaves libraries, executables and tags
1889 -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';'
1890 -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
1893 -rm -f *BAD *GOOD *SKIPPED
1894 -rm -rf OUT
1895 -rm -f *.TXT
1896 -rm -f *.txt
1897 -rm -f gb-18030-2000.xml
1900 -rm -rf Doc/build
1901 -rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils
1905 clean-retain-profile: pycremoval
1906 find . -name '*.[oa]' -exec rm -f {} ';'
1907 find . -name '*.s[ol]' -exec rm -f {} ';'
1908 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
1909 find . -name '*.lst' -exec rm -f {} ';'
1910 find build -name 'fficonfig.h' -exec rm -f {} ';' || true
1911 find build -name '*.py' -exec rm -f {} ';' || true
1912 find build -name '*.py[co]' -exec rm -f {} ';' || true
1913 -rm -f pybuilddir.txt
1914 -rm -f Lib/lib2to3/*Grammar*.pickle
1915 -rm -f Programs/_testembed Programs/_freeze_importlib
1916 -find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
1917 -rm -f Include/pydtrace_probes.h
1918 -rm -f profile-gen-stamp
1920 profile-removal:
1921 find . -name '*.gc??' -exec rm -f {} ';'
1922 find . -name '*.profclang?' -exec rm -f {} ';'
1923 find . -name '*.dyn' -exec rm -f {} ';'
1924 rm -f $(COVERAGE_INFO)
1925 rm -rf $(COVERAGE_REPORT)
1926 rm -f profile-run-stamp
1928 clean: clean-retain-profile
1929 @if test @DEF_MAKE_ALL_RULE@ = profile-opt; then \
1930 rm -f profile-gen-stamp profile-clean-stamp; \
1931 $(MAKE) profile-removal; \
1935 -rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
1938 -rm -rf build platform
1939 -rm -rf $(PYTHONFRAMEWORKDIR)
1940 -rm -f python-config.py python-config
1944 # Keep configure and Python-ast.[ch], it's possible they can't be generated
1949 -rm -f core Makefile Makefile.pre config.status Modules/Setup.local \
1951 Misc/python-embed.pc Misc/python-config.sh
1952 -rm -f python*-gdb.py
1957 LC_ALL=C; find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
1958 -o -name '[@,#]*' -o -name '*.old' \
1959 -o -name '*.orig' -o -name '*.rej' \
1960 -o -name '*.bak' ')' \
1961 -exec rm -f {} ';'
1970 -type d \
1971 -o -name '*.[chs]' \
1972 -o -name '*.py' \
1973 -o -name '*.pyw' \
1974 -o -name '*.dat' \
1975 -o -name '*.el' \
1976 -o -name '*.fd' \
1977 -o -name '*.in' \
1978 -o -name '*.gif' \
1979 -o -name '*.txt' \
1980 -o -name '*.xml' \
1981 -o -name '*.xbm' \
1982 -o -name '*.xpm' \
1983 -o -name '*.uue' \
1984 -o -name '*.decTest' \
1985 -o -name '*.tmCommand' \
1986 -o -name '*.tmSnippet' \
1987 -o -name 'Setup' \
1988 -o -name 'Setup.*' \
1989 -o -name README \
1990 -o -name NEWS \
1991 -o -name HISTORY \
1992 -o -name Makefile \
1993 -o -name ChangeLog \
1994 -o -name .hgignore \
1995 -o -name MANIFEST \
1996 -o -print
2002 check-limited-abi: all
2003 …$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py --all $(srcdir)/Misc/stable_ab…
2005 .PHONY: update-config
2006 update-config:
2007 …curl -sL -o config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.…
2008 …curl -sL -o config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.su…
2016 .PHONY: all build_all sharedmods check-clean-src oldsharedmods test quicktest
2023 .PHONY: clean-retain-profile profile-removal run_profile_task