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
62cf605a
Kaydet (Commit)
62cf605a
authored
Agu 28, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
New version submitted by Jim Fulton.
üst
f71bd686
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
gMakefile
Misc/gMakefile
+29
-12
No files found.
Misc/gMakefile
Dosyayı görüntüle @
62cf605a
...
...
@@ -3,17 +3,20 @@
# Jim Fulton, Digital Creations, jim@digicool.com
# Uncomment this line if you want to fix the location of the PYTHON
# installation. Otherwise, set the environment variable before using this
# Makefile.
# $(PYTHONHOME)= /usr/local/
# Uncomment and modify these lines if you want to fix the location of
# the PYTHON installation and the python version. Otherwise, set the
# environment variables before using this Makefile.
# $(PYTHONHOME)= /usr/local/
# $(PYTHONVERSION)= 1.4
# The following lines should be left as is:
VERSION= $(PYTHONVERSION)
pyinstalldir= $(PYTHONHOME)
installdir= $(PYTHONHOME)
exec_installdir=$(pyinstalldir)
INCLUDEPY= $(pyinstalldir)/include/python
1.4
LIBP= $(exec_installdir)/lib/python
1.4
INCLUDEPY= $(pyinstalldir)/include/python
$(VERSION)
LIBP= $(exec_installdir)/lib/python
$(VERSION)
LIBPL= $(LIBP)/config
PYMAKE= make -f $(LIBPL)/Makefile
...
...
@@ -31,10 +34,13 @@ MODULE=your-module
OBS=$(MODULE).o
# Put extra linker options, such as libraries here:
EXTRA=
EXTRALD=
# Put Extra compiler options, such as extra -I options, here
CFLAGS=-O
# If you have any Python modules, include them here, so that they
# can
be
installed.
# can
get
installed.
PYMODULES=
build:
...
...
@@ -42,11 +48,22 @@ build:
$(PYMAKE) INCLDIR=$(INCLUDEPY) CONFIGINCLDIR=$(LIBPL) \
ASHAREDMODULE=$(MODULE) \
'ASHAREDMODULESOBS=$(OBS)' \
'ASHAREDMODULESEXTRA=$(EXTRA)' \
'ASHAREDMODULESEXTRA=$(EXTRALD)' \
'OPT=$(CFLAGS)' \
asharedmodule; \
fi
install: installso installpy
# Normally we don't install .py files:
install: installso installpyc
# But sometimes we may want to:
installpy: install
for m in $(PYMODULES) the-end; do \
if [ "$$m" != the-end ]; then \
cp $$m.py $(installdir)/lib/python$(VERSION)/; \
fi; \
done
installso: build
if [ "$(MODULE)" != your-module ]; then \
...
...
@@ -54,11 +71,11 @@ installso: build
ASHAREDMODULE=$(MODULE) asharedinstall; \
fi
installpy:
installpy
c
:
for m in $(PYMODULES) the-end; do \
if [ "$$m" != the-end ]; then \
python -c "import $$m"; \
cp $$m.pyc $(installdir)/lib/python/; \
cp $$m.pyc $(installdir)/lib/python
$(VERSION)
/; \
fi; \
done
...
...
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