diff options
Diffstat (limited to 'src/lib/libssl/Makefile.bsd-wrapper')
-rw-r--r-- | src/lib/libssl/Makefile.bsd-wrapper | 95 |
1 files changed, 95 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..05596a4641 --- /dev/null +++ b/src/lib/libssl/Makefile.bsd-wrapper | |||
@@ -0,0 +1,95 @@ | |||
1 | # Build wrapper for SSLeay. | ||
2 | |||
3 | # Our lndir is hacked; specify a full path to avoid potential conflicts | ||
4 | # with the one installed with X11. | ||
5 | LNDIR= /usr/bin/lndir | ||
6 | |||
7 | |||
8 | # Figure out what flag we use to SSLeay's configure. This | ||
9 | # needs to be tested on all architectures. | ||
10 | |||
11 | .if ${MACHINE_ARCH} == "i386" | ||
12 | SSLCONF= OpenBSD-x86 | ||
13 | .else | ||
14 | .if ${MACHINE_ARCH} == "pmax" | ||
15 | SSLCONF= OpenBSD-pmax | ||
16 | .else | ||
17 | .if ${MACHINE_ARCH} == "arc" | ||
18 | SSLCONF= OpenBSD-arc | ||
19 | .else | ||
20 | .if ${MACHINE_ARCH} == "alpha" | ||
21 | SSLCONF= OpenBSD-alpha | ||
22 | .else | ||
23 | .if ${MACHINE_ARCH} == "sparc" | ||
24 | SSLCONF= OpenBSD-bigendian | ||
25 | .else | ||
26 | ##UNTESTED! | ||
27 | SSLCONF= OpenBSD-bigendian | ||
28 | .endif | ||
29 | .endif | ||
30 | .endif | ||
31 | .endif | ||
32 | .endif | ||
33 | |||
34 | |||
35 | MUNGEDFILES = ${.OBJDIR}/${SSL_SRC}/crypto/bf/bf_locl.h \ | ||
36 | ${.OBJDIR}/${SSL_SRC}/crypto/bn/bn.h \ | ||
37 | ${.OBJDIR}/${SSL_SRC}/crypto/des/des.h \ | ||
38 | ${.OBJDIR}/${SSL_SRC}/crypto/des/des_locl.h \ | ||
39 | ${.OBJDIR}/${SSL_SRC}/crypto/idea/idea.h \ | ||
40 | ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h \ | ||
41 | ${.OBJDIR}/${SSL_SRC}/crypto/rc2/rc2.h \ | ||
42 | ${.OBJDIR}/${SSL_SRC}/crypto/rc4/rc4.h \ | ||
43 | ${.OBJDIR}/${SSL_SRC}/crypto/rc4/rc4_locl.h | ||
44 | |||
45 | |||
46 | .include <bsd.own.mk> | ||
47 | |||
48 | .if exists(src-patent) | ||
49 | SSL_SRC=src-patent | ||
50 | .else | ||
51 | SSL_SRC=src | ||
52 | .endif | ||
53 | |||
54 | all: ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h | ||
55 | (cd ${.OBJDIR}; ${MAKE}) | ||
56 | |||
57 | includes: ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h | ||
58 | (cd ${.OBJDIR}; ${MAKE} includes) | ||
59 | |||
60 | install: | ||
61 | (cd ${.OBJDIR}; ${MAKE} install) | ||
62 | |||
63 | ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h : ${.OBJDIR}/${SSL_SRC}/Makefile.ssl | ||
64 | (cd ${.OBJDIR}/${SSL_SRC}; /usr/bin/perl Configure ${SSLCONF}) | ||
65 | |||
66 | .if !exists(${.OBJDIR}/${SSL_SRC}/Makefile.ssl) | ||
67 | ${.OBJDIR}/${SSL_SRC}/Makefile.ssl: ${.CURDIR}/${SSL_SRC}/Makefile.ssl | ||
68 | (${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}) | ||
69 | .endif | ||
70 | |||
71 | clean: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl | ||
72 | (cd ${.OBJDIR}; ${MAKE} clean) | ||
73 | |||
74 | cleandir: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl | ||
75 | (cd ${.OBJDIR}; rm -f ${MUNGEDFILES}; ${MAKE} cleandir) | ||
76 | |||
77 | test: | ||
78 | # Nothing here so far... | ||
79 | |||
80 | depend: | ||
81 | # Nothing here so far... | ||
82 | |||
83 | lint: | ||
84 | # Nothing here so far... | ||
85 | |||
86 | tags: | ||
87 | # Nothing here so far... | ||
88 | |||
89 | .include <bsd.obj.mk> | ||
90 | .include <bsd.subdir.mk> | ||
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||