2011-02-05 22:14:47 +03:00
|
|
|
#!/bin/bash
|
|
|
|
echo
|
|
|
|
swig -python cyassl.i
|
|
|
|
pythonIncludes=`python-config --includes`
|
|
|
|
pythonLibs=`python-config --libs`
|
2011-11-10 05:58:37 +04:00
|
|
|
gcc -c -fpic cyassl_wrap.c -I$pythonIncludes
|
|
|
|
gcc -c -fpic cyassl_adds.c
|
|
|
|
gcc -shared -flat_namespace cyassl_adds.o cyassl_wrap.o -lcyassl $pythonLibs -o _cyassl.so
|
2011-02-05 22:14:47 +03:00
|
|
|
python runme.py
|