aboutsummaryrefslogtreecommitdiff
path: root/pow/pywrap
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-11-21 03:32:03 +0000
committerRob Austein <sra@hactrn.net>2010-11-21 03:32:03 +0000
commit2c4a0322ab62542e8554ce5bdfe83272cdd1f0a5 (patch)
tree901ce68d7623c3638d53475a7e58457a2c8f742b /pow/pywrap
parent4883b7e3e7147526a13b6adca85bed451ece63b1 (diff)
Add Michael's pywrap hack
svn path=/configure; revision=3558
Diffstat (limited to 'pow/pywrap')
-rw-r--r--pow/pywrap/Makefile.in14
-rw-r--r--pow/pywrap/python.c6
2 files changed, 20 insertions, 0 deletions
diff --git a/pow/pywrap/Makefile.in b/pow/pywrap/Makefile.in
new file mode 100644
index 00000000..8370451a
--- /dev/null
+++ b/pow/pywrap/Makefile.in
@@ -0,0 +1,14 @@
+OPENSSL_BUILD_DIRECTORY = @abs_top_builddir@/openssl/openssl
+
+CC=gcc
+CFLAGS=`python-config --cflags`
+LDFLAGS=-Wl,-rpath,$(OPENSSL_BUILD_DIRECTORY) -L$(OPENSSL_BUILD_DIRECTORY)
+LIBS=-lcrypto -lssl `python-config --libs`
+
+all: python
+
+python: python.o
+ $(CC) $(LDFLAGS) -o $@ $< $(LIBS)
+
+clean:
+ rm -f *.o python
diff --git a/pow/pywrap/python.c b/pow/pywrap/python.c
new file mode 100644
index 00000000..10638721
--- /dev/null
+++ b/pow/pywrap/python.c
@@ -0,0 +1,6 @@
+#include <Python.h>
+
+int main(int argc, char **argv)
+{
+ return Py_Main(argc, argv);
+}