xref: /rk3399_rockchip-uboot/board/freescale/mpc8568mds/Makefile (revision acbca876fb3fec25cd9c55b0efc81ff618ff5262)
1*acbca876SKumar Gala#
2*acbca876SKumar Gala# Copyright 2004-2007 Freescale Semiconductor.
3*acbca876SKumar Gala# (C) Copyright 2001-2006
4*acbca876SKumar Gala# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5*acbca876SKumar Gala#
6*acbca876SKumar Gala# See file CREDITS for list of people who contributed to this
7*acbca876SKumar Gala# project.
8*acbca876SKumar Gala#
9*acbca876SKumar Gala# This program is free software; you can redistribute it and/or
10*acbca876SKumar Gala# modify it under the terms of the GNU General Public License as
11*acbca876SKumar Gala# published by the Free Software Foundation; either version 2 of
12*acbca876SKumar Gala# the License, or (at your option) any later version.
13*acbca876SKumar Gala#
14*acbca876SKumar Gala# This program is distributed in the hope that it will be useful,
15*acbca876SKumar Gala# but WITHOUT ANY WARRANTY; without even the implied warranty of
16*acbca876SKumar Gala# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*acbca876SKumar Gala# GNU General Public License for more details.
18*acbca876SKumar Gala#
19*acbca876SKumar Gala# You should have received a copy of the GNU General Public License
20*acbca876SKumar Gala# along with this program; if not, write to the Free Software
21*acbca876SKumar Gala# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22*acbca876SKumar Gala# MA 02111-1307 USA
23*acbca876SKumar Gala#
24*acbca876SKumar Gala
25*acbca876SKumar Galainclude $(TOPDIR)/config.mk
26*acbca876SKumar Galaifneq ($(OBJTREE),$(SRCTREE))
27*acbca876SKumar Gala$(shell mkdir -p $(obj)../common)
28*acbca876SKumar Galaendif
29*acbca876SKumar Gala
30*acbca876SKumar GalaLIB	= $(obj)lib$(BOARD).a
31*acbca876SKumar Gala
32*acbca876SKumar GalaCOBJS	:= $(BOARD).o bcsr.o
33*acbca876SKumar Gala
34*acbca876SKumar GalaSOBJS	:= init.o
35*acbca876SKumar Gala
36*acbca876SKumar GalaSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
37*acbca876SKumar GalaOBJS	:= $(addprefix $(obj),$(COBJS))
38*acbca876SKumar GalaSOBJS	:= $(addprefix $(obj),$(SOBJS))
39*acbca876SKumar Gala
40*acbca876SKumar Gala$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
41*acbca876SKumar Gala	$(AR) $(ARFLAGS) $@ $(OBJS)
42*acbca876SKumar Gala
43*acbca876SKumar Galaclean:
44*acbca876SKumar Gala	rm -f $(OBJS) $(SOBJS)
45*acbca876SKumar Gala
46*acbca876SKumar Galadistclean:	clean
47*acbca876SKumar Gala	rm -f $(LIB) core *.bak .depend
48*acbca876SKumar Gala
49*acbca876SKumar Gala#########################################################################
50*acbca876SKumar Gala
51*acbca876SKumar Gala# defines $(obj).depend target
52*acbca876SKumar Galainclude $(SRCTREE)/rules.mk
53*acbca876SKumar Gala
54*acbca876SKumar Galasinclude $(obj).depend
55*acbca876SKumar Gala
56*acbca876SKumar Gala#########################################################################
57