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