xref: /openbmc/u-boot/board/xilinx/zynq/Makefile (revision f22651cf)
1*f22651cfSMichal Simek#
2*f22651cfSMichal Simek# (C) Copyright 2000-2006
3*f22651cfSMichal Simek# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*f22651cfSMichal Simek#
5*f22651cfSMichal Simek# See file CREDITS for list of people who contributed to this
6*f22651cfSMichal Simek# project.
7*f22651cfSMichal Simek#
8*f22651cfSMichal Simek# This program is free software; you can redistribute it and/or
9*f22651cfSMichal Simek# modify it under the terms of the GNU General Public License as
10*f22651cfSMichal Simek# published by the Free Software Foundation; either version 2 of
11*f22651cfSMichal Simek# the License, or (at your option) any later version.
12*f22651cfSMichal Simek#
13*f22651cfSMichal Simek# This program is distributed in the hope that it will be useful,
14*f22651cfSMichal Simek# but WITHOUT ANY WARRANTY; without even the implied warranty of
15*f22651cfSMichal Simek# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*f22651cfSMichal Simek# GNU General Public License for more details.
17*f22651cfSMichal Simek#
18*f22651cfSMichal Simek# You should have received a copy of the GNU General Public License
19*f22651cfSMichal Simek# along with this program; if not, write to the Free Software
20*f22651cfSMichal Simek# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21*f22651cfSMichal Simek# MA 02111-1307 USA
22*f22651cfSMichal Simek#
23*f22651cfSMichal Simek
24*f22651cfSMichal Simekinclude $(TOPDIR)/config.mk
25*f22651cfSMichal Simekifneq ($(OBJTREE),$(SRCTREE))
26*f22651cfSMichal Simek$(shell mkdir -p $(obj)../common)
27*f22651cfSMichal Simekendif
28*f22651cfSMichal Simek
29*f22651cfSMichal SimekLIB	= $(obj)lib$(BOARD).o
30*f22651cfSMichal Simek
31*f22651cfSMichal SimekCOBJS-y	:= board.o
32*f22651cfSMichal Simek
33*f22651cfSMichal SimekCOBJS	:= $(sort $(COBJS-y))
34*f22651cfSMichal Simek
35*f22651cfSMichal SimekSRCS	:= $(COBJS:.o=.c)
36*f22651cfSMichal SimekOBJS	:= $(addprefix $(obj),$(COBJS))
37*f22651cfSMichal Simek
38*f22651cfSMichal Simek$(LIB):	$(obj).depend $(OBJS)
39*f22651cfSMichal Simek	$(call cmd_link_o_target, $(OBJS))
40*f22651cfSMichal Simek
41*f22651cfSMichal Simekclean:
42*f22651cfSMichal Simek	rm -f $(OBJS)
43*f22651cfSMichal Simek
44*f22651cfSMichal Simekdistclean:	clean
45*f22651cfSMichal Simek	rm -f $(LIB) core *.bak $(obj).depend
46*f22651cfSMichal Simek
47*f22651cfSMichal Simek#########################################################################
48*f22651cfSMichal Simek
49*f22651cfSMichal Simek# defines $(obj).depend target
50*f22651cfSMichal Simekinclude $(SRCTREE)/rules.mk
51*f22651cfSMichal Simek
52*f22651cfSMichal Simeksinclude $(obj).depend
53*f22651cfSMichal Simek
54*f22651cfSMichal Simek#########################################################################
55