diff options
author | ryker <> | 1998-10-05 20:13:16 +0000 |
---|---|---|
committer | ryker <> | 1998-10-05 20:13:16 +0000 |
commit | 9e43e2ac1373d5be5c6500c1bc3b1dd6ee9584b4 (patch) | |
tree | 51ff319f3510104698e541954d10ad98f9125f36 /src/lib/libssl/Makefile.bsd-wrapper | |
parent | 9e77c62555877f9a64805c49d0dcd7dbfbb40f4e (diff) | |
download | openbsd-9e43e2ac1373d5be5c6500c1bc3b1dd6ee9584b4.tar.gz openbsd-9e43e2ac1373d5be5c6500c1bc3b1dd6ee9584b4.tar.bz2 openbsd-9e43e2ac1373d5be5c6500c1bc3b1dd6ee9584b4.zip |
Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD build
functionality for shared libs.
Note that routines such as sslv2_init and friends that use RSA will
not work due to lack of RSA in this library.
Needs documentation and help from ports for easy upgrade to full
functionality where legally possible.
Diffstat (limited to 'src/lib/libssl/Makefile.bsd-wrapper')
-rw-r--r-- | src/lib/libssl/Makefile.bsd-wrapper | 82 |
1 files changed, 82 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..20fc0cec1e --- /dev/null +++ b/src/lib/libssl/Makefile.bsd-wrapper | |||
@@ -0,0 +1,82 @@ | |||
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} == "alpha" | ||
15 | SSLCONF= OpenBSD-alpha | ||
16 | .else | ||
17 | .if ${MACHINE_ARCH} == "sparc" | ||
18 | SSLCONF= OpenBSD-bigendian | ||
19 | .else | ||
20 | ##UNTESTED! | ||
21 | SSLCONF= OpenBSD-bigendian | ||
22 | .endif | ||
23 | .endif | ||
24 | .endif | ||
25 | |||
26 | |||
27 | .include <bsd.own.mk> | ||
28 | |||
29 | #CLEANFILES = crypto/bf/bf_locl.h crypto/bn/bn.h crypto/des/des.h \ | ||
30 | # crypto/des/des_locl.h crypto/rc2/rc2.h crypto/md2/md2.h \ | ||
31 | # crypto/rc4/rc4.h crypto/rc4/rc4_locl.h crypto/idea/idea.h | ||
32 | |||
33 | .if exists(src-patent) | ||
34 | SSL_SRC=src-patent | ||
35 | .else | ||
36 | SSL_SRC=src | ||
37 | .endif | ||
38 | |||
39 | .BEGIN: | ||
40 | @if [ ${.CURDIR} != ${.OBJDIR} ]; then ${LNDIR} -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper -e Makefile.ssl ${.CURDIR}; fi | ||
41 | |||
42 | all: ${SSL_SRC}/crypto/md2/md2.h | ||
43 | (cd ${.OBJDIR}; ${MAKE}) | ||
44 | |||
45 | includes: ${SSL_SRC}/crypto/md2/md2.h | ||
46 | (cd ${.OBJDIR}; ${MAKE} includes) | ||
47 | |||
48 | install: | ||
49 | (cd ${.OBJDIR}; ${MAKE} install) | ||
50 | |||
51 | ${SSL_SRC}/crypto/md2/md2.h : ${SSL_SRC}/Makefile.ssl | ||
52 | (cd ${.OBJDIR}/${SSL_SRC}; /usr/bin/perl Configure ${SSLCONF}) | ||
53 | |||
54 | ${SSL_SRC}/Makefile.ssl: ${.CURDIR}/${SSL_SRC}/Makefile.ssl | ||
55 | (cp ${.CURDIR}/${SSL_SRC}/Makefile.ssl ${.OBJDIR}/${SSL_SRC}) | ||
56 | |||
57 | |||
58 | clean: | ||
59 | (cd ${.OBJDIR}; ${MAKE} clean) | ||
60 | |||
61 | cleandir: | ||
62 | (cd ${.OBJDIR}; rm -f ${SSL_SRC}/crypto/md2/md2.h; ${MAKE} cleandir) | ||
63 | |||
64 | test: | ||
65 | # Nothing here so far... | ||
66 | |||
67 | depend: | ||
68 | # Nothing here so far... | ||
69 | |||
70 | lint: | ||
71 | # Nothing here so far... | ||
72 | |||
73 | tags: | ||
74 | # Nothing here so far... | ||
75 | |||
76 | .include <bsd.obj.mk> | ||
77 | .include <bsd.subdir.mk> | ||
78 | |||
79 | |||
80 | |||
81 | |||
82 | |||