summaryrefslogtreecommitdiff
path: root/src/lib/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string')
-rw-r--r--src/lib/libc/string/Makefile.inc22
1 files changed, 21 insertions, 1 deletions
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 @@
1# from: @(#)Makefile.inc 5.6 (Berkeley) 3/5/91 1# from: @(#)Makefile.inc 5.6 (Berkeley) 3/5/91
2# $Id: Makefile.inc,v 1.1.1.1 1995/10/18 08:42:20 deraadt Exp $ 2# $Id: Makefile.inc,v 1.2 1996/03/25 23:31:46 tholo Exp $
3 3
4# string sources 4# string sources
5.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string 5.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string
@@ -95,6 +95,26 @@ strrchr.so: rindex.c
95 -o ${.TARGET} 95 -o ${.TARGET}
96.endif 96.endif
97 97
98# build .ln files for memmove, memcpy, strchr and strrchr always from
99# bcopy, index, and rindex
100LOBJS+= memmove.ln memcpy.ln strchr.ln strrchr.ln
101
102memmove.ln: bcopy.c
103 lint ${LINTFLAGS} -DMEMMOVE ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
104 ${.CURDIR}/string/bcopy.c
105
106memcpy.ln: bcopy.c
107 lint ${LINTFLAGS} -DMEMCOPY ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
108 ${.CURDIR}/string/bcopy.c
109
110strchr.ln: index.c
111 lint ${LINTFLAGS} -DSTRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
112 ${.CURDIR}/string/index.c
113
114strrchr.ln: rindex.c
115 lint ${LINTFLAGS} -DSTRRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
116 ${.CURDIR}/string/rindex.c
117
98MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \ 118MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
99 memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \ 119 memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \
100 strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 strftime.3 \ 120 strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 strftime.3 \