aboutsummaryrefslogtreecommitdiff
path: root/openssl
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-03-19 22:45:41 +0000
committerRob Austein <sra@hactrn.net>2010-03-19 22:45:41 +0000
commit0171672858e16f2c660c0287695059b56633d1fe (patch)
treecfd54165361be11cbbdc89fd3c38cbe2ae5834e1 /openssl
parent5627c2b760f19d757a650a021231bd2b02e7055d (diff)
First baby steps towards autoconf. Trying to keep this simple, so
only using it where absolutely necessary at the moment. svn path=/Makefile; revision=3125
Diffstat (limited to 'openssl')
-rw-r--r--openssl/Makefile.in (renamed from openssl/Makefile)21
1 files changed, 12 insertions, 9 deletions
diff --git a/openssl/Makefile b/openssl/Makefile.in
index 48170b6c..14a5bcb3 100644
--- a/openssl/Makefile
+++ b/openssl/Makefile.in
@@ -2,11 +2,11 @@
# Kludge alert:
#
-# The --prefix=`pwd` and LIBRPATH=`pwd` settings below are to force
-# OpenSSL's baroque configuration mechanism to build shared libraries
-# that will run out of the build tree. This is temporary. Once we
-# write "make install" code, we'll have to change that to point to the
-# directory where the OpenSSL shared libraries will be installed.
+# The --prefix= and LIBRPATH= settings below are to force OpenSSL's
+# baroque configuration mechanism to build shared libraries that will
+# run out of the build tree. This is temporary. Once we write "make
+# install" code, we'll have to change that to point to the directory
+# where the OpenSSL shared libraries will be installed.
#
# I would have avoided shared libraries entirely if I could, but the
# GNU linker isn't able to build POW (see ../pow/) from static
@@ -17,10 +17,14 @@
VERSION = 1.0.0-beta5
-OPTIONS = enable-rfc3779 enable-cms no-dso enable-shared --prefix=`pwd`
+OPENSSL_CONFIG_COMMAND = @OPENSSL_CONFIG_COMMAND@
+
+OPENSSL_BUILD_DIRECTORY = @abs_builddir@/openssl
+
+OPTIONS = enable-rfc3779 enable-cms no-dso enable-shared --prefix=${OPENSSL_BUILD_DIRECTORY}
all: openssl-${VERSION}/Makefile
- cd openssl-${VERSION}; ${MAKE} $@ LIBRPATH=`pwd`
+ cd openssl-${VERSION}; ${MAKE} $@ LIBRPATH=${OPENSSL_BUILD_DIRECTORY}
ln -sf openssl-${VERSION} openssl
clean:
@@ -32,8 +36,7 @@ clean:
# case it's probably easier to use ./Configure.
openssl-${VERSION}/Makefile: openssl-${VERSION}/config
- cd openssl-${VERSION}; PERL=/usr/bin/perl ./config ${OPTIONS}
-# cd openssl-${VERSION}; PERL=/usr/bin/perl ./Configure debug-BSD-x86-elf ${OPTIONS}
+ cd openssl-${VERSION}; PERL=/usr/bin/perl ${OPENSSL_CONFIG_COMMAND} ${OPTIONS}
cd openssl-${VERSION}; ${MAKE} depend
openssl-${VERSION}/config: openssl-${VERSION}.tar.gz