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