summaryrefslogtreecommitdiff
path: root/src/lib/libssl/Makefile.bsd-wrapper
blob: b8189988cd189ec1e837a9664c5df50e67fffeb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Build wrapper for SSLeay.

# Our lndir is hacked; specify a full path to avoid potential conflicts
# with the one installed with X11.
LNDIR=          /usr/bin/lndir


# Figure out what flag we use to SSLeay's configure. This
# needs to be tested on all architectures.

.if ${MACHINE_ARCH} == "i386"
SSLCONF=	OpenBSD-x86
.else
.if ${MACHINE_ARCH} == "pmax"
SSLCONF=	OpenBSD-pmax
.else
.if ${MACHINE_ARCH} == "arc"
SSLCONF=	OpenBSD-arc
.else
.if ${MACHINE_ARCH} == "alpha"
SSLCONF=	OpenBSD-alpha
.else
.if ${MACHINE_ARCH} == "sparc"
SSLCONF=	OpenBSD-bigendian
.else
##UNTESTED!	
SSLCONF=	OpenBSD-bigendian
.endif
.endif
.endif
.endif
.endif


.include <bsd.own.mk>

.if exists(src-patent)
SSL_SRC=src-patent
.else
SSL_SRC=src
.endif 	  

all: 	${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h 
	(cd ${.OBJDIR}; ${MAKE})

includes: ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h
	(cd ${.OBJDIR}; ${MAKE} includes)

install:
	(cd ${.OBJDIR}; ${MAKE} install)

${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h : ${.OBJDIR}/${SSL_SRC}/Makefile.ssl
	(cd ${.OBJDIR}/${SSL_SRC}; /usr/bin/perl Configure ${SSLCONF}) 

${.OBJDIR}/${SSL_SRC}/Makefile.ssl: ${.CURDIR}/${SSL_SRC}/Makefile.ssl
	(${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})

clean:	${.OBJDIR}/${SSL_SRC}/Makefile.ssl
	(cd ${.OBJDIR}; ${MAKE} clean)

cleandir: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl
	(cd ${.OBJDIR}; rm -f ${SSL_SRC}/crypto/md2/md2.h; ${MAKE} cleandir)

test:
	# Nothing here so far...

depend:
	# Nothing here so far...

lint:
	# Nothing here so far...

tags:
	# Nothing here so far...

.include <bsd.obj.mk>
.include <bsd.subdir.mk>