Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
230b308f
Commit
230b308f
authored
Aug 28, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New version submitted by Jim Fulton.
parent
a78a6c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
Misc/gMakefile
Misc/gMakefile
+29
-12
No files found.
Misc/gMakefile
View file @
230b308f
...
@@ -3,17 +3,20 @@
...
@@ -3,17 +3,20 @@
# Jim Fulton, Digital Creations, jim@digicool.com
# Jim Fulton, Digital Creations, jim@digicool.com
# Uncomment this line if you want to fix the location of the PYTHON
# Uncomment and modify these lines if you want to fix the location of
# installation. Otherwise, set the environment variable before using this
# the PYTHON installation and the python version. Otherwise, set the
# Makefile.
# environment variables before using this Makefile.
# $(PYTHONHOME)= /usr/local/
# $(PYTHONHOME)= /usr/local/
# $(PYTHONVERSION)= 1.4
# The following lines should be left as is:
# The following lines should be left as is:
VERSION= $(PYTHONVERSION)
pyinstalldir= $(PYTHONHOME)
pyinstalldir= $(PYTHONHOME)
installdir= $(PYTHONHOME)
installdir= $(PYTHONHOME)
exec_installdir=$(pyinstalldir)
exec_installdir=$(pyinstalldir)
INCLUDEPY= $(pyinstalldir)/include/python
1.4
INCLUDEPY= $(pyinstalldir)/include/python
$(VERSION)
LIBP= $(exec_installdir)/lib/python
1.4
LIBP= $(exec_installdir)/lib/python
$(VERSION)
LIBPL= $(LIBP)/config
LIBPL= $(LIBP)/config
PYMAKE= make -f $(LIBPL)/Makefile
PYMAKE= make -f $(LIBPL)/Makefile
...
@@ -31,10 +34,13 @@ MODULE=your-module
...
@@ -31,10 +34,13 @@ MODULE=your-module
OBS=$(MODULE).o
OBS=$(MODULE).o
# Put extra linker options, such as libraries here:
# 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
# If you have any Python modules, include them here, so that they
# can
be
installed.
# can
get
installed.
PYMODULES=
PYMODULES=
build:
build:
...
@@ -42,11 +48,22 @@ build:
...
@@ -42,11 +48,22 @@ build:
$(PYMAKE) INCLDIR=$(INCLUDEPY) CONFIGINCLDIR=$(LIBPL) \
$(PYMAKE) INCLDIR=$(INCLUDEPY) CONFIGINCLDIR=$(LIBPL) \
ASHAREDMODULE=$(MODULE) \
ASHAREDMODULE=$(MODULE) \
'ASHAREDMODULESOBS=$(OBS)' \
'ASHAREDMODULESOBS=$(OBS)' \
'ASHAREDMODULESEXTRA=$(EXTRA)' \
'ASHAREDMODULESEXTRA=$(EXTRALD)' \
'OPT=$(CFLAGS)' \
asharedmodule; \
asharedmodule; \
fi
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
installso: build
if [ "$(MODULE)" != your-module ]; then \
if [ "$(MODULE)" != your-module ]; then \
...
@@ -54,11 +71,11 @@ installso: build
...
@@ -54,11 +71,11 @@ installso: build
ASHAREDMODULE=$(MODULE) asharedinstall; \
ASHAREDMODULE=$(MODULE) asharedinstall; \
fi
fi
installpy:
installpy
c
:
for m in $(PYMODULES) the-end; do \
for m in $(PYMODULES) the-end; do \
if [ "$$m" != the-end ]; then \
if [ "$$m" != the-end ]; then \
python -c "import $$m"; \
python -c "import $$m"; \
cp $$m.pyc $(installdir)/lib/python/; \
cp $$m.pyc $(installdir)/lib/python
$(VERSION)
/; \
fi; \
fi; \
done
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