summaryrefslogtreecommitdiffstats
path: root/arch/ppc/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:28 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:28 +0200
commitceddda143b55019ed6be8a331b5ed218a1c64d3b (patch)
treeda946924eb3e5fbdf86367e0d45deaaf8e931885 /arch/ppc/Makefile
parent2e8ca97d8d56683c40c2fa6c0c1bf3699c9cddb5 (diff)
downloadbarebox-ceddda143b55019ed6be8a331b5ed218a1c64d3b.tar.gz
barebox-ceddda143b55019ed6be8a331b5ed218a1c64d3b.tar.xz
svn_rev_154
move lib_ppc to arch/ppc
Diffstat (limited to 'arch/ppc/Makefile')
-rw-r--r--arch/ppc/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
new file mode 100644
index 0000000000..2ba034f1ee
--- /dev/null
+++ b/arch/ppc/Makefile
@@ -0,0 +1,46 @@
+#
+# (C) Copyright 2000-2006
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU 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 General Public License for more details.
+#
+# You should have received a copy of the GNU 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
+#
+
+include $(TOPDIR)/config.mk
+
+LIB = $(obj)lib$(ARCH).a
+
+SOBJS = ppcstring.o ticks.o
+
+COBJS = board.o \
+ bat_rw.o cache.o extable.o kgdb.o time.o interrupts.o
+
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
+
+$(LIB): $(obj).depend $(OBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS)
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################