summaryrefslogtreecommitdiff
path: root/libc/string/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-12 21:47:35 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-12 21:47:35 +0000
commitf1daf535ed9fa4313524a73646df140bdd35ce93 (patch)
tree8b4028c01ebd81e19ec54abc49c537454bb4fbc5 /libc/string/Makefile
parentada0e0b37f93c7e5cecefaeeb61917872760a066 (diff)
Write a new strxfrm that doesn't make function calls. Uses the same logic as
before but unrolls the func calls and thereby eliminates some steps and some bytes. Now adds just 40 bytes to .text. -Erik
Diffstat (limited to 'libc/string/Makefile')
-rw-r--r--libc/string/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/libc/string/Makefile b/libc/string/Makefile
index 0d034d1d6..2b8f39fac 100644
--- a/libc/string/Makefile
+++ b/libc/string/Makefile
@@ -31,20 +31,13 @@ MOBJW= basename.o bcopy.o bzero.o dirname.o ffs.o memccpy.o memchr.o memcmp.o \
strcmp.o strcpy.o strcspn.o strdup.o strlen.o strncasecmp.o strncat.o \
strncmp.o strncpy.o strndup.o strnlen.o strpbrk.o strrchr.o strsep.o \
strspn.o strstr.o strtok.o strtok_r.o \
- __xpg_basename.o # strcoll.o strerror.o strxfrm.o
+ __xpg_basename.o # strcoll.o strerror.o
MOBJW2= wcscasecmp.o wcscat.o wcschrnul.o wcschr.o wcscmp.o wcscpy.o wcscspn.o \
wcsdup.o wcslen.o wcsncasecmp.o wcsncat.o wcsncmp.o wcsncpy.o \
wcsnlen.o wcspbrk.o wcsrchr.o wcsspn.o wcsstr.o wcstok.o wmemchr.o \
wmemcmp.o wmemcpy.o wmemmove.o wmempcpy.o wmemset.o
-MSRC=string.c
-# MOBJ=strlen.o strcat.o strcpy.o strchr.o strcmp.o strncat.o strncpy.o \
-# strncmp.o strrchr.o strdup.o strndup.o memcpy.o memccpy.o memset.o \
-# memmove.o memcmp.o memchr.o ffs.o strnlen.o strxfrm.o stpcpy.o \
-# stpncpy.o memrchr.o mempcpy.o
-MOBJ=strxfrm.o
-
# ifeq ($(HAS_LOCALE),true)
# MOBJ += strcoll.o
# endif
@@ -59,7 +52,7 @@ MOBJ2=
# CSRC=strpbrk.c strsep.c strtok.c strtok_r.c strcspn.c \
# strspn.c strcasecmp.c strncasecmp.c strerror.c bcopy.c bzero.c \
# bcmp.c sys_errlist.c dirname.c basename.c
-CSRC=strerror.c sys_errlist.c
+CSRC=strerror.c sys_errlist.c strxfrm.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(MOBJ) $(MOBJ1) $(MOBJ2) $(COBJS) $(MOBJW)