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

Side by Side Diff: Makefile.pre.in

Issue 23404: Python 3.5 does not build with Python 2.6.
Patch Set: Created 2 years, 8 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 # The task to run while instrument when building the profile-opt target 211 # The task to run while instrument when building the profile-opt target
212 # We exclude unittests with -x that take a rediculious amount of time to 212 # We exclude unittests with -x that take a rediculious amount of time to
213 # run in the instrumented training build or do not provide much value. 213 # run in the instrumented training build or do not provide much value.
214 PROFILE_TASK=-m test.regrtest --pgo -x test_asyncore test_gdb test_multiprocessi ng test_subprocess 214 PROFILE_TASK=-m test.regrtest --pgo -x test_asyncore test_gdb test_multiprocessi ng test_subprocess
215 215
216 # report files for gcov / lcov coverage report 216 # report files for gcov / lcov coverage report
217 COVERAGE_INFO= $(abs_builddir)/coverage.info 217 COVERAGE_INFO= $(abs_builddir)/coverage.info
218 COVERAGE_REPORT=$(abs_builddir)/lcov-report 218 COVERAGE_REPORT=$(abs_builddir)/lcov-report
219 COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report" 219 COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report"
220
221 # Run <make BOOT="#"> to avoid regenerating existing files, as an
222 # alternative to the "make touch" rule.
223 BOOT=
220 224
221 # === Definitions added by makesetup === 225 # === Definitions added by makesetup ===
222 226
223 227
224 ########################################################################## 228 ##########################################################################
225 # Modules 229 # Modules
226 MODULE_OBJS= \ 230 MODULE_OBJS= \
227 Modules/config.o \ 231 Modules/config.o \
228 Modules/getpath.o \ 232 Modules/getpath.o \
229 Modules/main.o \ 233 Modules/main.o \
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 Modules/python.o: $(srcdir)/Modules/python.c 677 Modules/python.o: $(srcdir)/Modules/python.c
674 $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c 678 $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c
675 679
676 Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmo dule.h 680 Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmo dule.h
677 681
678 Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule .h 682 Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule .h
679 683
680 Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule .h 684 Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule .h
681 685
682 $(GRAMMAR_H): @GENERATED_COMMENT@ $(GRAMMAR_INPUT) $(PGEN) 686 $(GRAMMAR_H): @GENERATED_COMMENT@ $(GRAMMAR_INPUT) $(PGEN)
683 » @$(MKDIR_P) Include 687 » @$(BOOT)$(MKDIR_P) Include
684 » $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) 688 » $(BOOT)$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
685 $(GRAMMAR_C): @GENERATED_COMMENT@ $(GRAMMAR_H) 689 $(GRAMMAR_C): @GENERATED_COMMENT@ $(GRAMMAR_H)
686 » touch $(GRAMMAR_C) 690 » $(BOOT)touch $(GRAMMAR_C)
687 691
688 $(PGEN): $(PGENOBJS) 692 $(PGEN): $(PGENOBJS)
689 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) 693 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
690 694
691 Parser/grammar.o: $(srcdir)/Parser/grammar.c \ 695 Parser/grammar.o: $(srcdir)/Parser/grammar.c \
692 $(srcdir)/Include/token.h \ 696 $(srcdir)/Include/token.h \
693 $(srcdir)/Include/grammar.h 697 $(srcdir)/Include/grammar.h
694 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c 698 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
695 699
696 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c 700 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
697 701
698 Parser/pgenmain.o: $(srcdir)/Include/parsetok.h 702 Parser/pgenmain.o: $(srcdir)/Include/parsetok.h
699 703
700 $(AST_H): $(AST_ASDL) $(ASDLGEN_FILES) 704 $(AST_H): $(AST_ASDL) $(ASDLGEN_FILES)
701 » $(MKDIR_P) $(AST_H_DIR) 705 » $(BOOT)$(MKDIR_P) $(AST_H_DIR)
702 » $(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL) 706 » $(BOOT)$(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL)
703 707
704 $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES) 708 $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
705 » $(MKDIR_P) $(AST_C_DIR) 709 » $(BOOT)$(MKDIR_P) $(AST_C_DIR)
706 » $(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL) 710 » $(BOOT)$(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL)
707 711
708 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) 712 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H)
709 713
710 Python/getplatform.o: $(srcdir)/Python/getplatform.c 714 Python/getplatform.o: $(srcdir)/Python/getplatform.c
711 $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/ Python/getplatform.c 715 $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/ Python/getplatform.c
712 716
713 Python/importdl.o: $(srcdir)/Python/importdl.c 717 Python/importdl.o: $(srcdir)/Python/importdl.c
714 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/impo rtdl.c 718 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/impo rtdl.c
715 719
716 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \ 720 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \
(...skipping 17 matching lines...) Expand all
734 Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \ 738 Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \
735 $(STRINGLIB_HEADERS) 739 $(STRINGLIB_HEADERS)
736 740
737 Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c \ 741 Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c \
738 $(STRINGLIB_HEADERS) 742 $(STRINGLIB_HEADERS)
739 743
740 Objects/stringobject.o: $(srcdir)/Objects/stringobject.c \ 744 Objects/stringobject.o: $(srcdir)/Objects/stringobject.c \
741 $(STRINGLIB_HEADERS) 745 $(STRINGLIB_HEADERS)
742 746
743 $(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES) 747 $(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES)
744 » $(OPCODETARGETGEN) $(OPCODETARGETS_H) 748 » $(BOOT)$(OPCODETARGETGEN) $(OPCODETARGETS_H)
745 749
746 Python/ceval.o: $(OPCODETARGETS_H) 750 Python/ceval.o: $(OPCODETARGETS_H)
747 751
748 Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \ 752 Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \
749 $(STRINGLIB_HEADERS) 753 $(STRINGLIB_HEADERS)
750 754
751 Python/formatter_string.o: $(srcdir)/Python/formatter_string.c \ 755 Python/formatter_string.o: $(srcdir)/Python/formatter_string.c \
752 $(STRINGLIB_HEADERS) 756 $(STRINGLIB_HEADERS)
753 757
754 ############################################################################ 758 ############################################################################
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \ 1373 for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
1370 done; \ 1374 done; \
1371 sort -o tags tags 1375 sort -o tags tags
1372 1376
1373 # Create a tags file for GNU Emacs 1377 # Create a tags file for GNU Emacs
1374 TAGS:: 1378 TAGS::
1375 cd $(srcdir); \ 1379 cd $(srcdir); \
1376 etags Include/*.h; \ 1380 etags Include/*.h; \
1377 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done 1381 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
1378 1382
1379 # Touch generated files 1383 # Touch generated files. Alternative to setting BOOT="#".
1380 touch: 1384 touch:
1381 cd $(srcdir); \ 1385 cd $(srcdir); \
1382 touch Include/Python-ast.h Python/Python-ast.c 1386 touch Include/Python-ast.h Python/Python-ast.c
1383 1387
1384 # Sanitation targets -- clean leaves libraries, executables and tags 1388 # Sanitation targets -- clean leaves libraries, executables and tags
1385 # files, which clobber removes as well 1389 # files, which clobber removes as well
1386 pycremoval: 1390 pycremoval:
1387 find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' 1391 find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
1388 1392
1389 clean: pycremoval 1393 clean: pycremoval
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 .PHONY: all build_all sharedmods oldsharedmods test quicktest memtest 1475 .PHONY: all build_all sharedmods oldsharedmods test quicktest memtest
1472 .PHONY: install altinstall oldsharedinstall bininstall altbininstall 1476 .PHONY: install altinstall oldsharedinstall bininstall altbininstall
1473 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall 1477 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall
1474 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1478 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1475 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1479 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1476 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1480 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1477 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall 1481 .PHONY: smelly funny patchcheck touch altmaninstall commoninstall
1478 .PHONY: gdbhooks 1482 .PHONY: gdbhooks
1479 1483
1480 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1484 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
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+