Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
53c18c57
Commit
53c18c57
authored
Feb 21, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial
parent
fb1df733
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
752 additions
and
0 deletions
+752
-0
lib/Components/zlib/Makefile
lib/Components/zlib/Makefile
+82
-0
lib/Components/zlib/zlibmodule.c
lib/Components/zlib/zlibmodule.c
+670
-0
No files found.
lib/Components/zlib/Makefile
0 → 100644
View file @
53c18c57
# Generic Makefile for dynamically linked extension modules.
#
# Jim Fulton, Digital Creations, jim@digicool.com
PYTHON
=
python1.4
PYTHONHOME
=
`
$(PYTHON)
-c
"import sys; print sys.prefix"
`
PYTHONVERSION
=
`
$(PYTHON)
-c
"import sys; print sys.version[:3]"
`
# The following lines should be left as is:
VERSION
=
$(PYTHONVERSION)
pyinstalldir
=
$(PYTHONHOME)
installdir
=
$(PYTHONHOME)
exec_installdir
=
$(pyinstalldir)
INCLUDEPY
=
$(pyinstalldir)
/include/python
$(VERSION)
LIBP
=
$(exec_installdir)
/lib/python
$(VERSION)
LIBPL
=
$(LIBP)
/config
PYMAKE
=
make
-f
$(LIBPL)
/Makefile
PLATFORM
=
`
$(PYTHON)
-c
'import sys; print sys.platform'
`
# LIBSO is the location of platform-dependent dynamically linked
# extension libraries. This can be handy when you need to build
# shared libraries that are not extensions but want to store them
# with other extensions and need to know where they are.
# Leave this line as it is.
LIBSO
=
`
$(PYMAKE)
-s
echodestshared
`
# Put your module name here:
MODULE
=
zlibmodule
# Put the object files for your module here:
OBS
=
$(MODULE)
.o zlib/libz.a
# Put extra linker options, such as libraries here:
EXTRALD
=
# Put Extra compiler options, such as extra -I options, here
CFLAGS
=
-O
-Izlib
# If you have any Python modules, include them here, so that they
# can get installed.
PYMODULES
=
bld
:
make bldp
PLAT
=
$(PLATFORM)
bldp
:
bin bin/$(PLAT) bin/$(PLAT)/$(MODULE).so
bin
:
mkdir
bin
bin/$(PLAT)
:
mkdir
bin/
$(PLAT)
bin/$(PLAT)/$(MODULE).so
:
$(MODULE).c
make clean
make build
cp
$(MODULE)
.so bin/
$(PLAT)
/
build
:
if
[
"
$(MODULE)
"
!=
your-module
]
;
then
\
$(PYMAKE)
INCLDIR
=
$(INCLUDEPY)
CONFIGINCLDIR
=
$(LIBPL)
\
ASHAREDMODULE
=
$(MODULE)
\
'ASHAREDMODULESOBS=
$(OBS)
'
\
'ASHAREDMODULESEXTRA=
$(EXTRALD)
'
\
'OPT=
$(CFLAGS)
'
\
asharedmodule
;
\
fi
# Normally we don't install .py files:
install
:
installso
# But sometimes we may want to:
installpy
:
install
installso
:
build
cp
bin/
$(PLATFORM)
/
$(MODULE)
.so
\
$(installdir)
/lib/python/Components/
$(PLATFORM)
clean
::
-
rm
-f
*
.o
*
.so
*
~
*
# so_locations
lib/Components/zlib/zlibmodule.c
0 → 100644
View file @
53c18c57
This diff is collapsed.
Click to expand it.
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