libc/string: Add explicit_bzero() from OpenBSD.
[dragonfly.git] / lib / libc / string / Makefile.inc
CommitLineData
984263bc 1# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
0d5acd74 2# $FreeBSD: head/lib/libc/string/Makefile.inc 247899 2013-03-06 19:59:42Z zeising $
984263bc
MD
3
4.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/string ${.CURDIR}/../libc/string
5
df5c926f
JM
6CMAPS+= ${.CURDIR}/string/Symbol.map
7
984263bc
MD
8CFLAGS+= -I${.CURDIR}/../libc/locale
9
10# machine-independent string sources
c1f23d16 11MISRCS+=bcmp.c bcopy.c bzero.c explicit_bzero.c \
12 ffs.c ffsl.c ffsll.c fls.c flsl.c flsll.c \
716024cd 13 index.c memccpy.c memchr.c memrchr.c memcmp.c \
0d5acd74
JM
14 memcpy.c memmem.c memmove.c mempcpy.c memset.c rindex.c \
15 stpcpy.c stpncpy.c strcasecmp.c \
16 strcat.c strcasestr.c strchr.c strchrnul.c strcmp.c strcoll.c strcpy.c\
17 strcspn.c strdup.c strerror.c strlcat.c strlcpy.c strlen.c strmode.c \
18 strncat.c strncmp.c strncpy.c strndup.c strnlen.c strnstr.c \
984263bc 19 strpbrk.c strrchr.c strsep.c strsignal.c strspn.c strstr.c strtok.c \
0d5acd74
JM
20 strxfrm.c swab.c wcpcpy.c wcpncpy.c wcscasecmp.c wcscat.c \
21 wcschr.c wcscmp.c wcscoll.c wcscpy.c wcscspn.c wcsdup.c \
22 wcslcat.c wcslcpy.c wcslen.c wcsncasecmp.c wcsncat.c wcsncmp.c \
23 wcsncpy.c wcsnlen.c wcspbrk.c \
716024cd
PA
24 wcsrchr.c wcsspn.c wcsstr.c wcstok.c wcswidth.c wcsxfrm.c wmemchr.c \
25 wmemcmp.c \
26 wmemcpy.c wmemmove.c wmemset.c
984263bc
MD
27
28# machine-dependent string sources
716024cd 29.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/string/Makefile.inc)
984263bc 30.include "${.CURDIR}/../libc/${MACHINE_ARCH}/string/Makefile.inc"
17030342 31.endif
984263bc
MD
32
33.if ${LIB} == "c"
2ef88a27 34MAN+= bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
716024cd 35 memcmp.3 memcpy.3 memmem.3 memmove.3 memset.3 strcasecmp.3 strcat.3 \
984263bc 36 strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strdup.3 strerror.3 \
716024cd
PA
37 string.3 strlcpy.3 strlen.3 strmode.3 strpbrk.3 strsep.3 \
38 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3 wcscoll.3 wcstok.3 \
39 wcswidth.3 wcsxfrm.3 wmemchr.3
984263bc 40
c1f23d16 41MLINKS+=bzero.3 explicit_bzero.3
716024cd
PA
42MLINKS+=ffs.3 ffsl.3 \
43 ffs.3 ffsll.3 \
44 ffs.3 fls.3 \
45 ffs.3 flsl.3 \
46 ffs.3 flsll.3
47MLINKS+=index.3 rindex.3
48MLINKS+=memchr.3 memrchr.3
2ef88a27 49MLINKS+=memcmp.3 bcmp.3
d8ee3b5d 50MLINKS+=memcpy.3 mempcpy.3
03643777
SW
51MLINKS+=strcasecmp.3 strcasecmp_l.3 \
52 strcasecmp.3 strncasecmp.3 \
0d5acd74 53 strcasecmp.3 strncasecmp_l.3
984263bc 54MLINKS+=strcat.3 strncat.3
03643777
SW
55MLINKS+=strchr.3 strchrnul.3 \
56 strchr.3 strrchr.3
984263bc 57MLINKS+=strcmp.3 strncmp.3
0d5acd74 58MLINKS+=strcoll.3 strcoll_l.3
716024cd 59MLINKS+=strcpy.3 stpcpy.3 \
d8ee3b5d 60 strcpy.3 stpncpy.3 \
716024cd
PA
61 strcpy.3 strncpy.3
62MLINKS+=strdup.3 strndup.3
63MLINKS+=strerror.3 perror.3 \
64 strerror.3 strerror_r.3 \
65 strerror.3 sys_errlist.3 \
66 strerror.3 sys_nerr.3
984263bc 67MLINKS+=strlcpy.3 strlcat.3
9b7b701b 68MLINKS+=strlen.3 strnlen.3
716024cd 69MLINKS+=strstr.3 strcasestr.3 \
03643777
SW
70 strstr.3 strcasestr_l.3 \
71 strstr.3 strnstr.3
984263bc 72MLINKS+=strtok.3 strtok_r.3
0d5acd74 73MLINKS+=strxfrm.3 strxfrm_l.3
577b750e 74MLINKS+=wcscoll.3 wcscoll_l.3
7d3de48c 75MLINKS+=wcswidth.3 wcswidth_l.3
577b750e 76MLINKS+=wcsxfrm.3 wcsxfrm_l.3
0d5acd74
JM
77MLINKS+=wmemchr.3 wcpcpy.3 \
78 wmemchr.3 wcpncpy.3 \
79 wmemchr.3 wcscasecmp.3 \
80 wmemchr.3 wcscat.3 \
716024cd
PA
81 wmemchr.3 wcschr.3 \
82 wmemchr.3 wcscmp.3 \
83 wmemchr.3 wcscpy.3 \
84 wmemchr.3 wcscspn.3 \
85 wmemchr.3 wcsdup.3 \
86 wmemchr.3 wcslcat.3 \
87 wmemchr.3 wcslcpy.3 \
88 wmemchr.3 wcslen.3 \
0d5acd74 89 wmemchr.3 wcsncasecmp.3 \
716024cd
PA
90 wmemchr.3 wcsncat.3 \
91 wmemchr.3 wcsncmp.3 \
92 wmemchr.3 wcsncpy.3 \
9b7b701b 93 wmemchr.3 wcsnlen.3 \
716024cd
PA
94 wmemchr.3 wcspbrk.3 \
95 wmemchr.3 wcsrchr.3 \
96 wmemchr.3 wcsspn.3 \
97 wmemchr.3 wcsstr.3 \
98 wmemchr.3 wmemcmp.3 \
99 wmemchr.3 wmemcpy.3 \
100 wmemchr.3 wmemmove.3 \
101 wmemchr.3 wmemset.3
984263bc 102.endif