summaryrefslogtreecommitdiff
path: root/lib/libc/md/Makefile.inc
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-06-03 22:20:45 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-06-03 22:20:45 +0000
commitd82cbad05922b34f5dacce3ffc4e8e5cec7a9fca (patch)
treef23b9a0bfcc15a8bdaebb103d4d2507c2139da7d /lib/libc/md/Makefile.inc
parent922fa08b4ed7e47e63768a64bf4432302b3ffd83 (diff)
Add md[245] routines in libc/md, remove md5 from libc/crypt. Add $OpenBSD$
Diffstat (limited to 'lib/libc/md/Makefile.inc')
-rw-r--r--lib/libc/md/Makefile.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/libc/md/Makefile.inc b/lib/libc/md/Makefile.inc
new file mode 100644
index 00000000000..21c4419e817
--- /dev/null
+++ b/lib/libc/md/Makefile.inc
@@ -0,0 +1,39 @@
+# $OpenBSD: Makefile.inc,v 1.1 1996/06/03 22:20:39 niklas Exp $
+
+.PATH: ${.CURDIR}/md
+
+SRCS+= md2c.c md4c.c md5c.c md2hl.c md4hl.c md5hl.c
+
+MAN+= md2.3 md4.3 md5.3
+MLINKS+=md2.3 MD2Init.3 md2.3 MD2Update.3 md2.3 MD2Final.3
+MLINKS+=md2.3 MD2End.3 md2.3 MD2File.3 md2.3 MD2Data.3
+MLINKS+=md4.3 MD4Init.3 md4.3 MD4Update.3 md4.3 MD4Final.3
+MLINKS+=md4.3 MD4End.3 md4.3 MD4File.3 md4.3 MD4Data.3
+MLINKS+=md5.3 MD5Init.3 md5.3 MD5Update.3 md5.3 MD5Final.3
+MLINKS+=md5.3 MD5End.3 md5.3 MD5File.3 md5.3 MD5Data.3
+CLEANFILES+= md[245]hl.c md[245].3
+
+all: md2.3 md4.3 md5.3
+
+md2hl.c: mdXhl.c
+ sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' $> > $@
+
+md4hl.c: mdXhl.c
+ sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' $> > $@
+
+md5hl.c: mdXhl.c
+ sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' $> > $@
+
+md2.3: mdX.3
+ sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' $> > $@
+ cat ${>:H}/md2.copyright >> $@
+
+md4.3: mdX.3
+ sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' $> > $@
+ cat ${>:H}/md4.copyright >> $@
+
+md5.3: mdX.3
+ sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' $> > $@
+ cat ${>:H}/md5.copyright >> $@
+
+beforedepend: md2hl.c md4hl.c md5hl.c