summaryrefslogtreecommitdiff
path: root/src/lib/libssl/Makefile.bsd-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/Makefile.bsd-wrapper')
-rw-r--r--src/lib/libssl/Makefile.bsd-wrapper100
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.
6LNDIR= /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"
13SSLCONF= OpenBSD-x86
14.else
15.if ${MACHINE_ARCH} == "pmax"
16SSLCONF= OpenBSD-pmax
17.else
18.if ${MACHINE_ARCH} == "arc"
19SSLCONF= OpenBSD-arc
20.else
21.if ${MACHINE_ARCH} == "alpha"
22SSLCONF= OpenBSD-alpha
23.else
24.if ${MACHINE_ARCH} == "sparc"
25SSLCONF= OpenBSD-bigendian
26.else
27.if ${MACHINE_ARCH} == "m88k"
28SSLCONF= OpenBSD-bigendian
29.else
30##UNTESTED!
31SSLCONF= OpenBSD-bigendian
32.endif
33.endif
34.endif
35.endif
36.endif
37.endif
38
39MUNGEDFILES = ${.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)
53SSL_SRC=src-patent
54.else
55SSL_SRC=src
56.endif
57
58all: prereq
59 cd ${.OBJDIR} && ${MAKE}
60
61includes: prereq
62 cd ${.OBJDIR} && ${MAKE} includes
63
64prereq: ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h
65
66install:
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
77clean: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl
78 cd ${.OBJDIR} && ${MAKE} clean
79
80cleandir: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl
81 cd ${.OBJDIR} && rm -f ${MUNGEDFILES} && ${MAKE} cleandir
82
83test:
84 # Nothing here so far...
85
86depend:
87 # Nothing here so far...
88
89lint:
90 # Nothing here so far...
91
92tags:
93 # Nothing here so far...
94
95distribution:
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>