@@ -466,7 +466,7 @@ LIBRARY_OBJS= \
466
466
467
467
# Default target
468
468
all: build_all
469
- build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Modules /_testembed python-config
469
+ build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs /_testembed python-config
470
470
471
471
# Compile a binary with gcc profile guided optimization.
472
472
profile-opt:
@@ -539,8 +539,8 @@ clinic: $(BUILDPYTHON)
539
539
$(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make
540
540
541
541
# Build the interpreter
542
- $(BUILDPYTHON): Modules /python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
543
- $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules /python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
542
+ $(BUILDPYTHON): Programs /python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
543
+ $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs /python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
544
544
545
545
platform: $(BUILDPYTHON) pybuilddir.txt
546
546
$(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print(get_platform()+"-"+sys.version[0:3])' >platform
@@ -665,18 +665,18 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist
665
665
echo "-----------------------------------------------"; \
666
666
fi
667
667
668
- Modules /_testembed: Modules /_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
669
- $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules /_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
668
+ Programs /_testembed: Programs /_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
669
+ $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs /_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
670
670
671
671
############################################################################
672
672
# Importlib
673
673
674
- Modules /_freeze_importlib: Modules /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
675
- $(LINKCC) $(PY_LDFLAGS) -o $@ Modules /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
674
+ Programs /_freeze_importlib: Programs /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
675
+ $(LINKCC) $(PY_LDFLAGS) -o $@ Programs /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
676
676
677
- Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Modules /_freeze_importlib.c
678
- $(MAKE) Modules /_freeze_importlib
679
- ./Modules /_freeze_importlib \
677
+ Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs /_freeze_importlib.c
678
+ $(MAKE) Programs /_freeze_importlib
679
+ ./Programs /_freeze_importlib \
680
680
$(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
681
681
682
682
@@ -704,11 +704,11 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
704
704
-DVPATH='"$(VPATH)"' \
705
705
-o $@ $(srcdir)/Modules/getpath.c
706
706
707
- Modules /python.o: $(srcdir)/Modules /python.c
708
- $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules /python.c
707
+ Programs /python.o: $(srcdir)/Programs /python.c
708
+ $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs /python.c
709
709
710
- Modules /_testembed.o: $(srcdir)/Modules /_testembed.c
711
- $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules /_testembed.c
710
+ Programs /_testembed.o: $(srcdir)/Programs /_testembed.c
711
+ $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs /_testembed.c
712
712
713
713
Modules/_sre.o: $(srcdir)/Modules/_sre.c $(srcdir)/Modules/sre.h $(srcdir)/Modules/sre_constants.h $(srcdir)/Modules/sre_lib.h
714
714
@@ -922,7 +922,7 @@ PYTHON_HEADERS= \
922
922
$(PARSER_HEADERS) \
923
923
$(AST_H)
924
924
925
- $(LIBRARY_OBJS) $(MODOBJS) Modules /python.o: $(PYTHON_HEADERS)
925
+ $(LIBRARY_OBJS) $(MODOBJS) Programs /python.o: $(PYTHON_HEADERS)
926
926
927
927
928
928
######################################################################
@@ -1332,7 +1332,7 @@ libainstall: all python-config
1332
1332
fi; \
1333
1333
fi
1334
1334
$(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
1335
- $(INSTALL_DATA) Modules /python.o $(DESTDIR)$(LIBPL)/python.o
1335
+ $(INSTALL_DATA) Programs /python.o $(DESTDIR)$(LIBPL)/python.o
1336
1336
$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in
1337
1337
$(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
1338
1338
$(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
@@ -1343,10 +1343,10 @@ libainstall: all python-config
1343
1343
$(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
1344
1344
$(INSTALL_SCRIPT) python-config.py $(DESTDIR)$(LIBPL)/python-config.py
1345
1345
$(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-config
1346
- @if [ -s Modules /python.exp -a \
1346
+ @if [ -s Programs /python.exp -a \
1347
1347
"`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
1348
1348
echo; echo "Installing support files for building shared extension modules on AIX:"; \
1349
- $(INSTALL_DATA) Modules /python.exp \
1349
+ $(INSTALL_DATA) Programs /python.exp \
1350
1350
$(DESTDIR)$(LIBPL)/python.exp; \
1351
1351
echo; echo "$(LIBPL)/python.exp"; \
1352
1352
$(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \
@@ -1526,7 +1526,7 @@ clean: pycremoval
1526
1526
find build -name '*.py[co]' -exec rm -f {} ';' || true
1527
1527
-rm -f pybuilddir.txt
1528
1528
-rm -f Lib/lib2to3/*Grammar*.pickle
1529
- -rm -f Modules /_testembed Modules /_freeze_importlib
1529
+ -rm -f Programs /_testembed Programs /_freeze_importlib
1530
1530
1531
1531
profile-removal:
1532
1532
find . -name '*.gc??' -exec rm -f {} ';'
@@ -1550,7 +1550,7 @@ distclean: clobber
1550
1550
done
1551
1551
-rm -f core Makefile Makefile.pre config.status \
1552
1552
Modules/Setup Modules/Setup.local Modules/Setup.config \
1553
- Modules/ld_so_aix Modules /python.exp Misc/python.pc
1553
+ Modules/ld_so_aix Programs /python.exp Misc/python.pc
1554
1554
-rm -f python*-gdb.py
1555
1555
find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
1556
1556
-o -name '[@,#]*' -o -name '*.old' \
0 commit comments