2 # Cirrus Logic EP93xx CPU-specific Makefile
4 # Copyright (C) 2009 Matthias Kaehlcke <matthias@kaehlcke.net>
6 # Copyright (C) 2004, 2005
7 # Cory T. Tusar, Videon Central, Inc., <ctusar@videon-central.com>
10 # Dominic Rath <Dominic.Rath@gmx.de>
12 # Based on an original Makefile, which is
14 # (C) Copyright 2000, 2001, 2002
15 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
17 # See file CREDITS for list of people who contributed to this project.
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
24 # This program is distributed in the hope that it will be useful, but
25 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
26 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
29 # You should have received a copy of the GNU General Public License along
30 # with this program; if not, write to the Free Software Foundation, Inc.,
31 # 675 Mass Ave, Cambridge, MA 02139, USA.
33 include $(TOPDIR)/config.mk
35 LIB = $(obj)lib$(SOC).a
37 COBJS = cpu.o led.o speed.o timer.o
38 SOBJS = lowlevel_init.o
40 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
41 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
43 all: $(obj).depend $(LIB)
46 $(AR) $(ARFLAGS) $@ $(OBJS)
48 #########################################################################
50 # defines $(obj).depend target
51 include $(SRCTREE)/rules.mk
53 sinclude $(obj).depend
55 #########################################################################