(unknown)
Ng Pheng Siong <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Apr 30, 2002 at 05:14:23AM -0700, Douglas Shand wrote:
> I have installed Python from source and I have
> Python.h available in
>
> /usr/local/include/python2.2/Python.h
>
> but I am not sure which parm in the Makefile.osx
> actually uses this.
Makefile.osx was contributed by Richard Jones but is based on the original
Makefiles I wrote. You'll have to fix various pathnames in it to point to
the right places.
The output of SWIG - _m2crypto_wrap.c - is in Python C-extension format and
needs Python.h to build.
I've pasted Makefile.osx below. I guess you need to replace all that
/Users/richard stuff, at least.
# $Id$
CFLAGS = -DTHREADING -g -O2 -Xlinker -bind_at_load
INCLUDE = -I/Users/richard/include -I.
LIBS = /Users/richard/lib/libssl.a /Users/richard/lib/libcrypto.a
PYVER = 2.1
PYINCLUDE = -DHAVE_CONFIG_H -I/Users/richard/include/python$(PYVER) \
-I/Users/richard/lib/python$(PYVER)/config
PYLIB = /Users/richard/lib/python$(PYVER)/config
all: _m2cryptoc.so
_m2crypto_wrap.c: _m2crypto.i
/Users/richard/bin/swig -shadow -python _m2crypto.i
_m2crypto_wrap.o: _m2crypto_wrap.c
cc -c -fPIC $(CFLAGS) $(INCLUDE) $(PYINCLUDE) _m2crypto_wrap.c
_m2cryptoc.so: _m2crypto_wrap.o
cc -bundle -undefined suppress _m2crypto_wrap.o \
/Users/richard/lib/libssl.a /Users/richard/lib/libcrypto.a \
-lcc_dynamic -o _m2cryptoc.so
cp _m2crypto.py _m2cryptoc.so ../M2Crypto
clean:
rm -f *_wrap* *.o *.so _*.py *.pyc
--
Ng Pheng Siong <[email protected]> * http://www.netmemetic.com