summaryrefslogtreecommitdiff
path: root/libc/string/powerpc/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-27 07:36:19 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-27 07:36:19 +0000
commit2e6cfb475a941a7b6429c71b245f5452909437dd (patch)
tree6e633c0f8272757eec63c5c5ed35a171ba858bbf /libc/string/powerpc/Makefile
parenteee979719db7ba3f014fca22d9309bd7fbad2745 (diff)
Joakim Tjernlund writes:
Hi Erik I have had some fun trying to optimize memcpy, memset and memmove for PPC. There are only boot tested, but I don't expect any problems :) Read the comments in powerpc/string.c for more info. Patch is relative to libc/string Jocke
Diffstat (limited to 'libc/string/powerpc/Makefile')
-rw-r--r--libc/string/powerpc/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/libc/string/powerpc/Makefile b/libc/string/powerpc/Makefile
new file mode 100644
index 000000000..d99798694
--- /dev/null
+++ b/libc/string/powerpc/Makefile
@@ -0,0 +1,43 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2003 Erik Andersen <andersen@uclibc.org>
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU Library General Public License as published by the Free
+# Software Foundation; either version 2 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Library General Public License
+# along with this program; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+TOPDIR=../../../
+include $(TOPDIR)Rules.mak
+
+MSRC= string.c
+MOBJ= memcpy.o memmove.o memset.o bzero.o
+OBJS=$(MOBJ)
+
+all: $(OBJS) $(LIBC)
+
+$(LIBC): ar-target
+
+ar-target: $(OBJS)
+ $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+
+$(MOBJ): $(MSRC)
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(STRIPTOOL) -x -R .note -R .comment $*.o
+
+$(COBJS): %.o : %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $*.o
+
+clean:
+ $(RM) *.[oa] *~ core
+