diff options
author | cvs2svn <admin@example.com> | 1998-10-05 20:13:17 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 1998-10-05 20:13:17 +0000 |
commit | e82f18fab47b698d93971f576f962a3068132912 (patch) | |
tree | 681519717892864935c3d0533cf171098afa649a /src/lib/libssl/Makefile | |
parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
download | openbsd-SSLeay_0_9_0b.tar.gz openbsd-SSLeay_0_9_0b.tar.bz2 openbsd-SSLeay_0_9_0b.zip |
This commit was manufactured by cvs2git to create tag 'SSLeay_0_9_0b'.SSLeay_0_9_0b
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/Makefile | 12 | ||||
-rw-r--r-- | src/lib/libssl/Makefile.bsd-wrapper | 82 |
2 files changed, 94 insertions, 0 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile new file mode 100644 index 0000000000..d79795e0f3 --- /dev/null +++ b/src/lib/libssl/Makefile | |||
@@ -0,0 +1,12 @@ | |||
1 | .include <bsd.own.mk> | ||
2 | |||
3 | ECHO= /bin/echo | ||
4 | |||
5 | .if exists(${.OBJDIR}/src-patent) | ||
6 | SUBDIR= crypto-patent ssl-patent ssleay | ||
7 | .else | ||
8 | SUBDIR= crypto ssl ssleay | ||
9 | .endif | ||
10 | |||
11 | .include <bsd.subdir.mk> | ||
12 | |||
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 | |||