aboutsummaryrefslogtreecommitdiff
path: root/pow/pywrap
diff options
context:
space:
mode:
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);
+}