xref: /openbmc/u-boot/board/mpr2/Makefile (revision 3313e0e2)
1*3313e0e2SMark Jonas#
2*3313e0e2SMark Jonas# Copyright (C) 2007
3*3313e0e2SMark Jonas# Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
4*3313e0e2SMark Jonas#
5*3313e0e2SMark Jonas# Copyright (C) 2007
6*3313e0e2SMark Jonas# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7*3313e0e2SMark Jonas#
8*3313e0e2SMark Jonas# Copyright (C) 2007
9*3313e0e2SMark Jonas# Kenati Technologies, Inc.
10*3313e0e2SMark Jonas#
11*3313e0e2SMark Jonas# (C) Copyright 2008
12*3313e0e2SMark Jonas# Mark Jonas <mark.jonas@de.bosch.com>
13*3313e0e2SMark Jonas#
14*3313e0e2SMark Jonas# board/mpr2/Makefile
15*3313e0e2SMark Jonas#
16*3313e0e2SMark Jonas# This program is free software; you can redistribute it and/or
17*3313e0e2SMark Jonas# modify it under the terms of the GNU General Public License as
18*3313e0e2SMark Jonas# published by the Free Software Foundation; either version 2 of
19*3313e0e2SMark Jonas# the License, or (at your option) any later version.
20*3313e0e2SMark Jonas#
21*3313e0e2SMark Jonas# This program is distributed in the hope that it will be useful,
22*3313e0e2SMark Jonas# but WITHOUT ANY WARRANTY; without even the implied warranty of
23*3313e0e2SMark Jonas# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24*3313e0e2SMark Jonas# GNU General Public License for more details.
25*3313e0e2SMark Jonas#
26*3313e0e2SMark Jonas# You should have received a copy of the GNU General Public License
27*3313e0e2SMark Jonas# along with this program; if not, write to the Free Software
28*3313e0e2SMark Jonas# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29*3313e0e2SMark Jonas# MA 02111-1307 USA
30*3313e0e2SMark Jonas
31*3313e0e2SMark Jonasinclude $(TOPDIR)/config.mk
32*3313e0e2SMark Jonas
33*3313e0e2SMark JonasLIB	= lib$(BOARD).a
34*3313e0e2SMark Jonas
35*3313e0e2SMark JonasOBJS	:= mpr2.o
36*3313e0e2SMark JonasSOBJS	:= lowlevel_init.o
37*3313e0e2SMark Jonas
38*3313e0e2SMark Jonas$(LIB):	$(OBJS) $(SOBJS)
39*3313e0e2SMark Jonas	$(AR) crv $@ $(OBJS) $(SOBJS)
40*3313e0e2SMark Jonas
41*3313e0e2SMark Jonasclean:
42*3313e0e2SMark Jonas	rm -f $(SOBJS) $(OBJS)
43*3313e0e2SMark Jonas
44*3313e0e2SMark Jonasdistclean:	clean
45*3313e0e2SMark Jonas	rm -f $(LIB) core *.bak .depend
46*3313e0e2SMark Jonas
47*3313e0e2SMark Jonas#########################################################################
48*3313e0e2SMark Jonas
49*3313e0e2SMark Jonas.depend:	Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
50*3313e0e2SMark Jonas		$(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
51*3313e0e2SMark Jonas
52*3313e0e2SMark Jonas-include .depend
53*3313e0e2SMark Jonas
54*3313e0e2SMark Jonas#########################################################################
55