xref: /openbmc/u-boot/board/esd/meesc/Makefile (revision 33b1d3f4)
1*33b1d3f4SDaniel Gorsulowski#
2*33b1d3f4SDaniel Gorsulowski# (C) Copyright 2003-2008
3*33b1d3f4SDaniel Gorsulowski# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*33b1d3f4SDaniel Gorsulowski#
5*33b1d3f4SDaniel Gorsulowski# (C) Copyright 2008
6*33b1d3f4SDaniel Gorsulowski# Stelian Pop <stelian.pop@leadtechdesign.com>
7*33b1d3f4SDaniel Gorsulowski# Lead Tech Design <www.leadtechdesign.com>
8*33b1d3f4SDaniel Gorsulowski#
9*33b1d3f4SDaniel Gorsulowski# See file CREDITS for list of people who contributed to this
10*33b1d3f4SDaniel Gorsulowski# project.
11*33b1d3f4SDaniel Gorsulowski#
12*33b1d3f4SDaniel Gorsulowski# This program is free software; you can redistribute it and/or
13*33b1d3f4SDaniel Gorsulowski# modify it under the terms of the GNU General Public License as
14*33b1d3f4SDaniel Gorsulowski# published by the Free Software Foundation; either version 2 of
15*33b1d3f4SDaniel Gorsulowski# the License, or (at your option) any later version.
16*33b1d3f4SDaniel Gorsulowski#
17*33b1d3f4SDaniel Gorsulowski# This program is distributed in the hope that it will be useful,
18*33b1d3f4SDaniel Gorsulowski# but WITHOUT ANY WARRANTY; without even the implied warranty of
19*33b1d3f4SDaniel Gorsulowski# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20*33b1d3f4SDaniel Gorsulowski# GNU General Public License for more details.
21*33b1d3f4SDaniel Gorsulowski#
22*33b1d3f4SDaniel Gorsulowski# You should have received a copy of the GNU General Public License
23*33b1d3f4SDaniel Gorsulowski# along with this program; if not, write to the Free Software
24*33b1d3f4SDaniel Gorsulowski# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25*33b1d3f4SDaniel Gorsulowski# MA 02111-1307 USA
26*33b1d3f4SDaniel Gorsulowski#
27*33b1d3f4SDaniel Gorsulowski
28*33b1d3f4SDaniel Gorsulowskiinclude $(TOPDIR)/config.mk
29*33b1d3f4SDaniel Gorsulowski
30*33b1d3f4SDaniel GorsulowskiLIB	= $(obj)lib$(BOARD).a
31*33b1d3f4SDaniel Gorsulowski
32*33b1d3f4SDaniel GorsulowskiCOBJS-y	+= $(BOARD).o
33*33b1d3f4SDaniel GorsulowskiCOBJS-$(CONFIG_HAS_DATAFLASH) += partition.o
34*33b1d3f4SDaniel Gorsulowski
35*33b1d3f4SDaniel GorsulowskiSRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
36*33b1d3f4SDaniel GorsulowskiOBJS	:= $(addprefix $(obj),$(COBJS-y))
37*33b1d3f4SDaniel GorsulowskiSOBJS	:= $(addprefix $(obj),$(SOBJS))
38*33b1d3f4SDaniel Gorsulowski
39*33b1d3f4SDaniel Gorsulowski$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
40*33b1d3f4SDaniel Gorsulowski	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
41*33b1d3f4SDaniel Gorsulowski
42*33b1d3f4SDaniel Gorsulowskiclean:
43*33b1d3f4SDaniel Gorsulowski	rm -f $(SOBJS) $(OBJS)
44*33b1d3f4SDaniel Gorsulowski
45*33b1d3f4SDaniel Gorsulowskidistclean:	clean
46*33b1d3f4SDaniel Gorsulowski	rm -f $(LIB) core *.bak $(obj).depend
47*33b1d3f4SDaniel Gorsulowski
48*33b1d3f4SDaniel Gorsulowski#########################################################################
49*33b1d3f4SDaniel Gorsulowski
50*33b1d3f4SDaniel Gorsulowski# defines $(obj).depend target
51*33b1d3f4SDaniel Gorsulowskiinclude $(SRCTREE)/rules.mk
52*33b1d3f4SDaniel Gorsulowski
53*33b1d3f4SDaniel Gorsulowskisinclude $(obj).depend
54*33b1d3f4SDaniel Gorsulowski
55*33b1d3f4SDaniel Gorsulowski#########################################################################
56