aboutsummaryrefslogtreecommitdiff
path: root/pow
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-12-18 18:47:44 +0000
committerRob Austein <sra@hactrn.net>2010-12-18 18:47:44 +0000
commitbe15b0d5c82a885576ebd52750ad04e740b07b67 (patch)
treed9fd39969e629c7588257c2d14763f8bd12cbf4a /pow
parent4ec7612ee6b368cba62673ded6afaf616123084c (diff)
More autoconf
svn path=/buildtools/python-header; revision=3574
Diffstat (limited to 'pow')
-rw-r--r--pow/Makefile6
-rw-r--r--pow/pywrap/Makefile6
-rw-r--r--pow/pywrap/build.py4
-rw-r--r--pow/pywrap/pywrap.c (renamed from pow/pywrap/python.c)0
4 files changed, 8 insertions, 8 deletions
diff --git a/pow/Makefile b/pow/Makefile
index df1ea9fb..c5d267d2 100644
--- a/pow/Makefile
+++ b/pow/Makefile
@@ -12,15 +12,15 @@ SOURCES = POW-${VERSION}/lib/__init__.py \
POW-${VERSION}/dumpasn1.cfg \
POW-${VERSION}/POW.c
-all: ${STAMP} pywrap/python
+all: ${STAMP} pywrap/pywrap
${STAMP}: ${SOURCES}
cd POW-${VERSION}; python setup.py build
ln -sf POW-${VERSION}/build/lib.* buildlib
touch $@
-pywrap/python:
- cd pywrap; ${MAKE} python
+pywrap/pywrap:
+ cd pywrap; ${MAKE} pywrap
clean:
rm -rf POW-${VERSION}/build buildlib
diff --git a/pow/pywrap/Makefile b/pow/pywrap/Makefile
index e065bbe6..7c37faab 100644
--- a/pow/pywrap/Makefile
+++ b/pow/pywrap/Makefile
@@ -1,9 +1,9 @@
# $Id$
-all: python
+all: pywrap
-python: python.c
+pywrap: pywrap.c
python build.py
clean:
- rm -f *.o python
+ rm -f *.o pywrap
diff --git a/pow/pywrap/build.py b/pow/pywrap/build.py
index 0160918f..d514be91 100644
--- a/pow/pywrap/build.py
+++ b/pow/pywrap/build.py
@@ -30,8 +30,8 @@ openssl_dir = os.path.realpath(os.path.join(os.getcwd(), "../../openssl/openssl"
cmd = getvar("CC").split()
cmd.append("-o")
-cmd.append("python")
-cmd.append("python.c")
+cmd.append("pywrap")
+cmd.append("pywrap.c")
cmd.append("-Wl,-rpath,%s" % openssl_dir)
cmd.append("-L%s" % openssl_dir)
diff --git a/pow/pywrap/python.c b/pow/pywrap/pywrap.c
index 10638721..10638721 100644
--- a/pow/pywrap/python.c
+++ b/pow/pywrap/pywrap.c