blob: 9c0a0f06b735b23364b791c9197fe54a055f3422 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $Id$
VERSION = 1.0.0b
OPENSSL_CONFIG_COMMAND = @OPENSSL_CONFIG_COMMAND@
OPENSSL_BUILD_DIRECTORY = @abs_builddir@/openssl
OPENSSL_SHARED_LIBRARY_DIR = @OPENSSL_SHARED_LIBRARY_DIR@
# 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.
# We need to build with enable-shared whether we're really trying to
# build shared OpenSSL libraries or not, because _POW.so requires
# position independent code, so we need OpenSSL compiled with the
# options it would use for a shared library.
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} $@
distclean: clean
cd tests; ${MAKE} $@
rm -f Makefile
openssl-${VERSION}/Makefile: openssl-${VERSION}/config
cd openssl-${VERSION}; ${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} $@
|