xref: /rk3399_rockchip-uboot/board/freescale/mpc8349itx/Makefile (revision 4c2e3da82dc2b7f8b39b7f1d57f570e4bc5caa6d)
1e58fe957SKim Phillips#
2*4c2e3da8SKumar Gala# Copyright (C) Freescale Semiconductor, Inc. 2006.
3e58fe957SKim Phillips#
4e58fe957SKim Phillips# See file CREDITS for list of people who contributed to this
5e58fe957SKim Phillips# project.
6e58fe957SKim Phillips#
7e58fe957SKim Phillips# This program is free software; you can redistribute it and/or
8e58fe957SKim Phillips# modify it under the terms of the GNU General Public License as
9e58fe957SKim Phillips# published by the Free Software Foundation; either version 2 of
10e58fe957SKim Phillips# the License, or (at your option) any later version.
11e58fe957SKim Phillips#
12e58fe957SKim Phillips# This program is distributed in the hope that it will be useful,
13e58fe957SKim Phillips# but WITHOUT ANY WARRANTY; without even the implied warranty of
14e58fe957SKim Phillips# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15e58fe957SKim Phillips# GNU General Public License for more details.
16e58fe957SKim Phillips#
17e58fe957SKim Phillips# You should have received a copy of the GNU General Public License
18e58fe957SKim Phillips# along with this program; if not, write to the Free Software
19e58fe957SKim Phillips# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20e58fe957SKim Phillips# MA 02111-1307 USA
21e58fe957SKim Phillips#
22e58fe957SKim Phillips
23e58fe957SKim Phillipsinclude $(TOPDIR)/config.mk
24e58fe957SKim Phillips
25e58fe957SKim PhillipsLIB	= $(obj)lib$(BOARD).a
26e58fe957SKim Phillips
279993e196SKim PhillipsCOBJS-y += $(BOARD).o
289993e196SKim PhillipsCOBJS-$(CONFIG_PCI) += pci.o
29e58fe957SKim Phillips
309993e196SKim PhillipsCOBJS	:= $(COBJS-y)
31e58fe957SKim PhillipsSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
32e58fe957SKim PhillipsOBJS	:= $(addprefix $(obj),$(COBJS))
33e58fe957SKim PhillipsSOBJS	:= $(addprefix $(obj),$(SOBJS))
34e58fe957SKim Phillips
35e58fe957SKim Phillips$(LIB):	$(obj).depend $(OBJS)
362b4c952bSKumar Gala	$(AR) $(ARFLAGS) $@ $(OBJS)
37e58fe957SKim Phillips
38e58fe957SKim Phillipsclean:
39e58fe957SKim Phillips	rm -f $(SOBJS) $(OBJS)
40e58fe957SKim Phillips
41e58fe957SKim Phillipsdistclean:	clean
42c8a3b109SWolfgang Denk	rm -f $(LIB) core *.bak $(obj).depend
43e58fe957SKim Phillips
44e58fe957SKim Phillips#########################################################################
45e58fe957SKim Phillips
46e58fe957SKim Phillipsinclude $(SRCTREE)/rules.mk
47e58fe957SKim Phillips
48e58fe957SKim Phillipssinclude $(obj).depend
49e58fe957SKim Phillips
50e58fe957SKim Phillips#########################################################################
51