mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
Issue #13157: Fix building Python outside its source tree
This commit is contained in:
parent
21d29c377b
commit
69f55cc033
1 changed files with 92 additions and 88 deletions
180
Makefile.pre.in
180
Makefile.pre.in
|
|
@ -258,9 +258,9 @@ PGOBJS= \
|
||||||
Parser/pgenmain.o
|
Parser/pgenmain.o
|
||||||
|
|
||||||
PARSER_HEADERS= \
|
PARSER_HEADERS= \
|
||||||
Parser/parser.h \
|
$(srcdir)/Parser/parser.h \
|
||||||
Include/parsetok.h \
|
$(srcdir)/Include/parsetok.h \
|
||||||
Parser/tokenizer.h
|
$(srcdir)/Parser/tokenizer.h
|
||||||
|
|
||||||
PGENOBJS= $(PGENMAIN) $(POBJS) $(PGOBJS)
|
PGENOBJS= $(PGENMAIN) $(POBJS) $(PGOBJS)
|
||||||
|
|
||||||
|
|
@ -370,7 +370,7 @@ OBJECT_OBJS= \
|
||||||
Objects/obmalloc.o \
|
Objects/obmalloc.o \
|
||||||
Objects/capsule.o \
|
Objects/capsule.o \
|
||||||
Objects/rangeobject.o \
|
Objects/rangeobject.o \
|
||||||
Objects/setobject.o \
|
Objects/setobject.o \
|
||||||
Objects/sliceobject.o \
|
Objects/sliceobject.o \
|
||||||
Objects/structseq.o \
|
Objects/structseq.o \
|
||||||
Objects/tupleobject.o \
|
Objects/tupleobject.o \
|
||||||
|
|
@ -571,6 +571,9 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
|
||||||
Modules/python.o: $(srcdir)/Modules/python.c
|
Modules/python.o: $(srcdir)/Modules/python.c
|
||||||
$(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules/python.c
|
$(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules/python.c
|
||||||
|
|
||||||
|
Modules/_testembed.o: $(srcdir)/Modules/_testembed.c
|
||||||
|
$(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules/_testembed.c
|
||||||
|
|
||||||
Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
|
Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
|
||||||
$(CC) -c $(PY_CORE_CFLAGS) \
|
$(CC) -c $(PY_CORE_CFLAGS) \
|
||||||
-DSOABI='"$(SOABI)"' \
|
-DSOABI='"$(SOABI)"' \
|
||||||
|
|
@ -600,6 +603,7 @@ Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
|
||||||
|
|
||||||
Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
|
Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
|
||||||
Parser/parsetok_pgen.o: $(srcdir)/Parser/parsetok.c
|
Parser/parsetok_pgen.o: $(srcdir)/Parser/parsetok.c
|
||||||
|
Parser/printgrammar.o: $(srcdir)/Parser/printgrammar.c
|
||||||
|
|
||||||
Parser/pgenmain.o: $(srcdir)/Include/parsetok.h
|
Parser/pgenmain.o: $(srcdir)/Include/parsetok.h
|
||||||
|
|
||||||
|
|
@ -647,7 +651,7 @@ Objects/setobject.o: $(srcdir)/Objects/stringlib/eq.h
|
||||||
$(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES)
|
$(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES)
|
||||||
$(OPCODETARGETGEN) $(OPCODETARGETS_H)
|
$(OPCODETARGETGEN) $(OPCODETARGETS_H)
|
||||||
|
|
||||||
Python/ceval.o: $(OPCODETARGETS_H) Python/ceval_gil.h
|
Python/ceval.o: $(OPCODETARGETS_H) $(srcdir)/Python/ceval_gil.h
|
||||||
|
|
||||||
Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \
|
Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \
|
||||||
$(BYTESTR_DEPS)
|
$(BYTESTR_DEPS)
|
||||||
|
|
@ -660,88 +664,88 @@ $(srcdir)/Objects/typeslots.inc: $(srcdir)/Include/typeslots.h $(srcdir)/Objects
|
||||||
# Header files
|
# Header files
|
||||||
|
|
||||||
PYTHON_HEADERS= \
|
PYTHON_HEADERS= \
|
||||||
Include/Python.h \
|
$(srcdir)/Include/Python.h \
|
||||||
Include/abstract.h \
|
$(srcdir)/Include/abstract.h \
|
||||||
Include/accu.h \
|
$(srcdir)/Include/accu.h \
|
||||||
Include/asdl.h \
|
$(srcdir)/Include/asdl.h \
|
||||||
Include/ast.h \
|
$(srcdir)/Include/ast.h \
|
||||||
Include/bltinmodule.h \
|
$(srcdir)/Include/bltinmodule.h \
|
||||||
Include/bitset.h \
|
$(srcdir)/Include/bitset.h \
|
||||||
Include/boolobject.h \
|
$(srcdir)/Include/boolobject.h \
|
||||||
Include/bytes_methods.h \
|
$(srcdir)/Include/bytes_methods.h \
|
||||||
Include/bytearrayobject.h \
|
$(srcdir)/Include/bytearrayobject.h \
|
||||||
Include/bytesobject.h \
|
$(srcdir)/Include/bytesobject.h \
|
||||||
Include/cellobject.h \
|
$(srcdir)/Include/cellobject.h \
|
||||||
Include/ceval.h \
|
$(srcdir)/Include/ceval.h \
|
||||||
Include/classobject.h \
|
$(srcdir)/Include/classobject.h \
|
||||||
Include/code.h \
|
$(srcdir)/Include/code.h \
|
||||||
Include/codecs.h \
|
$(srcdir)/Include/codecs.h \
|
||||||
Include/compile.h \
|
$(srcdir)/Include/compile.h \
|
||||||
Include/complexobject.h \
|
$(srcdir)/Include/complexobject.h \
|
||||||
Include/descrobject.h \
|
$(srcdir)/Include/descrobject.h \
|
||||||
Include/dictobject.h \
|
$(srcdir)/Include/dictobject.h \
|
||||||
Include/dtoa.h \
|
$(srcdir)/Include/dtoa.h \
|
||||||
Include/dynamic_annotations.h \
|
$(srcdir)/Include/dynamic_annotations.h \
|
||||||
Include/enumobject.h \
|
$(srcdir)/Include/enumobject.h \
|
||||||
Include/errcode.h \
|
$(srcdir)/Include/errcode.h \
|
||||||
Include/eval.h \
|
$(srcdir)/Include/eval.h \
|
||||||
Include/fileobject.h \
|
$(srcdir)/Include/fileobject.h \
|
||||||
Include/fileutils.h \
|
$(srcdir)/Include/fileutils.h \
|
||||||
Include/floatobject.h \
|
$(srcdir)/Include/floatobject.h \
|
||||||
Include/frameobject.h \
|
$(srcdir)/Include/frameobject.h \
|
||||||
Include/funcobject.h \
|
$(srcdir)/Include/funcobject.h \
|
||||||
Include/genobject.h \
|
$(srcdir)/Include/genobject.h \
|
||||||
Include/import.h \
|
$(srcdir)/Include/import.h \
|
||||||
Include/intrcheck.h \
|
$(srcdir)/Include/intrcheck.h \
|
||||||
Include/iterobject.h \
|
$(srcdir)/Include/iterobject.h \
|
||||||
Include/listobject.h \
|
$(srcdir)/Include/listobject.h \
|
||||||
Include/longintrepr.h \
|
$(srcdir)/Include/longintrepr.h \
|
||||||
Include/longobject.h \
|
$(srcdir)/Include/longobject.h \
|
||||||
Include/marshal.h \
|
$(srcdir)/Include/marshal.h \
|
||||||
Include/memoryobject.h \
|
$(srcdir)/Include/memoryobject.h \
|
||||||
Include/metagrammar.h \
|
$(srcdir)/Include/metagrammar.h \
|
||||||
Include/methodobject.h \
|
$(srcdir)/Include/methodobject.h \
|
||||||
Include/modsupport.h \
|
$(srcdir)/Include/modsupport.h \
|
||||||
Include/moduleobject.h \
|
$(srcdir)/Include/moduleobject.h \
|
||||||
Include/node.h \
|
$(srcdir)/Include/node.h \
|
||||||
Include/object.h \
|
$(srcdir)/Include/object.h \
|
||||||
Include/objimpl.h \
|
$(srcdir)/Include/objimpl.h \
|
||||||
Include/opcode.h \
|
$(srcdir)/Include/opcode.h \
|
||||||
Include/osdefs.h \
|
$(srcdir)/Include/osdefs.h \
|
||||||
Include/patchlevel.h \
|
$(srcdir)/Include/patchlevel.h \
|
||||||
Include/pgen.h \
|
$(srcdir)/Include/pgen.h \
|
||||||
Include/pgenheaders.h \
|
$(srcdir)/Include/pgenheaders.h \
|
||||||
Include/pyarena.h \
|
$(srcdir)/Include/pyarena.h \
|
||||||
Include/pyatomic.h \
|
$(srcdir)/Include/pyatomic.h \
|
||||||
Include/pycapsule.h \
|
$(srcdir)/Include/pycapsule.h \
|
||||||
Include/pyctype.h \
|
$(srcdir)/Include/pyctype.h \
|
||||||
Include/pydebug.h \
|
$(srcdir)/Include/pydebug.h \
|
||||||
Include/pyerrors.h \
|
$(srcdir)/Include/pyerrors.h \
|
||||||
Include/pyfpe.h \
|
$(srcdir)/Include/pyfpe.h \
|
||||||
Include/pymath.h \
|
$(srcdir)/Include/pymath.h \
|
||||||
Include/pygetopt.h \
|
$(srcdir)/Include/pygetopt.h \
|
||||||
Include/pymacro.h \
|
$(srcdir)/Include/pymacro.h \
|
||||||
Include/pymem.h \
|
$(srcdir)/Include/pymem.h \
|
||||||
Include/pyport.h \
|
$(srcdir)/Include/pyport.h \
|
||||||
Include/pystate.h \
|
$(srcdir)/Include/pystate.h \
|
||||||
Include/pystrcmp.h \
|
$(srcdir)/Include/pystrcmp.h \
|
||||||
Include/pystrtod.h \
|
$(srcdir)/Include/pystrtod.h \
|
||||||
Include/pythonrun.h \
|
$(srcdir)/Include/pythonrun.h \
|
||||||
Include/pythread.h \
|
$(srcdir)/Include/pythread.h \
|
||||||
Include/pytime.h \
|
$(srcdir)/Include/pytime.h \
|
||||||
Include/rangeobject.h \
|
$(srcdir)/Include/rangeobject.h \
|
||||||
Include/setobject.h \
|
$(srcdir)/Include/setobject.h \
|
||||||
Include/sliceobject.h \
|
$(srcdir)/Include/sliceobject.h \
|
||||||
Include/structmember.h \
|
$(srcdir)/Include/structmember.h \
|
||||||
Include/structseq.h \
|
$(srcdir)/Include/structseq.h \
|
||||||
Include/symtable.h \
|
$(srcdir)/Include/symtable.h \
|
||||||
Include/sysmodule.h \
|
$(srcdir)/Include/sysmodule.h \
|
||||||
Include/traceback.h \
|
$(srcdir)/Include/traceback.h \
|
||||||
Include/tupleobject.h \
|
$(srcdir)/Include/tupleobject.h \
|
||||||
Include/ucnhash.h \
|
$(srcdir)/Include/ucnhash.h \
|
||||||
Include/unicodeobject.h \
|
$(srcdir)/Include/unicodeobject.h \
|
||||||
Include/warnings.h \
|
$(srcdir)/Include/warnings.h \
|
||||||
Include/weakrefobject.h \
|
$(srcdir)/Include/weakrefobject.h \
|
||||||
pyconfig.h \
|
pyconfig.h \
|
||||||
$(PARSER_HEADERS)
|
$(PARSER_HEADERS)
|
||||||
|
|
||||||
|
|
@ -1231,7 +1235,7 @@ scriptsinstall:
|
||||||
--root=$(DESTDIR)/
|
--root=$(DESTDIR)/
|
||||||
|
|
||||||
# Build the toplevel Makefile
|
# Build the toplevel Makefile
|
||||||
Makefile.pre: Makefile.pre.in config.status
|
Makefile.pre: $(srcdir)/Makefile.pre.in config.status
|
||||||
CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status
|
CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status
|
||||||
$(MAKE) -f Makefile.pre Makefile
|
$(MAKE) -f Makefile.pre Makefile
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue