diff options
Diffstat (limited to 'src/lib/libssl/Makefile.bsd-wrapper')
-rw-r--r-- | src/lib/libssl/Makefile.bsd-wrapper | 58 |
1 files changed, 26 insertions, 32 deletions
diff --git a/src/lib/libssl/Makefile.bsd-wrapper b/src/lib/libssl/Makefile.bsd-wrapper index 282912514d..2759c96946 100644 --- a/src/lib/libssl/Makefile.bsd-wrapper +++ b/src/lib/libssl/Makefile.bsd-wrapper | |||
@@ -1,34 +1,33 @@ | |||
1 | # Build wrapper for SSLeay. | 1 | # Build wrapper for OpenSSL |
2 | # $OpenBSD: Makefile.bsd-wrapper,v 1.9 1999/03/17 18:25:56 deraadt Exp $ | 2 | # $OpenBSD: Makefile.bsd-wrapper,v 1.10 1999/09/29 05:55:59 beck Exp $ |
3 | 3 | ||
4 | # Our lndir is hacked; specify a full path to avoid potential conflicts | 4 | # Our lndir is hacked; specify a full path to avoid potential conflicts |
5 | # with the one installed with X11. | 5 | # with the one installed with X11. |
6 | LNDIR= /usr/bin/lndir | 6 | LNDIR= /usr/bin/lndir |
7 | 7 | ||
8 | 8 | # Figure out what flag we use to OpenSSL's configure. This | |
9 | # Figure out what flag we use to SSLeay's configure. This | ||
10 | # needs to be tested on all architectures. | 9 | # needs to be tested on all architectures. |
11 | 10 | ||
12 | .if ${MACHINE_ARCH} == "i386" | 11 | .if ${MACHINE_ARCH} == "i386" |
13 | SSLCONF= OpenBSD-x86 | 12 | SSLCONF= --openssldir=/etc/ssl OpenBSD-x86 |
14 | .else | 13 | .else |
15 | .if ${MACHINE_ARCH} == "pmax" | 14 | .if ${MACHINE} == "pmax" |
16 | SSLCONF= OpenBSD-pmax | 15 | SSLCONF= --openssldir=/etc/ssl OpenBSD-pmax |
17 | .else | 16 | .else |
18 | .if ${MACHINE_ARCH} == "arc" | 17 | .if ${MACHINE} == "arc" |
19 | SSLCONF= OpenBSD-arc | 18 | SSLCONF= --openssldir=/etc/ssl OpenBSD-arc |
20 | .else | 19 | .else |
21 | .if ${MACHINE_ARCH} == "alpha" | 20 | .if ${MACHINE_ARCH} == "alpha" |
22 | SSLCONF= OpenBSD-alpha | 21 | SSLCONF= --openssldir=/etc/ssl OpenBSD-alpha |
23 | .else | 22 | .else |
24 | .if ${MACHINE_ARCH} == "sparc" | 23 | .if ${MACHINE_ARCH} == "sparc" |
25 | SSLCONF= OpenBSD-bigendian | 24 | SSLCONF= --openssldir=/etc/ssl OpenBSD-bigendian |
26 | .else | 25 | .else |
27 | .if ${MACHINE_ARCH} == "m88k" | 26 | .if ${MACHINE_ARCH} == "m88k" |
28 | SSLCONF= OpenBSD-bigendian | 27 | SSLCONF= --openssldir=/etc/ssl OpenBSD-bigendian |
29 | .else | 28 | .else |
30 | ##UNTESTED! | 29 | ##UNTESTED! |
31 | SSLCONF= OpenBSD-bigendian | 30 | SSLCONF= --openssldir=/etc/ssl OpenBSD-bigendian |
32 | .endif | 31 | .endif |
33 | .endif | 32 | .endif |
34 | .endif | 33 | .endif |
@@ -36,15 +35,7 @@ SSLCONF= OpenBSD-bigendian | |||
36 | .endif | 35 | .endif |
37 | .endif | 36 | .endif |
38 | 37 | ||
39 | MUNGEDFILES = ${.OBJDIR}/${SSL_SRC}/crypto/bf/bf_locl.h \ | 38 | MUNGEDFILES = ${.OBJDIR}/${SSL_SRC}/crypto/opensslconf.h ${.OBJDIR}/${SSL_SRC}/crypto/objects/obj_dat.h ${.OBJDIR}/${SSL_SRC}/Makefile.ssl ${.OBJDIR}/${SSL_SRC}/Makefile ${.OBJDIR}/${SSL_SRC}/apps/der_chop ${.OBJDIR}/${SSL_SRC}/tools/c_rehash |
40 | ${.OBJDIR}/${SSL_SRC}/crypto/bn/bn.h \ | ||
41 | ${.OBJDIR}/${SSL_SRC}/crypto/des/des.h \ | ||
42 | ${.OBJDIR}/${SSL_SRC}/crypto/des/des_locl.h \ | ||
43 | ${.OBJDIR}/${SSL_SRC}/crypto/idea/idea.h \ | ||
44 | ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h \ | ||
45 | ${.OBJDIR}/${SSL_SRC}/crypto/rc2/rc2.h \ | ||
46 | ${.OBJDIR}/${SSL_SRC}/crypto/rc4/rc4.h \ | ||
47 | ${.OBJDIR}/${SSL_SRC}/crypto/rc4/rc4_locl.h | ||
48 | 39 | ||
49 | 40 | ||
50 | .include <bsd.own.mk> | 41 | .include <bsd.own.mk> |
@@ -61,29 +52,32 @@ all: prereq | |||
61 | includes: prereq | 52 | includes: prereq |
62 | cd ${.OBJDIR} && ${MAKE} includes | 53 | cd ${.OBJDIR} && ${MAKE} includes |
63 | 54 | ||
64 | prereq: ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h | 55 | prereq: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl ${.OBJDIR}/${SSL_SRC}/crypto/objects/obj_dat.h |
65 | 56 | ||
66 | install: | 57 | install: |
67 | cd ${.OBJDIR} && ${MAKE} install | 58 | cd ${.OBJDIR} && ${MAKE} install |
68 | 59 | ||
69 | ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h : ${.OBJDIR}/${SSL_SRC}/Makefile.ssl | 60 | ${.OBJDIR}/${SSL_SRC}/crypto/objects/obj_dat.h: ${.OBJDIR}/${SSL_SRC}/crypto/objects/objects.h |
61 | /usr/bin/perl ${.OBJDIR}/${SSL_SRC}/crypto/objects/obj_dat.pl < ${.OBJDIR}/${SSL_SRC}/crypto/objects/objects.h > ${.OBJDIR}/${SSL_SRC}/crypto/objects/obj_dat.h | ||
62 | |||
63 | ${.OBJDIR}/${SSL_SRC}/Makefile.ssl : ${.OBJDIR}/${SSL_SRC}/Makefile.org | ||
70 | cd ${.OBJDIR}/${SSL_SRC} && /usr/bin/perl Configure ${SSLCONF} | 64 | cd ${.OBJDIR}/${SSL_SRC} && /usr/bin/perl Configure ${SSLCONF} |
71 | 65 | ||
72 | .if !exists(${.OBJDIR}/${SSL_SRC}/Makefile.ssl) | 66 | .if !exists(${.OBJDIR}/${SSL_SRC}/Makefile.org) |
73 | ${.OBJDIR}/${SSL_SRC}/Makefile.ssl: ${.CURDIR}/${SSL_SRC}/Makefile.ssl | 67 | ${.OBJDIR}/${SSL_SRC}/Makefile.org: ${.CURDIR}/${SSL_SRC}/Makefile.org |
74 | ${LNDIR} -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper -e Makefile.ssl ${.CURDIR} && cp ${.CURDIR}/${SSL_SRC}/Makefile.ssl ${.OBJDIR}/${SSL_SRC} | 68 | ${LNDIR} -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR} |
75 | .endif | 69 | .endif |
76 | 70 | ||
77 | clean: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl | 71 | clean: |
78 | cd ${.OBJDIR} && ${MAKE} clean | 72 | cd ${.OBJDIR} && ${MAKE} clean |
79 | 73 | ||
80 | cleandir: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl | 74 | cleandir: clean |
81 | cd ${.OBJDIR} && rm -f ${MUNGEDFILES} && ${MAKE} cleandir | 75 | cd ${.OBJDIR} && rm -f ${MUNGEDFILES} |
82 | 76 | ||
83 | test: | 77 | test: |
84 | # Nothing here so far... | 78 | # Nothing here so far... |
85 | 79 | ||
86 | depend: | 80 | depend: prereq |
87 | # Nothing here so far... | 81 | # Nothing here so far... |
88 | 82 | ||
89 | lint: | 83 | lint: |
@@ -94,7 +88,7 @@ tags: | |||
94 | 88 | ||
95 | distribution: | 89 | distribution: |
96 | ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \ | 90 | ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \ |
97 | ${.CURDIR}/ssleay.cnf ${DESTDIR}/etc/ssl/lib/ssleay.cnf | 91 | ${.CURDIR}/openssl.cnf ${DESTDIR}/etc/ssl/openssl.cnf |
98 | 92 | ||
99 | .include <bsd.obj.mk> | 93 | .include <bsd.obj.mk> |
100 | .include <bsd.subdir.mk> | 94 | .include <bsd.subdir.mk> |