]>
Commit | Line | Data |
---|---|---|
310b3460 | 1 | # Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98 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 | |
5 | # modify it under the terms of the GNU Library General Public License as | |
6 | # published by the Free Software Foundation; either version 2 of the | |
7 | # License, or (at your option) any later version. | |
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 | |
12 | # Library General Public License for more details. | |
13 | ||
14 | # You should have received a copy of the GNU Library General Public | |
0c5ecdc4 UD |
15 | # License along with the GNU C Library; see the file COPYING.LIB. If not, |
16 | # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
17 | # Boston, MA 02111-1307, USA. | |
28f540f4 RM |
18 | |
19 | # | |
20 | # Sub-makefile for string portion of library. | |
21 | # | |
22 | subdir := string | |
23 | ||
478b92f0 | 24 | headers := string.h strings.h memory.h endian.h bits/endian.h \ |
4547c1a4 UD |
25 | argz.h envz.h byteswap.h bits/byteswap.h bits/string.h \ |
26 | bits/string2.h | |
28f540f4 | 27 | |
0501d603 UD |
28 | routines := strcat strchr strcmp strcoll strcpy strcspn \ |
29 | strverscmp strdup strndup \ | |
310b3460 | 30 | strerror _strerror strlen strnlen \ |
8d71c7b0 | 31 | strncat strncmp strncpy \ |
28f540f4 | 32 | strrchr strpbrk strsignal strspn strstr strtok \ |
59dd8641 | 33 | strtok_r strxfrm memchr memcmp memmove memset \ |
9a0a462c | 34 | mempcpy bcopy bzero ffs stpcpy stpncpy \ |
0501d603 | 35 | strcasecmp strncase strcasecmp_l strncase_l \ |
f4017d20 | 36 | memccpy memcpy wordcopy strsep strcasestr \ |
392d7920 | 37 | swab strfry memfrob memmem \ |
7a12c6bb | 38 | $(addprefix argz-,append count create ctsep next \ |
e4cf5070 | 39 | delete extract insert stringify \ |
d705269e | 40 | addsep replace) \ |
c84142e8 UD |
41 | envz basename \ |
42 | strcoll_l strxfrm_l | |
28f540f4 | 43 | |
61eb22d3 | 44 | tests := tester inl-tester noinl-tester testcopy test-ffs \ |
74015205 | 45 | tst-strlen stratcliff tst-svc tst-inlcall |
d705269e | 46 | distribute := memcopy.h pagecopy.h tst-svc.expect |
28f540f4 RM |
47 | |
48 | ||
49 | include ../Rules | |
59dd8641 RM |
50 | |
51 | tester-ENV = LANGUAGE=C | |
9a0a462c | 52 | inl-tester-ENV = LANGUAGE=C |
4547c1a4 | 53 | noinl-tester-ENV = LANGUAGE=C |
4547c1a4 | 54 | CFLAGS-noinl-tester.c = -fno-builtin |
9a0a462c UD |
55 | CFLAGS-tst-strlen.c = -fno-builtin |
56 | CFLAGS-stratcliff.c = -fno-builtin | |
1f205a47 | 57 | |
e7a95dc6 | 58 | ifeq ($(cross-compiling),no) |
1f205a47 UD |
59 | tests: $(objpfx)tst-svc.out |
60 | cmp tst-svc.expect $(objpfx)tst-svc.out | |
e7a95dc6 | 61 | endif |