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

Side by Side Diff: Makefile.pre.in

Issue 23404: Python 3.5 does not build with Python 2.6.
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 | « no previous file | no next file » | 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 # The task to run while instrumented when building the profile-opt target. 239 # The task to run while instrumented when building the profile-opt target.
240 # We exclude unittests with -x that take a rediculious amount of time to 240 # We exclude unittests with -x that take a rediculious amount of time to
241 # run in the instrumented training build or do not provide much value. 241 # run in the instrumented training build or do not provide much value.
242 PROFILE_TASK=-m test.regrtest --pgo 242 PROFILE_TASK=-m test.regrtest --pgo
243 243
244 # report files for gcov / lcov coverage report 244 # report files for gcov / lcov coverage report
245 COVERAGE_INFO= $(abs_builddir)/coverage.info 245 COVERAGE_INFO= $(abs_builddir)/coverage.info
246 COVERAGE_REPORT=$(abs_builddir)/lcov-report 246 COVERAGE_REPORT=$(abs_builddir)/lcov-report
247 COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report" 247 COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report"
248
249 # Run <make BOOT="#"> to avoid regenerating existing files, as an
250 # alternative to the "make touch" rule.
251 BOOT=
248 252
249 253
250 # === Definitions added by makesetup === 254 # === Definitions added by makesetup ===
251 255
252 256
253 ########################################################################## 257 ##########################################################################
254 # Modules 258 # Modules
255 MODULE_OBJS= \ 259 MODULE_OBJS= \
256 Modules/config.o \ 260 Modules/config.o \
257 Modules/getpath.o \ 261 Modules/getpath.o \
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 Programs/_freeze_importlib.o: Programs/_freeze_importlib.c Makefile 715 Programs/_freeze_importlib.o: Programs/_freeze_importlib.c Makefile
712 716
713 Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FRO ZEN) 717 Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FRO ZEN)
714 $(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJ S_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 718 $(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJ S_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
715 719
716 Python/importlib_external.h: @GENERATED_COMMENT@ $(srcdir)/Lib/importlib/_bootst rap_external.py Programs/_freeze_importlib Python/marshal.c 720 Python/importlib_external.h: @GENERATED_COMMENT@ $(srcdir)/Lib/importlib/_bootst rap_external.py Programs/_freeze_importlib Python/marshal.c
717 ./Programs/_freeze_importlib \ 721 ./Programs/_freeze_importlib \
718 $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_exte rnal.h 722 $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_exte rnal.h
719 723
720 Python/importlib.h: @GENERATED_COMMENT@ $(srcdir)/Lib/importlib/_bootstrap.py Pr ograms/_freeze_importlib Python/marshal.c 724 Python/importlib.h: @GENERATED_COMMENT@ $(srcdir)/Lib/importlib/_bootstrap.py Pr ograms/_freeze_importlib Python/marshal.c
721 » ./Programs/_freeze_importlib \ 725 » $(BOOT)./Programs/_freeze_importlib \
722 $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h 726 $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
723 727
724 728
725 ############################################################################ 729 ############################################################################
726 # Special rules for object files 730 # Special rules for object files
727 731
728 Modules/getbuildinfo.o: $(PARSER_OBJS) \ 732 Modules/getbuildinfo.o: $(PARSER_OBJS) \
729 $(OBJECT_OBJS) \ 733 $(OBJECT_OBJS) \
730 $(PYTHON_OBJS) \ 734 $(PYTHON_OBJS) \
731 $(MODULE_OBJS) \ 735 $(MODULE_OBJS) \
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 777
774 Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile 778 Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile
775 $(CC) -c $(PY_CORE_CFLAGS) \ 779 $(CC) -c $(PY_CORE_CFLAGS) \
776 -DABIFLAGS='"$(ABIFLAGS)"' \ 780 -DABIFLAGS='"$(ABIFLAGS)"' \
777 $(MULTIARCH_CPPFLAGS) \ 781 $(MULTIARCH_CPPFLAGS) \
778 -o $@ $(srcdir)/Python/sysmodule.c 782 -o $@ $(srcdir)/Python/sysmodule.c
779 783
780 $(IO_OBJS): $(IO_H) 784 $(IO_OBJS): $(IO_H)
781 785
782 $(GRAMMAR_H): @GENERATED_COMMENT@ $(GRAMMAR_INPUT) $(PGEN) 786 $(GRAMMAR_H): @GENERATED_COMMENT@ $(GRAMMAR_INPUT) $(PGEN)
783 » @$(MKDIR_P) Include 787 » @$(BOOT)$(MKDIR_P) Include
784 » $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) 788 » $(BOOT)$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
785 $(GRAMMAR_C): @GENERATED_COMMENT@ $(GRAMMAR_H) 789 $(GRAMMAR_C): @GENERATED_COMMENT@ $(GRAMMAR_H)
786 » touch $(GRAMMAR_C) 790 » $(BOOT)touch $(GRAMMAR_C)
787 791
788 $(PGEN): $(PGENOBJS) 792 $(PGEN): $(PGENOBJS)
789 $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) 793 $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
790 794
791 Parser/grammar.o: $(srcdir)/Parser/grammar.c \ 795 Parser/grammar.o: $(srcdir)/Parser/grammar.c \
792 $(srcdir)/Include/token.h \ 796 $(srcdir)/Include/token.h \
793 $(srcdir)/Include/grammar.h 797 $(srcdir)/Include/grammar.h
794 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c 798 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
795 799
796 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c 800 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
797 Parser/parsetok_pgen.o: $(srcdir)/Parser/parsetok.c 801 Parser/parsetok_pgen.o: $(srcdir)/Parser/parsetok.c
798 Parser/printgrammar.o: $(srcdir)/Parser/printgrammar.c 802 Parser/printgrammar.o: $(srcdir)/Parser/printgrammar.c
799 803
800 Parser/pgenmain.o: $(srcdir)/Include/parsetok.h 804 Parser/pgenmain.o: $(srcdir)/Include/parsetok.h
801 805
802 $(AST_H): $(AST_ASDL) $(ASDLGEN_FILES) 806 $(AST_H): $(AST_ASDL) $(ASDLGEN_FILES)
803 » $(MKDIR_P) $(AST_H_DIR) 807 » $(BOOT)$(MKDIR_P) $(AST_H_DIR)
804 » $(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL) 808 » $(BOOT)$(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL)
805 809
806 $(AST_C): $(AST_H) $(AST_ASDL) $(ASDLGEN_FILES) 810 $(AST_C): $(AST_H) $(AST_ASDL) $(ASDLGEN_FILES)
807 » $(MKDIR_P) $(AST_C_DIR) 811 » $(BOOT)$(MKDIR_P) $(AST_C_DIR)
808 » $(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL) 812 » $(BOOT)$(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL)
809 813
810 $(OPCODE_H): $(srcdir)/Lib/opcode.py $(OPCODE_H_SCRIPT) 814 $(OPCODE_H): $(srcdir)/Lib/opcode.py $(OPCODE_H_SCRIPT)
811 » $(OPCODE_H_GEN) 815 » $(BOOT)$(OPCODE_H_GEN)
812 816
813 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) 817 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H)
814 818
815 Python/getplatform.o: $(srcdir)/Python/getplatform.c 819 Python/getplatform.o: $(srcdir)/Python/getplatform.c
816 $(CC) -c $(PY_CORE_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(src dir)/Python/getplatform.c 820 $(CC) -c $(PY_CORE_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(src dir)/Python/getplatform.c
817 821
818 Python/importdl.o: $(srcdir)/Python/importdl.c 822 Python/importdl.o: $(srcdir)/Python/importdl.c
819 $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python /importdl.c 823 $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python /importdl.c
820 824
821 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \ 825 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 858
855 Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c $(BYTESTR_DEPS) 859 Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c $(BYTESTR_DEPS)
856 860
857 Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c $(UNICODE_DEPS) 861 Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c $(UNICODE_DEPS)
858 862
859 Objects/odictobject.o: $(srcdir)/Objects/dict-common.h 863 Objects/odictobject.o: $(srcdir)/Objects/dict-common.h
860 Objects/dictobject.o: $(srcdir)/Objects/stringlib/eq.h $(srcdir)/Objects/dict-co mmon.h 864 Objects/dictobject.o: $(srcdir)/Objects/stringlib/eq.h $(srcdir)/Objects/dict-co mmon.h
861 Objects/setobject.o: $(srcdir)/Objects/stringlib/eq.h 865 Objects/setobject.o: $(srcdir)/Objects/stringlib/eq.h
862 866
863 $(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES) 867 $(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES)
864 » $(PYTHON_FOR_GEN) $(OPCODETARGETGEN) $(OPCODETARGETS_H) 868 » $(BOOT)$(PYTHON_FOR_GEN) $(OPCODETARGETGEN) $(OPCODETARGETS_H)
865 869
866 Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h 870 Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h
867 871
868 Python/frozen.o: Python/importlib.h Python/importlib_external.h 872 Python/frozen.o: Python/importlib.h Python/importlib_external.h
869 873
870 # Generate DTrace probe macros, then rename them (PYTHON_ -> PyDTrace_) to 874 # Generate DTrace probe macros, then rename them (PYTHON_ -> PyDTrace_) to
871 # follow our naming conventions. dtrace(1) uses the output filename to generate 875 # follow our naming conventions. dtrace(1) uses the output filename to generate
872 # an include guard, so we can't use a pipeline to transform its output. 876 # an include guard, so we can't use a pipeline to transform its output.
873 Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d 877 Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d
874 $(DTRACE) $(DFLAGS) -o $@ -h -s $< 878 $(DTRACE) $(DFLAGS) -o $@ -h -s $<
875 : sed in-place edit with POSIX-only tools 879 : sed in-place edit with POSIX-only tools
876 sed 's/PYTHON_/PyDTrace_/' $@ > $@.tmp 880 sed 's/PYTHON_/PyDTrace_/' $@ > $@.tmp
877 mv $@.tmp $@ 881 mv $@.tmp $@
878 882
879 Python/pydtrace.o: $(srcdir)/Include/pydtrace.d $(DTRACE_DEPS) 883 Python/pydtrace.o: $(srcdir)/Include/pydtrace.d $(DTRACE_DEPS)
880 $(DTRACE) $(DFLAGS) -o $@ -G -s $< $(DTRACE_DEPS) 884 $(DTRACE) $(DFLAGS) -o $@ -G -s $< $(DTRACE_DEPS)
881 885
882 Objects/typeobject.o: Objects/typeslots.inc 886 Objects/typeobject.o: Objects/typeslots.inc
883 Objects/typeslots.inc: $(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots .py 887 Objects/typeslots.inc: $(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots .py
884 » $(PYTHON_FOR_GEN) $(srcdir)/Objects/typeslots.py < $(srcdir)/Include/typ eslots.h Objects/typeslots.inc 888 » $(BOOT)$(PYTHON_FOR_GEN) $(srcdir)/Objects/typeslots.py < $(srcdir)/Incl ude/typeslots.h Objects/typeslots.inc
885 889
886 ############################################################################ 890 ############################################################################
887 # Header files 891 # Header files
888 892
889 PYTHON_HEADERS= \ 893 PYTHON_HEADERS= \
890 $(srcdir)/Include/Python.h \ 894 $(srcdir)/Include/Python.h \
891 $(srcdir)/Include/abstract.h \ 895 $(srcdir)/Include/abstract.h \
892 $(srcdir)/Include/accu.h \ 896 $(srcdir)/Include/accu.h \
893 $(srcdir)/Include/asdl.h \ 897 $(srcdir)/Include/asdl.h \
894 $(srcdir)/Include/ast.h \ 898 $(srcdir)/Include/ast.h \
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 LC_ALL=C sort -o tags tags 1557 LC_ALL=C sort -o tags tags
1554 1558
1555 # Create a tags file for GNU Emacs 1559 # Create a tags file for GNU Emacs
1556 TAGS:: 1560 TAGS::
1557 cd $(srcdir); \ 1561 cd $(srcdir); \
1558 etags Include/*.h; \ 1562 etags Include/*.h; \
1559 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done 1563 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
1560 1564
1561 # This fixes up the mtimes of checked-in generated files, assuming that they 1565 # This fixes up the mtimes of checked-in generated files, assuming that they
1562 # only *appear* to be outdated because of checkout order. 1566 # only *appear* to be outdated because of checkout order.
1563 # This is run while preparing a source release tarball, and can be run manually 1567 # This is run while preparing a source release tarball. It can also be run
1564 # to avoid bootstrap issues. 1568 # manually to avoid bootstrap issues, as an alternative to setting BOOT="#".
1565 touch: 1569 touch:
1566 cd $(srcdir); \ 1570 cd $(srcdir); \
1567 hg --config extensions.touch=Tools/hg/hgtouch.py touch -v 1571 hg --config extensions.touch=Tools/hg/hgtouch.py touch -v
1568 1572
1569 # Sanitation targets -- clean leaves libraries, executables and tags 1573 # Sanitation targets -- clean leaves libraries, executables and tags
1570 # files, which clobber removes as well 1574 # files, which clobber removes as well
1571 pycremoval: 1575 pycremoval:
1572 -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';' 1576 -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';'
1573 -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' 1577 -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
1574 1578
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1684 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1681 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1685 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1682 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1686 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1683 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall 1687 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall
1684 .PHONY: gdbhooks 1688 .PHONY: gdbhooks
1685 1689
1686 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1690 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
1687 # Local Variables: 1691 # Local Variables:
1688 # mode: makefile 1692 # mode: makefile
1689 # End: 1693 # End:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

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