From bec90733b9de6e7d75b8bda19b3f0a7117e6b78d Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 2 Sep 2004 14:39:38 +0000 Subject: Add a couple of mips-specific string funcs. Port the generic optimized string funcs from glibc, with some tweaks to cut their size a little. The main change is making memmove call memcpy for forward copying to trim redundant code. Make use of both the generic and arch-specific speed-optimized string funcs configurable. Arch-specific take precedence over generic, and generic takes precedence over basic size-optimized uClibc funcs. --- libc/string/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'libc/string/Makefile') diff --git a/libc/string/Makefile b/libc/string/Makefile index 37a57cc26..02c86d6aa 100644 --- a/libc/string/Makefile +++ b/libc/string/Makefile @@ -20,10 +20,18 @@ TOPDIR=../../ include $(TOPDIR)Rules.mak DIRS= + +ifeq ($(UCLIBC_HAS_STRING_GENERIC_OPT),y) +DIRS += generic +endif + +ifeq ($(UCLIBC_HAS_STRING_ARCH_OPT),y) ifeq ($(TARGET_ARCH),$(wildcard $(TARGET_ARCH))) -DIRS = $(TARGET_ARCH) +DIRS += $(TARGET_ARCH) endif -ALL_SUBDIRS = arm frv i386 sh64 powerpc +endif + +ALL_SUBDIRS = generic arm frv i386 sh64 powerpc mips MSRC= wstring.c MOBJ= basename.o bcopy.o bzero.o dirname.o ffs.o memccpy.o memchr.o memcmp.o \ -- cgit v1.2.3