diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-21 02:18:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-21 02:18:29 +0000 |
commit | f5c0ac3d4499a11f4581c1b4ff16cef7d8cf4c0b (patch) | |
tree | 4f7ce150130560ccff718076cf102fb4d114752c /libc/string/x86_64/Makefile | |
parent | 37016e09de57c7145d7dd29cd1166f21f150d2cb (diff) |
merge x86_64 optimized string support
Diffstat (limited to 'libc/string/x86_64/Makefile')
-rw-r--r-- | libc/string/x86_64/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libc/string/x86_64/Makefile b/libc/string/x86_64/Makefile new file mode 100644 index 000000000..2215a6025 --- /dev/null +++ b/libc/string/x86_64/Makefile @@ -0,0 +1,31 @@ +# Makefile for uClibc +# +# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org> +# +# Licensed under the GNU Library General Public License version 2 or later. +# See the COPYING.LIB file in the toplevel for more information. + +TOPDIR=../../../ +include $(TOPDIR)Rules.mak + +CSRCS = $(wildcard *.c) +COBJS = $(patsubst %.c,%.o,$(CSRCS)) + +SSRCS = $(wildcard *.S) +SOBJS = $(patsubst %.S,%.o,$(SSRCS)) + +OBJS = $(COBJS) $(SOBJS) + +OBJ_LIST = ../../obj.string.$(TARGET_ARCH) + +all: $(OBJ_LIST) + +$(OBJ_LIST): $(OBJS) + echo $(patsubst %, string/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + +$(COBJS): %.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ + $(STRIPTOOL) -x -R .note -R .comment $*.o + +clean: + $(RM) *.[oa] *~ core |