summaryrefslogtreecommitdiff
path: root/src/lib/libssl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/Makefile12
-rw-r--r--src/lib/libssl/Makefile.bsd-wrapper82
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
3ECHO= /bin/echo
4
5.if exists(${.OBJDIR}/src-patent)
6SUBDIR= crypto-patent ssl-patent ssleay
7.else
8SUBDIR= 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.
5LNDIR= /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"
12SSLCONF= OpenBSD-x86
13.else
14.if ${MACHINE_ARCH} == "alpha"
15SSLCONF= OpenBSD-alpha
16.else
17.if ${MACHINE_ARCH} == "sparc"
18SSLCONF= OpenBSD-bigendian
19.else
20##UNTESTED!
21SSLCONF= 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)
34SSL_SRC=src-patent
35.else
36SSL_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
42all: ${SSL_SRC}/crypto/md2/md2.h
43 (cd ${.OBJDIR}; ${MAKE})
44
45includes: ${SSL_SRC}/crypto/md2/md2.h
46 (cd ${.OBJDIR}; ${MAKE} includes)
47
48install:
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
58clean:
59 (cd ${.OBJDIR}; ${MAKE} clean)
60
61cleandir:
62 (cd ${.OBJDIR}; rm -f ${SSL_SRC}/crypto/md2/md2.h; ${MAKE} cleandir)
63
64test:
65 # Nothing here so far...
66
67depend:
68 # Nothing here so far...
69
70lint:
71 # Nothing here so far...
72
73tags:
74 # Nothing here so far...
75
76.include <bsd.obj.mk>
77.include <bsd.subdir.mk>
78
79
80
81
82