1 # from: @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
2 # $NetBSD: Makefile.inc,v 1.73 2009/07/21 13:18:43 joerg Exp $
5 .PATH: ${ARCHDIR}/string ${.CURDIR}/string
7 SRCS+= bm.c stpcpy.c stpncpy.c \
8 strcasecmp.c strncasecmp.c strcasestr.c strcoll.c strdup.c \
9 strerror.c strlcat.c strlcpy.c strnlen.c \
10 strmode.c strsignal.c strtok.c \
11 strtok_r.c strxfrm.c __strsignal.c strerror_r.c strndup.c \
15 SRCS+= wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c \
16 wcslen.c wcsncat.c wcscasecmp.c wcsdup.c wcsncasecmp.c \
17 wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c wcsstr.c wcstok.c \
18 wcswcs.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
19 CPPFLAGS.wcscmp.c+= -I${LIBCDIR}/locale
20 CPPFLAGS.wcsncmp.c+= -I${LIBCDIR}/locale
21 CPPFLAGS.wmemcmp.c+= -I${LIBCDIR}/locale
23 # namespace protection wrappers
24 SRCS+= _strlcat.c _strlcpy.c _strerror_r.c
26 # machine-dependent net sources
27 # m-d Makefile.inc must include sources for:
28 # bcmp() bcopy() bzero() ffs() memchr() memcmp() memset()
29 # strcat() strcmp() strcpy() strcspn() strlen()
30 # strncat() strncmp() strncpy() strpbrk() strsep()
31 # strspn() strstr() swav()
32 # m-d Makefile.inc may include sources for:
33 # memcpy() memmem() memmove() strchr() strrchr()
35 .include "${ARCHDIR}/string/Makefile.inc"
37 # if no m-d versions of memccpy(), memcpy(), memmove(), strchr(), or strrchr()
38 # then use the machine independent versions.
40 .if empty(SRCS:Mmemccpy.S)
43 .if empty(SRCS:Mmemcpy.S)
46 .if empty(SRCS:Mmemmem.S)
49 .if empty(SRCS:Mmemmove.S)
52 .if empty(SRCS:Mstrchr.S)
55 .if empty(SRCS:Mstrrchr.S)
58 .if empty(SRCS:Mpopcount32.S)
61 .if empty(SRCS:Mpopcount64.S)
65 MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 \
66 memccpy.3 memchr.3 memcmp.3 memcpy.3 memmem.3 memmove.3 memset.3 \
68 rindex.3 strcasecmp.3 strcat.3 strchr.3 strcmp.3 strcoll.3 \
69 strcpy.3 strcspn.3 strdup.3 strerror.3 string.3 strings.3 strlcpy.3 \
70 strlen.3 strmode.3 strpbrk.3 strrchr.3 strsep.3 \
71 strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 \
72 swab.3 wcstok.3 wcswidth.3 wmemchr.3 wcsdup.3 wcscasecmp.3
74 MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3
75 MLINKS+=popcount.3 popcountl.3
76 MLINKS+=popcount.3 popcountll.3
77 MLINKS+=popcount.3 popcount32.3
78 MLINKS+=popcount.3 popcount64.3
79 MLINKS+=strcasecmp.3 strncasecmp.3
80 MLINKS+=strcat.3 strncat.3
81 MLINKS+=strcmp.3 strncmp.3
82 MLINKS+=strcpy.3 strncpy.3 strcpy.3 stpcpy.3 strcpy.3 stpncpy.3
83 MLINKS+=strlcpy.3 strlcat.3
84 MLINKS+=strlen.3 strnlen.3
85 MLINKS+=strstr.3 strcasestr.3
86 MLINKS+=memchr.3 memrchr.3
87 MLINKS+=strtok.3 strtok_r.3
88 MLINKS+=strerror.3 strerror_r.3 strerror.3 perror.3 \
89 strerror.3 sys_errlist.3 strerror.3 sys_nerr.3
90 MLINKS+=strdup.3 strndup.3
91 MLINKS+=strsep.3 stresep.3
92 MLINKS+=wmemchr.3 wmemcmp.3 wmemchr.3 wmemcpy.3 \
93 wmemchr.3 wmemmove.3 wmemchr.3 wmemset.3 \
94 wmemchr.3 wcscat.3 wmemchr.3 wcschr.3 \
95 wmemchr.3 wcscmp.3 wmemchr.3 wcscpy.3 \
96 wmemchr.3 wcscspn.3 wmemchr.3 wcslcat.3 \
97 wmemchr.3 wcslcpy.3 wmemchr.3 wcslen.3 \
98 wmemchr.3 wcsncat.3 wmemchr.3 wcsncmp.3 \
99 wmemchr.3 wcsncpy.3 wmemchr.3 wcspbrk.3 \
100 wmemchr.3 wcsrchr.3 wmemchr.3 wcsspn.3 \
101 wmemchr.3 wcsstr.3 wmemchr.3 wcswcs.3
102 MLINKS+=wcscasecmp.3 wcsncasecmp.3