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

Side by Side Diff: Makefile.pre.in

Issue 17086: backport cross-build patches to the 2.7 branch
Patch Set: Created 6 years, 4 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/sysconfig.py ('k') | pyconfig.h.in » ('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 11 matching lines...) Expand all
22 22
23 MODOBJS= _MODOBJS_ 23 MODOBJS= _MODOBJS_
24 MODLIBS= _MODLIBS_ 24 MODLIBS= _MODLIBS_
25 25
26 # === Variables set by configure 26 # === Variables set by configure
27 VERSION= @VERSION@ 27 VERSION= @VERSION@
28 srcdir= @srcdir@ 28 srcdir= @srcdir@
29 VPATH= @srcdir@ 29 VPATH= @srcdir@
30 abs_srcdir= @abs_srcdir@ 30 abs_srcdir= @abs_srcdir@
31 abs_builddir= @abs_builddir@ 31 abs_builddir= @abs_builddir@
32 build= @build@
33 host= @host@
32 34
33 CC= @CC@ 35 CC= @CC@
34 CXX= @CXX@ 36 CXX= @CXX@
35 MAINCC= @MAINCC@ 37 MAINCC= @MAINCC@
36 LINKCC= @LINKCC@ 38 LINKCC= @LINKCC@
37 AR= @AR@ 39 AR= @AR@
38 RANLIB= @RANLIB@ 40 RANLIB= @RANLIB@
39 SVNVERSION= @SVNVERSION@ 41 SVNVERSION= @SVNVERSION@
40 HGVERSION= @HGVERSION@ 42 HGVERSION= @HGVERSION@
41 HGTAG= @HGTAG@ 43 HGTAG= @HGTAG@
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 THREADOBJ= @THREADOBJ@ 184 THREADOBJ= @THREADOBJ@
183 DLINCLDIR= @DLINCLDIR@ 185 DLINCLDIR= @DLINCLDIR@
184 DYNLOADFILE= @DYNLOADFILE@ 186 DYNLOADFILE= @DYNLOADFILE@
185 MACHDEP_OBJS= @MACHDEP_OBJS@ 187 MACHDEP_OBJS= @MACHDEP_OBJS@
186 LIBOBJDIR= Python/ 188 LIBOBJDIR= Python/
187 LIBOBJS= @LIBOBJS@ 189 LIBOBJS= @LIBOBJS@
188 UNICODE_OBJS= @UNICODE_OBJS@ 190 UNICODE_OBJS= @UNICODE_OBJS@
189 191
190 PYTHON= python$(EXE) 192 PYTHON= python$(EXE)
191 BUILDPYTHON= python$(BUILDEXE) 193 BUILDPYTHON= python$(BUILDEXE)
194
195 PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
196 _PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
197 HOST_GNU_TYPE= @host@
192 198
193 # The task to run while instrument when building the profile-opt target 199 # The task to run while instrument when building the profile-opt target
194 PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syschec k 200 PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syschec k
195 #PROFILE_TASK= $(srcdir)/Lib/test/regrtest.py 201 #PROFILE_TASK= $(srcdir)/Lib/test/regrtest.py
196 202
197 # === Definitions added by makesetup === 203 # === Definitions added by makesetup ===
198 204
199 205
200 ########################################################################## 206 ##########################################################################
201 # Modules 207 # Modules
(...skipping 12 matching lines...) Expand all
214 GRAMMAR_H= Include/graminit.h 220 GRAMMAR_H= Include/graminit.h
215 GRAMMAR_C= Python/graminit.c 221 GRAMMAR_C= Python/graminit.c
216 GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar 222 GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
217 223
218 224
219 LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@ 225 LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
220 226
221 ########################################################################## 227 ##########################################################################
222 # Parser 228 # Parser
223 PGEN= Parser/pgen$(EXE) 229 PGEN= Parser/pgen$(EXE)
230
231 PSRCS= \
232 Parser/acceler.c \
233 Parser/grammar1.c \
234 Parser/listnode.c \
235 Parser/node.c \
236 Parser/parser.c \
237 Parser/parsetok.c \
238 Parser/bitset.c \
239 Parser/metagrammar.c \
240 Parser/firstsets.c \
241 Parser/grammar.c \
242 Parser/pgen.c
224 243
225 POBJS= \ 244 POBJS= \
226 Parser/acceler.o \ 245 Parser/acceler.o \
227 Parser/grammar1.o \ 246 Parser/grammar1.o \
228 Parser/listnode.o \ 247 Parser/listnode.o \
229 Parser/node.o \ 248 Parser/node.o \
230 Parser/parser.o \ 249 Parser/parser.o \
231 Parser/parsetok.o \ 250 Parser/parsetok.o \
232 Parser/bitset.o \ 251 Parser/bitset.o \
233 Parser/metagrammar.o \ 252 Parser/metagrammar.o \
234 Parser/firstsets.o \ 253 Parser/firstsets.o \
235 Parser/grammar.o \ 254 Parser/grammar.o \
236 Parser/pgen.o 255 Parser/pgen.o
237 256
238 PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/tokenizer.o 257 PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/tokenizer.o
258
259 PGSRCS= \
260 Objects/obmalloc.c \
261 Python/mysnprintf.c \
262 Python/pyctype.c \
263 Parser/tokenizer_pgen.c \
264 Parser/printgrammar.c \
265 Parser/pgenmain.c
239 266
240 PGOBJS= \ 267 PGOBJS= \
241 Objects/obmalloc.o \ 268 Objects/obmalloc.o \
242 Python/mysnprintf.o \ 269 Python/mysnprintf.o \
243 Python/pyctype.o \ 270 Python/pyctype.o \
244 Parser/tokenizer_pgen.o \ 271 Parser/tokenizer_pgen.o \
245 Parser/printgrammar.o \ 272 Parser/printgrammar.o \
246 Parser/pgenmain.o 273 Parser/pgenmain.o
247 274
248 PARSER_HEADERS= \ 275 PARSER_HEADERS= \
249 Parser/parser.h \ 276 Parser/parser.h \
250 Parser/tokenizer.h 277 Parser/tokenizer.h
251 278
252 PGENOBJS=» $(PGENMAIN) $(POBJS) $(PGOBJS) 279 PGENSRCS=» $(PSRCS) $(PGSRCS)
280 PGENOBJS=» $(POBJS) $(PGOBJS)
253 281
254 ########################################################################## 282 ##########################################################################
255 # AST 283 # AST
256 AST_H_DIR= Include 284 AST_H_DIR= Include
257 AST_H= $(AST_H_DIR)/Python-ast.h 285 AST_H= $(AST_H_DIR)/Python-ast.h
258 AST_C_DIR= Python 286 AST_C_DIR= Python
259 AST_C= $(AST_C_DIR)/Python-ast.c 287 AST_C= $(AST_C_DIR)/Python-ast.c
260 AST_ASDL= $(srcdir)/Parser/Python.asdl 288 AST_ASDL= $(srcdir)/Parser/Python.asdl
261 289
262 ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py 290 ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 $(MAKE) profile-removal 412 $(MAKE) profile-removal
385 $(MAKE) run_profile_task 413 $(MAKE) run_profile_task
386 @echo "Rebuilding with profile guided optimizations:" 414 @echo "Rebuilding with profile guided optimizations:"
387 $(MAKE) clean 415 $(MAKE) clean
388 $(MAKE) build_all_use_profile 416 $(MAKE) build_all_use_profile
389 417
390 build_all_generate_profile: 418 build_all_generate_profile:
391 $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov" 419 $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov"
392 420
393 run_profile_task: 421 run_profile_task:
422 : # FIXME: can't run for a cross build
394 ./$(BUILDPYTHON) $(PROFILE_TASK) 423 ./$(BUILDPYTHON) $(PROFILE_TASK)
395 424
396 build_all_use_profile: 425 build_all_use_profile:
397 $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use" 426 $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use"
398 427
399 coverage: 428 coverage:
400 @echo "Building with support for coverage checking:" 429 @echo "Building with support for coverage checking:"
401 $(MAKE) clean 430 $(MAKE) clean
402 $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LI BS="$(LIBS) -lgcov" 431 $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LI BS="$(LIBS) -lgcov"
403 432
404 433
405 # Build the interpreter 434 # Build the interpreter
406 $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) 435 $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY)
407 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ 436 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
408 Modules/python.o \ 437 Modules/python.o \
409 $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 438 $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
410 439
411 platform: $(BUILDPYTHON) 440 platform: $(BUILDPYTHON)
412 » $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform 441 » $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
413 442
414 443
415 # Build the shared modules 444 # Build the shared modules
416 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for 445 # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
417 # -s, --silent or --quiet is always the first char. 446 # -s, --silent or --quiet is always the first char.
418 # Under BSD make, MAKEFLAGS might be " -s -v x=y". 447 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
419 sharedmods: $(BUILDPYTHON) 448 sharedmods: $(BUILDPYTHON)
420 @case "$$MAKEFLAGS" in \ 449 @case "$$MAKEFLAGS" in \
421 *\ -s*|s*) quiet="-q";; \ 450 *\ -s*|s*) quiet="-q";; \
422 *) quiet="";; \ 451 *) quiet="";; \
423 esac; \ 452 esac; \
424 $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ 453 $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
425 » » ./$(BUILDPYTHON) -E $(srcdir)/setup.py $$quiet build 454 » » $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
426 455
427 # Build static library 456 # Build static library
428 # avoid long command lines, same as LIBRARY_OBJS 457 # avoid long command lines, same as LIBRARY_OBJS
429 $(LIBRARY): $(LIBRARY_OBJS) 458 $(LIBRARY): $(LIBRARY_OBJS)
430 -rm -f $@ 459 -rm -f $@
431 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o 460 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o
432 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS) 461 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS)
433 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS) 462 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS)
434 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS) 463 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS)
435 $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS) 464 $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 -DPREFIX='"$(prefix)"' \ 573 -DPREFIX='"$(prefix)"' \
545 -DEXEC_PREFIX='"$(exec_prefix)"' \ 574 -DEXEC_PREFIX='"$(exec_prefix)"' \
546 -DVERSION='"$(VERSION)"' \ 575 -DVERSION='"$(VERSION)"' \
547 -DVPATH='"$(VPATH)"' \ 576 -DVPATH='"$(VPATH)"' \
548 -o $@ $(srcdir)/Modules/getpath.c 577 -o $@ $(srcdir)/Modules/getpath.c
549 578
550 Modules/python.o: $(srcdir)/Modules/python.c 579 Modules/python.o: $(srcdir)/Modules/python.c
551 $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c 580 $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c
552 581
553 582
554 # Use a stamp file to prevent make -j invoking pgen twice 583 $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS)
555 $(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp 584 » » @$(MKDIR_P) Include
556 Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT) 585 » » $(MAKE) $(PGEN)
557 » » -@$(INSTALL) -d Include
558 $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) 586 $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
559 » » -touch Parser/pgen.stamp 587 $(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS)
588 » » $(MAKE) $(GRAMMAR_H)
589 » » touch $(GRAMMAR_C)
560 590
561 $(PGEN): $(PGENOBJS) 591 $(PGEN): $(PGENOBJS)
562 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) 592 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
563 593
564 Parser/grammar.o: $(srcdir)/Parser/grammar.c \ 594 Parser/grammar.o: $(srcdir)/Parser/grammar.c \
565 $(srcdir)/Include/token.h \ 595 $(srcdir)/Include/token.h \
566 $(srcdir)/Include/grammar.h 596 $(srcdir)/Include/grammar.h
567 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c 597 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
568 598
569 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c 599 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 fi;; \ 976 fi;; \
947 esac; \ 977 esac; \
948 done; \ 978 done; \
949 done 979 done
950 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt 980 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
951 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \ 981 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
952 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ 982 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
953 $(DESTDIR)$(LIBDEST)/distutils/tests ; \ 983 $(DESTDIR)$(LIBDEST)/distutils/tests ; \
954 fi 984 fi
955 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 985 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
956 » » ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ 986 » » $(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
957 -d $(LIBDEST) -f \ 987 -d $(LIBDEST) -f \
958 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 988 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
959 $(DESTDIR)$(LIBDEST) 989 $(DESTDIR)$(LIBDEST)
960 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 990 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
961 » » ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ 991 » » $(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.p y \
962 -d $(LIBDEST) -f \ 992 -d $(LIBDEST) -f \
963 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 993 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
964 $(DESTDIR)$(LIBDEST) 994 $(DESTDIR)$(LIBDEST)
965 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 995 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
966 » » ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \ 996 » » $(PYTHON_FOR_BUILD) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
967 -d $(LIBDEST)/site-packages -f \ 997 -d $(LIBDEST)/site-packages -f \
968 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 998 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
969 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 999 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
970 » » ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ 1000 » » $(PYTHON_FOR_BUILD) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
971 -d $(LIBDEST)/site-packages -f \ 1001 -d $(LIBDEST)/site-packages -f \
972 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 1002 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
973 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1003 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
974 » » ./$(BUILDPYTHON) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/li b2to3/Grammar.txt 1004 » » $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/Grammar.txt
975 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1005 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
976 » » ./$(BUILDPYTHON) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/li b2to3/PatternGrammar.txt 1006 » » $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST) /lib2to3/PatternGrammar.txt
977 1007
978 # Create the PLATDIR source directory, if one wasn't distributed.. 1008 # Create the PLATDIR source directory, if one wasn't distributed..
979 $(srcdir)/Lib/$(PLATDIR): 1009 $(srcdir)/Lib/$(PLATDIR):
980 mkdir $(srcdir)/Lib/$(PLATDIR) 1010 mkdir $(srcdir)/Lib/$(PLATDIR)
981 cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen 1011 cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
982 export PATH; PATH="`pwd`:$$PATH"; \ 1012 export PATH; PATH="`pwd`:$$PATH"; \
983 » export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \ 1013 » export PYTHONPATH; PYTHONPATH="$(srcdir)/Lib:$(abs_builddir)/`cat pybuil ddir.txt`"; \
984 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \ 1014 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
985 export EXE; EXE="$(BUILDEXE)"; \ 1015 export EXE; EXE="$(BUILDEXE)"; \
986 if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \ 1016 if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
1017 export PYTHON_FOR_BUILD; \
1018 if [ "$(build)" = "$(host)" ]; then \
1019 PYTHON_FOR_BUILD="$(BUILDPYTHON)"; \
1020 else \
1021 PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \
1022 fi; \
987 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen 1023 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
988 1024
989 python-config: $(srcdir)/Misc/python-config.in 1025 python-config: $(srcdir)/Misc/python-config.in
990 # Substitution happens here, as the completely-expanded BINDIR 1026 # Substitution happens here, as the completely-expanded BINDIR
991 # is not available in configure 1027 # is not available in configure
992 sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/ python-config.in >python-config 1028 sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/ python-config.in >python-config
993 1029
994 # Install the include files 1030 # Install the include files
995 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY) 1031 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
996 inclinstall: 1032 inclinstall:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 echo "$(LIBPL)/ar_beos"; \ 1108 echo "$(LIBPL)/ar_beos"; \
1073 $(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_be os; \ 1109 $(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_be os; \
1074 echo "$(LIBPL)/ld_so_beos"; \ 1110 echo "$(LIBPL)/ld_so_beos"; \
1075 echo; echo "See Misc/BeOS-NOTES for details."; \ 1111 echo; echo "See Misc/BeOS-NOTES for details."; \
1076 ;; \ 1112 ;; \
1077 esac 1113 esac
1078 1114
1079 # Install the dynamically loadable modules 1115 # Install the dynamically loadable modules
1080 # This goes into $(exec_prefix) 1116 # This goes into $(exec_prefix)
1081 sharedinstall: sharedmods 1117 sharedinstall: sharedmods
1082 » $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \ 1118 » $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
1083 --prefix=$(prefix) \ 1119 --prefix=$(prefix) \
1084 --install-scripts=$(BINDIR) \ 1120 --install-scripts=$(BINDIR) \
1085 --install-platlib=$(DESTSHARED) \ 1121 --install-platlib=$(DESTSHARED) \
1086 --root=$(DESTDIR)/ 1122 --root=$(DESTDIR)/
1087 1123
1088 # Here are a couple of targets for MacOSX again, to install a full 1124 # Here are a couple of targets for MacOSX again, to install a full
1089 # framework-based Python. frameworkinstall installs everything, the 1125 # framework-based Python. frameworkinstall installs everything, the
1090 # subtargets install specific parts. Much of the actual work is offloaded to 1126 # subtargets install specific parts. Much of the actual work is offloaded to
1091 # the Makefile in Mac 1127 # the Makefile in Mac
1092 # 1128 #
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)" 1181 cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)"
1146 1182
1147 # This installs the Demos and Tools into the applications directory. 1183 # This installs the Demos and Tools into the applications directory.
1148 # It is not part of a normal frameworkinstall 1184 # It is not part of a normal frameworkinstall
1149 frameworkinstallextras: 1185 frameworkinstallextras:
1150 cd Mac && $(MAKE) installextras DESTDIR="$(DESTDIR)" 1186 cd Mac && $(MAKE) installextras DESTDIR="$(DESTDIR)"
1151 1187
1152 # This installs a few of the useful scripts in Tools/scripts 1188 # This installs a few of the useful scripts in Tools/scripts
1153 scriptsinstall: 1189 scriptsinstall:
1154 SRCDIR=$(srcdir) $(RUNSHARED) \ 1190 SRCDIR=$(srcdir) $(RUNSHARED) \
1155 » ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \ 1191 » $(PYTHON_FOR_BUILD) $(srcdir)/Tools/scripts/setup.py install \
1156 --prefix=$(prefix) \ 1192 --prefix=$(prefix) \
1157 --install-scripts=$(BINDIR) \ 1193 --install-scripts=$(BINDIR) \
1158 --root=$(DESTDIR)/ 1194 --root=$(DESTDIR)/
1159 1195
1160 # Build the toplevel Makefile 1196 # Build the toplevel Makefile
1161 Makefile.pre: Makefile.pre.in config.status 1197 Makefile.pre: Makefile.pre.in config.status
1162 CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status 1198 CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status
1163 $(MAKE) -f Makefile.pre Makefile 1199 $(MAKE) -f Makefile.pre Makefile
1164 1200
1165 # Run the configure script. 1201 # Run the configure script.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' 1248 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
1213 find build -name 'fficonfig.h' -exec rm -f {} ';' || true 1249 find build -name 'fficonfig.h' -exec rm -f {} ';' || true
1214 find build -name 'fficonfig.py' -exec rm -f {} ';' || true 1250 find build -name 'fficonfig.py' -exec rm -f {} ';' || true
1215 -rm -f Lib/lib2to3/*Grammar*.pickle 1251 -rm -f Lib/lib2to3/*Grammar*.pickle
1216 1252
1217 profile-removal: 1253 profile-removal:
1218 find . -name '*.gc??' -exec rm -f {} ';' 1254 find . -name '*.gc??' -exec rm -f {} ';'
1219 1255
1220 clobber: clean profile-removal 1256 clobber: clean profile-removal
1221 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ 1257 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
1222 » » tags TAGS Parser/pgen.stamp \ 1258 » » tags TAGS \
1223 config.cache config.log pyconfig.h Modules/config.c 1259 config.cache config.log pyconfig.h Modules/config.c
1224 -rm -rf build platform 1260 -rm -rf build platform
1225 -rm -rf $(PYTHONFRAMEWORKDIR) 1261 -rm -rf $(PYTHONFRAMEWORKDIR)
1226 1262
1227 # Make things extra clean, before making a distribution: 1263 # Make things extra clean, before making a distribution:
1228 # remove all generated files, even Makefile[.pre] 1264 # remove all generated files, even Makefile[.pre]
1229 # Keep configure and Python-ast.[ch], it's possible they can't be generated 1265 # Keep configure and Python-ast.[ch], it's possible they can't be generated
1230 distclean: clobber 1266 distclean: clobber
1231 for file in Lib/test/data/* ; do \ 1267 for file in Lib/test/data/* ; do \
1232 if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \ 1268 if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 .PHONY: all build_all sharedmods oldsharedmods test quicktest memtest 1323 .PHONY: all build_all sharedmods oldsharedmods test quicktest memtest
1288 .PHONY: install altinstall oldsharedinstall bininstall altbininstall 1324 .PHONY: install altinstall oldsharedinstall bininstall altbininstall
1289 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall 1325 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall
1290 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1326 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1291 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1327 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1292 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1328 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1293 .PHONY: smelly funny patchcheck 1329 .PHONY: smelly funny patchcheck
1294 .PHONY: gdbhooks 1330 .PHONY: gdbhooks
1295 1331
1296 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1332 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
OLDNEW
« no previous file with comments | « Lib/sysconfig.py ('k') | pyconfig.h.in » ('j') | no next file with comments »

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