Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
bef03ae0
Kaydet (Commit)
bef03ae0
authored
Tem 19, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapted to the new build system.
üst
ded2e207
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
23 deletions
+10
-23
Makefile.pre.in
Misc/Makefile.pre.in
+10
-23
No files found.
Misc/Makefile.pre.in
Dosyayı görüntüle @
bef03ae0
...
...
@@ -4,7 +4,7 @@
# Short Instructions
# ------------------
# 1. Build and install Python (1.
4
or newer).
# 1. Build and install Python (1.
5
or newer).
# 2. "make -f Makefile.pre.in boot"
# 3. "make"
# You should now have a shared library.
...
...
@@ -12,8 +12,9 @@
# Long Instructions
# -----------------
# Build *and install* the basic Python 1.4 distribution. See the
# Python README for instructions.
# Build *and install* the basic Python 1.5 distribution. See the
# Python README for instructions. (This version of Makefile.pre.in
# only withs with Python 1.5, alpha 3 or newer.)
# Create a file Setup.in for your extension. This file follows the
# format of the Modules/Setup.in file; see the instructions there.
...
...
@@ -46,7 +47,7 @@
# config.c, incorporating the values for sys.prefix, sys.exec_prefix
# and sys.version from the installed Python binary. For this to work,
# the python binary must be on your path. If this fails, try
# make -f Makefile.pre.in Makefile VERSION=1.
4
installdir=<prefix>
# make -f Makefile.pre.in Makefile VERSION=1.
5
installdir=<prefix>
# where <prefix> is the prefix used to install Python for installdir
# (and possibly similar for exec_installdir=<exec_prefix>).
...
...
@@ -151,10 +152,7 @@ LIBP= $(exec_installdir)/lib/python$(VERSION)
LIBPL
=
$(LIBP)
/config
PYTHONLIBS
=
$(LIBPL)
/libModules.a
\
$(LIBPL)
/libPython.a
\
$(LIBPL)
/libObjects.a
\
$(LIBPL)
/libParser.a
PYTHONLIBS
=
$(LIBPL)
/libpython
$(VERSION)
.a
MAKESETUP
=
$(LIBPL)
/makesetup
MAKEFILE
=
$(LIBPL)
/Makefile
...
...
@@ -164,7 +162,7 @@ SETUP= $(LIBPL)/Setup
SYSLIBS
=
$(LIBM)
$(LIBC)
ADDOBJS
=
$(LIBPL)
/
main.o getpath
.o config.o
ADDOBJS
=
$(LIBPL)
/
python
.o config.o
# === Fixed rules ===
...
...
@@ -179,23 +177,16 @@ sharedmods: $(SHAREDMODS)
# Build a static Python binary containing our extension modules
static
:
$(TARGET)
$(TARGET)
:
$(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB) buildno
expr
`
cat
buildno
`
+ 1
>
@buildno
mv
@buildno buildno
$(CC)
-c
$(CFLAGS)
-DBUILD
=
`
cat
buildno
`
$(LIBPL)
/getbuildinfo.c
$(CC)
$(LDFLAGS)
$(ADDOBJS)
getbuildinfo.o lib.a
$(PYTHONLIBS)
\
$(TARGET)
:
$(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
$(CC)
$(LDFLAGS)
$(ADDOBJS)
lib.a
$(PYTHONLIBS)
\
$(LINKPATH)
$(BASELIB)
$(MODLIBS)
$(LIBS)
$(SYSLIBS)
\
-o
$(TARGET)
buildno
:
echo
0
>
buildno
# Build the library containing our extension modules
lib.a
:
$(MODOBJS)
-
rm
-f
lib.a
ar cr lib.a
$(MODOBJS)
-
$(RANLIB)
lib.a
||
\
echo
"don't worry if ranlib fails -- probably SYSV or equiv"
-
$(RANLIB)
lib.a
# This runs makesetup *twice* to use the BASESETUP definition from Setup
config.c Makefile
:
Makefile.pre Setup $(BASESETUP) $(MAKESETUP)
...
...
@@ -212,10 +203,6 @@ do-it-again:
config.o
:
config.c
$(CC)
$(CFLAGS)
-c
config.c
# Make our own private getpath.o from the installed source and our PYTHONPATH
getpath.o
:
$(LIBPL)/getpath.c Makefile
$(CC)
$(CFLAGS)
-DPYTHONPATH
=
\"
$(PYTHONPATH)
\"
-c
$(LIBPL)
/getpath.c
# Setup is copied from Setup.in *only* if it doesn't yet exist
Setup
:
cp
$(srcdir)
/Setup.in Setup
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment