summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeck <>1998-10-19 21:47:11 +0000
committerbeck <>1998-10-19 21:47:11 +0000
commitdf9e03b65bc39a07be444ff3049491d54043f24c (patch)
treeacd3557e1245d95bfdb1849164906496ee381aa2
parentdfc8dc699c7537a774920541d1517de4a3d01502 (diff)
downloadopenbsd-df9e03b65bc39a07be444ff3049491d54043f24c.tar.gz
openbsd-df9e03b65bc39a07be444ff3049491d54043f24c.tar.bz2
openbsd-df9e03b65bc39a07be444ff3049491d54043f24c.zip
Fix so to not require a make obj - Fix cleandir target to remove the headers
Configure munges from OBJDIR.
-rw-r--r--src/lib/libssl/Makefile.bsd-wrapper15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/libssl/Makefile.bsd-wrapper b/src/lib/libssl/Makefile.bsd-wrapper
index b8189988cd..05596a4641 100644
--- a/src/lib/libssl/Makefile.bsd-wrapper
+++ b/src/lib/libssl/Makefile.bsd-wrapper
@@ -32,6 +32,17 @@ SSLCONF= OpenBSD-bigendian
32.endif 32.endif
33 33
34 34
35MUNGEDFILES = ${.OBJDIR}/${SSL_SRC}/crypto/bf/bf_locl.h \
36 ${.OBJDIR}/${SSL_SRC}/crypto/bn/bn.h \
37 ${.OBJDIR}/${SSL_SRC}/crypto/des/des.h \
38 ${.OBJDIR}/${SSL_SRC}/crypto/des/des_locl.h \
39 ${.OBJDIR}/${SSL_SRC}/crypto/idea/idea.h \
40 ${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h \
41 ${.OBJDIR}/${SSL_SRC}/crypto/rc2/rc2.h \
42 ${.OBJDIR}/${SSL_SRC}/crypto/rc4/rc4.h \
43 ${.OBJDIR}/${SSL_SRC}/crypto/rc4/rc4_locl.h
44
45
35.include <bsd.own.mk> 46.include <bsd.own.mk>
36 47
37.if exists(src-patent) 48.if exists(src-patent)
@@ -52,14 +63,16 @@ install:
52${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h : ${.OBJDIR}/${SSL_SRC}/Makefile.ssl 63${.OBJDIR}/${SSL_SRC}/crypto/md2/md2.h : ${.OBJDIR}/${SSL_SRC}/Makefile.ssl
53 (cd ${.OBJDIR}/${SSL_SRC}; /usr/bin/perl Configure ${SSLCONF}) 64 (cd ${.OBJDIR}/${SSL_SRC}; /usr/bin/perl Configure ${SSLCONF})
54 65
66.if !exists(${.OBJDIR}/${SSL_SRC}/Makefile.ssl)
55${.OBJDIR}/${SSL_SRC}/Makefile.ssl: ${.CURDIR}/${SSL_SRC}/Makefile.ssl 67${.OBJDIR}/${SSL_SRC}/Makefile.ssl: ${.CURDIR}/${SSL_SRC}/Makefile.ssl
56 (${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}) 68 (${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})
69.endif
57 70
58clean: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl 71clean: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl
59 (cd ${.OBJDIR}; ${MAKE} clean) 72 (cd ${.OBJDIR}; ${MAKE} clean)
60 73
61cleandir: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl 74cleandir: ${.OBJDIR}/${SSL_SRC}/Makefile.ssl
62 (cd ${.OBJDIR}; rm -f ${SSL_SRC}/crypto/md2/md2.h; ${MAKE} cleandir) 75 (cd ${.OBJDIR}; rm -f ${MUNGEDFILES}; ${MAKE} cleandir)
63 76
64test: 77test:
65 # Nothing here so far... 78 # Nothing here so far...