diff options
Diffstat (limited to 'openssl/Makefile.in')
-rw-r--r-- | openssl/Makefile.in | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/openssl/Makefile.in b/openssl/Makefile.in new file mode 100644 index 00000000..14a5bcb3 --- /dev/null +++ b/openssl/Makefile.in @@ -0,0 +1,54 @@ +# $Id$ + +# Kludge alert: +# +# 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 +# libraries on 64-bit hardware. +# +# "You are lost in a maze of twisty programs, all broken in different +# ways" + +VERSION = 1.0.0-beta5 + +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=${OPENSSL_BUILD_DIRECTORY} + ln -sf openssl-${VERSION} openssl + +clean: + rm -rf openssl-${VERSION} openssl + cd tests; ${MAKE} $@ + +# Ordinarily we let ./config guess the platform target. When +# debugging, we usually need to specify an explicit target, in which +# case it's probably easier to use ./Configure. + +openssl-${VERSION}/Makefile: openssl-${VERSION}/config + cd openssl-${VERSION}; PERL=/usr/bin/perl ${OPENSSL_CONFIG_COMMAND} ${OPTIONS} + cd openssl-${VERSION}; ${MAKE} depend + +openssl-${VERSION}/config: openssl-${VERSION}.tar.gz + gzip -c -d openssl-${VERSION}.tar.gz | tar -xf - + ln -s . openssl-${VERSION}/lib + touch $@ + +install: + @echo Not attempting to install modified OpenSSL, if you want that, do it yourself + +sandblast: + svn st -v openssl* | awk '/^I/ && NF == 2 {system("set -x; rm -rf " $$2)}' + +test: all + cd tests; ${MAKE} $@ |