xref: /openbmc/u-boot/board/davinci/ea20/Makefile (revision 649a33e4)
1*649a33e4SStefano Babic#
2*649a33e4SStefano Babic# (C) Copyright 2000, 2001, 2002
3*649a33e4SStefano Babic# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*649a33e4SStefano Babic#
5*649a33e4SStefano Babic# Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
6*649a33e4SStefano Babic#
7*649a33e4SStefano Babic# See file CREDITS for list of people who contributed to this
8*649a33e4SStefano Babic# project.
9*649a33e4SStefano Babic#
10*649a33e4SStefano Babic# This program is free software; you can redistribute it and/or
11*649a33e4SStefano Babic# modify it under the terms of the GNU General Public License as
12*649a33e4SStefano Babic# published by the Free Software Foundation; either version 2 of
13*649a33e4SStefano Babic# the License, or (at your option) any later version.
14*649a33e4SStefano Babic#
15*649a33e4SStefano Babic# This program is distributed in the hope that it will be useful,
16*649a33e4SStefano Babic# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*649a33e4SStefano Babic# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*649a33e4SStefano Babic# GNU General Public License for more details.
19*649a33e4SStefano Babic#
20*649a33e4SStefano Babic# You should have received a copy of the GNU General Public License
21*649a33e4SStefano Babic# along with this program; if not, write to the Free Software
22*649a33e4SStefano Babic# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23*649a33e4SStefano Babic# MA 02111-1307 USA
24*649a33e4SStefano Babic#
25*649a33e4SStefano Babic
26*649a33e4SStefano Babicinclude $(TOPDIR)/config.mk
27*649a33e4SStefano Babic
28*649a33e4SStefano BabicLIB	= $(obj)lib$(BOARD).a
29*649a33e4SStefano Babic
30*649a33e4SStefano BabicCOBJS-y	+= ea20.o
31*649a33e4SStefano Babic
32*649a33e4SStefano BabicCOBJS   := $(COBJS-y)
33*649a33e4SStefano Babic
34*649a33e4SStefano BabicSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
35*649a33e4SStefano BabicOBJS	:= $(addprefix $(obj),$(COBJS))
36*649a33e4SStefano BabicSOBJS	:= $(addprefix $(obj),$(SOBJS))
37*649a33e4SStefano Babic
38*649a33e4SStefano Babic$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
39*649a33e4SStefano Babic	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40*649a33e4SStefano Babic
41*649a33e4SStefano Babicclean:
42*649a33e4SStefano Babic	rm -f $(SOBJS) $(OBJS)
43*649a33e4SStefano Babic
44*649a33e4SStefano Babicdistclean:	clean
45*649a33e4SStefano Babic	rm -f $(LIB) core *.bak *~ .depend
46*649a33e4SStefano Babic
47*649a33e4SStefano Babic#########################################################################
48*649a33e4SStefano Babic# This is for $(obj).depend target
49*649a33e4SStefano Babicinclude $(SRCTREE)/rules.mk
50*649a33e4SStefano Babic
51*649a33e4SStefano Babicsinclude $(obj).depend
52*649a33e4SStefano Babic
53*649a33e4SStefano Babic#########################################################################
54