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

Side by Side Diff: Makefile.pre.in

Issue 26798: add BLAKE2 to hashlib
Patch Set: Created 3 years, 2 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:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_hashlib.py ('k') | Modules/_blake2/blake2b2s.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 : # build with coverage info 534 : # build with coverage info
535 $(MAKE) coverage 535 $(MAKE) coverage
536 : # run tests, ignore failures 536 : # run tests, ignore failures
537 $(TESTRUNNER) $(TESTOPTS) || true 537 $(TESTRUNNER) $(TESTOPTS) || true
538 : # build lcov report 538 : # build lcov report
539 $(MAKE) coverage-lcov 539 $(MAKE) coverage-lcov
540 540
541 # Run "Argument Clinic" over all source files 541 # Run "Argument Clinic" over all source files
542 # (depends on python having already been built) 542 # (depends on python having already been built)
543 .PHONY=clinic 543 .PHONY=clinic
544 clinic: $(BUILDPYTHON) 544 clinic: $(BUILDPYTHON) Modules/_blake2/blake2s_impl.c
545 $(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make 545 $(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make
546 546
547 # Build the interpreter 547 # Build the interpreter
548 $(BUILDPYTHON): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) 548 $(BUILDPYTHON): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
549 $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLI BRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 549 $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLI BRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
550 550
551 platform: $(BUILDPYTHON) pybuilddir.txt 551 platform: $(BUILDPYTHON) pybuilddir.txt
552 $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >pla tform 552 $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >pla tform
553 553
554 # Create build directory and generate the sysconfig build-time data there. 554 # Create build directory and generate the sysconfig build-time data there.
555 # pybuilddir.txt contains the name of the build dir and is used for 555 # pybuilddir.txt contains the name of the build dir and is used for
556 # sys.path fixup -- see Modules/getpath.c. 556 # sys.path fixup -- see Modules/getpath.c.
557 # Since this step runs before shared modules are built, try to avoid bootstrap 557 # Since this step runs before shared modules are built, try to avoid bootstrap
558 # problems by creating a dummy pybuilddir.txt just to allow interpreter 558 # problems by creating a dummy pybuilddir.txt just to allow interpreter
559 # initialization to succeed. It will be overwritten by generate-posix-vars 559 # initialization to succeed. It will be overwritten by generate-posix-vars
560 # or removed in case of failure. 560 # or removed in case of failure.
561 pybuilddir.txt: $(BUILDPYTHON) 561 pybuilddir.txt: $(BUILDPYTHON)
562 @echo "none" > ./pybuilddir.txt 562 @echo "none" > ./pybuilddir.txt
563 $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ; \ 563 $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ; \
564 if test $$? -ne 0 ; then \ 564 if test $$? -ne 0 ; then \
565 echo "generate-posix-vars failed" ; \ 565 echo "generate-posix-vars failed" ; \
566 rm -f ./pybuilddir.txt ; \ 566 rm -f ./pybuilddir.txt ; \
567 exit 1 ; \ 567 exit 1 ; \
568 fi 568 fi
569 569
570 # This is shared by the math and cmath modules 570 # This is shared by the math and cmath modules
571 Modules/_math.o: Modules/_math.c Modules/_math.h 571 Modules/_math.o: Modules/_math.c Modules/_math.h
572 $(CC) -c $(CCSHARED) $(PY_CORE_CFLAGS) -o $@ $< 572 $(CC) -c $(CCSHARED) $(PY_CORE_CFLAGS) -o $@ $<
573
574 # blake2s is auto-generated from blake2b
575 Modules/_blake2/blake2s_impl.c: $(BUILDPYTHON) Modules/_blake2/blake2b_impl.c Mo dules/_blake2/blake2b2s.py
576 $(RUNSHARED) $(PYTHON_FOR_BUILD) Modules/_blake2/blake2b2s.py
577 $(RUNSHARED) $(PYTHON_FOR_BUILD) Tools/clinic/clinic.py -f $@
573 578
574 # Build the shared modules 579 # Build the shared modules
575 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for 580 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
576 # -s, --silent or --quiet is always the first char. 581 # -s, --silent or --quiet is always the first char.
577 # Under BSD make, MAKEFLAGS might be " -s -v x=y". 582 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
578 sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o 583 sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
579 @case "$$MAKEFLAGS" in \ 584 @case "$$MAKEFLAGS" in \
580 *\ -s*|s*) quiet="-q";; \ 585 *\ -s*|s*) quiet="-q";; \
581 *) quiet="";; \ 586 *) quiet="";; \
582 esac; \ 587 esac; \
583 $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ 588 $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
584 _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \ 589 _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
585 $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build 590 $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
591
586 592
587 # Build static library 593 # Build static library
588 # avoid long command lines, same as LIBRARY_OBJS 594 # avoid long command lines, same as LIBRARY_OBJS
589 $(LIBRARY): $(LIBRARY_OBJS) 595 $(LIBRARY): $(LIBRARY_OBJS)
590 -rm -f $@ 596 -rm -f $@
591 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o 597 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o
592 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS) 598 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS)
593 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS) 599 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS)
594 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS) Python/frozen.o 600 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS) Python/frozen.o
595 $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS) 601 $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS)
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1683 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1678 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1684 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1679 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1685 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1680 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall 1686 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall
1681 .PHONY: gdbhooks 1687 .PHONY: gdbhooks
1682 1688
1683 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1689 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
1684 # Local Variables: 1690 # Local Variables:
1685 # mode: makefile 1691 # mode: makefile
1686 # End: 1692 # End:
OLDNEW
« no previous file with comments | « Lib/test/test_hashlib.py ('k') | Modules/_blake2/blake2b2s.py » ('j') | no next file with comments »

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