From 459b9ce58e48cda3e0c36646c65c2c1ec402dd50 Mon Sep 17 00:00:00 2001 From: tholo <> Date: Mon, 25 Mar 1996 23:31:46 +0000 Subject: Add support for building lint(1) library --- src/lib/libc/string/Makefile.inc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/lib/libc/string') diff --git a/src/lib/libc/string/Makefile.inc b/src/lib/libc/string/Makefile.inc index 2b7ce63a63..9b7e25cd95 100644 --- a/src/lib/libc/string/Makefile.inc +++ b/src/lib/libc/string/Makefile.inc @@ -1,5 +1,5 @@ # from: @(#)Makefile.inc 5.6 (Berkeley) 3/5/91 -# $Id: Makefile.inc,v 1.1.1.1 1995/10/18 08:42:20 deraadt Exp $ +# $Id: Makefile.inc,v 1.2 1996/03/25 23:31:46 tholo Exp $ # string sources .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string @@ -95,6 +95,26 @@ strrchr.so: rindex.c -o ${.TARGET} .endif +# build .ln files for memmove, memcpy, strchr and strrchr always from +# bcopy, index, and rindex +LOBJS+= memmove.ln memcpy.ln strchr.ln strrchr.ln + +memmove.ln: bcopy.c + lint ${LINTFLAGS} -DMEMMOVE ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ + ${.CURDIR}/string/bcopy.c + +memcpy.ln: bcopy.c + lint ${LINTFLAGS} -DMEMCOPY ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ + ${.CURDIR}/string/bcopy.c + +strchr.ln: index.c + lint ${LINTFLAGS} -DSTRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ + ${.CURDIR}/string/index.c + +strrchr.ln: rindex.c + lint ${LINTFLAGS} -DSTRRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ + ${.CURDIR}/string/rindex.c + MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \ memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \ strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 strftime.3 \ -- cgit v1.2.3-55-g6feb