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