]>
Commit | Line | Data |
---|---|---|
b168057a | 1 | # Copyright (C) 1991-2015 Free Software Foundation, Inc. |
28f540f4 RM |
2 | # This file is part of the GNU C Library. |
3 | ||
4 | # The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
5 | # modify it under the terms of the GNU Lesser General Public |
6 | # License as published by the Free Software Foundation; either | |
7 | # version 2.1 of the License, or (at your option) any later version. | |
28f540f4 RM |
8 | |
9 | # The GNU C Library is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 12 | # Lesser General Public License for more details. |
28f540f4 | 13 | |
41bdb6e2 | 14 | # You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
15 | # License along with the GNU C Library; if not, see |
16 | # <http://www.gnu.org/licenses/>. | |
28f540f4 RM |
17 | |
18 | # | |
19 | # Sub-makefile for string portion of library. | |
20 | # | |
21 | subdir := string | |
22 | ||
a5f891ac JM |
23 | include ../Makeconfig |
24 | ||
478b92f0 | 25 | headers := string.h strings.h memory.h endian.h bits/endian.h \ |
f8887d0a L |
26 | argz.h envz.h byteswap.h bits/byteswap.h bits/byteswap-16.h \ |
27 | bits/string.h bits/string2.h bits/string3.h | |
28f540f4 | 28 | |
0501d603 UD |
29 | routines := strcat strchr strcmp strcoll strcpy strcspn \ |
30 | strverscmp strdup strndup \ | |
310b3460 | 31 | strerror _strerror strlen strnlen \ |
8d71c7b0 | 32 | strncat strncmp strncpy \ |
28f540f4 | 33 | strrchr strpbrk strsignal strspn strstr strtok \ |
59dd8641 | 34 | strtok_r strxfrm memchr memcmp memmove memset \ |
bdd421cc | 35 | mempcpy bcopy bzero ffs ffsll stpcpy stpncpy \ |
0501d603 | 36 | strcasecmp strncase strcasecmp_l strncase_l \ |
f4017d20 | 37 | memccpy memcpy wordcopy strsep strcasestr \ |
c4563d2d | 38 | swab strfry memfrob memmem rawmemchr strchrnul \ |
7a12c6bb | 39 | $(addprefix argz-,append count create ctsep next \ |
dbc676d4 | 40 | delete extract insert stringify \ |
d705269e | 41 | addsep replace) \ |
c84142e8 | 42 | envz basename \ |
61645263 | 43 | strcoll_l strxfrm_l string-inlines memrchr \ |
4a44ce79 | 44 | xpg-strerror strerror_l |
28f540f4 | 45 | |
762011fe | 46 | strop-tests := memchr memcmp memcpy memmove mempcpy memset memccpy \ |
cd94eda9 | 47 | stpcpy stpncpy strcat strchr strcmp strcpy strcspn \ |
dbc676d4 | 48 | strlen strncmp strncpy strpbrk strrchr strspn memmem \ |
6f0eec67 | 49 | strstr strcasestr strnlen strcasecmp strncasecmp \ |
4660856c | 50 | strncat rawmemchr strchrnul bcopy bzero memrchr |
61eb22d3 | 51 | tests := tester inl-tester noinl-tester testcopy test-ffs \ |
9c3b1ceb | 52 | tst-strlen stratcliff tst-svc tst-inlcall \ |
b716cb4e | 53 | bug-strncat1 bug-strspn1 bug-strpbrk1 tst-bswap \ |
806bc96a | 54 | tst-strtok tst-strxfrm bug-strcoll1 tst-strfry \ |
9009e8f8 | 55 | bug-strtok1 $(addprefix test-,$(strop-tests)) \ |
67a67b95 | 56 | bug-envz1 tst-strxfrm2 tst-endian tst-svc2 \ |
03759f47 | 57 | tst-strtok_r |
28f540f4 | 58 | |
303e567a SP |
59 | xtests = tst-strcoll-overflow |
60 | ||
f214606a JM |
61 | ifeq ($(run-built-tests),yes) |
62 | tests-special += $(objpfx)tst-svc-cmp.out | |
63 | endif | |
64 | ||
28f540f4 | 65 | include ../Rules |
59dd8641 | 66 | |
359157a5 | 67 | CFLAGS-inl-tester.c = -fno-builtin |
4547c1a4 | 68 | CFLAGS-noinl-tester.c = -fno-builtin |
9a0a462c UD |
69 | CFLAGS-tst-strlen.c = -fno-builtin |
70 | CFLAGS-stratcliff.c = -fno-builtin | |
b301e2eb | 71 | CFLAGS-test-ffs.c = -fno-builtin |
359157a5 | 72 | CFLAGS-tst-inlcall.c = -fno-builtin |
1f205a47 | 73 | |
03ac099f | 74 | ifeq ($(run-built-tests),yes) |
6e89caf1 | 75 | $(objpfx)tst-svc-cmp.out: tst-svc.expect $(objpfx)tst-svc.out |
f0881698 JM |
76 | cmp $^ > $@; \ |
77 | $(evaluate-test) | |
e7a95dc6 | 78 | endif |