10176d43eSStelian Pop#
20176d43eSStelian Pop# (C) Copyright 2003-2008
3567fb852SStelian Pop# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
40176d43eSStelian Pop#
5*d48abea4SStelian Pop# (C) Copyright 2008
6*d48abea4SStelian Pop# Stelian Pop <stelian.pop@leadtechdesign.com>
7*d48abea4SStelian Pop# Lead Tech Design <www.leadtechdesign.com>
8*d48abea4SStelian Pop#
90176d43eSStelian Pop# See file CREDITS for list of people who contributed to this
100176d43eSStelian Pop# project.
110176d43eSStelian Pop#
120176d43eSStelian Pop# This program is free software; you can redistribute it and/or
130176d43eSStelian Pop# modify it under the terms of the GNU General Public License as
140176d43eSStelian Pop# published by the Free Software Foundation; either version 2 of
150176d43eSStelian Pop# the License, or (at your option) any later version.
160176d43eSStelian Pop#
170176d43eSStelian Pop# This program is distributed in the hope that it will be useful,
180176d43eSStelian Pop# but WITHOUT ANY WARRANTY; without even the implied warranty of
190176d43eSStelian Pop# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
200176d43eSStelian Pop# GNU General Public License for more details.
210176d43eSStelian Pop#
220176d43eSStelian Pop# You should have received a copy of the GNU General Public License
230176d43eSStelian Pop# along with this program; if not, write to the Free Software
240176d43eSStelian Pop# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
250176d43eSStelian Pop# MA 02111-1307 USA
260176d43eSStelian Pop#
270176d43eSStelian Pop
280176d43eSStelian Popinclude $(TOPDIR)/config.mk
290176d43eSStelian Pop
300176d43eSStelian PopLIB	= $(obj)lib$(BOARD).a
310176d43eSStelian Pop
324e03dde8SJean-Christophe PLAGNIOL-VILLARDCOBJS-y	+= at91sam9260ek.o
334e03dde8SJean-Christophe PLAGNIOL-VILLARDCOBJS-y	+= led.o
34c3a60cb3SUlf SamuelssonCOBJS-y	+= partition.o
354e03dde8SJean-Christophe PLAGNIOL-VILLARDCOBJS-$(CONFIG_CMD_NAND) += nand.o
360176d43eSStelian Pop
374e03dde8SJean-Christophe PLAGNIOL-VILLARDSRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
384e03dde8SJean-Christophe PLAGNIOL-VILLARDOBJS	:= $(addprefix $(obj),$(COBJS-y))
390176d43eSStelian PopSOBJS	:= $(addprefix $(obj),$(SOBJS))
400176d43eSStelian Pop
410176d43eSStelian Pop$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
420176d43eSStelian Pop	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
430176d43eSStelian Pop
440176d43eSStelian Popclean:
450176d43eSStelian Pop	rm -f $(SOBJS) $(OBJS)
460176d43eSStelian Pop
470176d43eSStelian Popdistclean:	clean
480176d43eSStelian Pop	rm -f $(LIB) core *.bak .depend
490176d43eSStelian Pop
500176d43eSStelian Pop#########################################################################
510176d43eSStelian Pop
520176d43eSStelian Pop# defines $(obj).depend target
530176d43eSStelian Popinclude $(SRCTREE)/rules.mk
540176d43eSStelian Pop
550176d43eSStelian Popsinclude $(obj).depend
560176d43eSStelian Pop
570176d43eSStelian Pop#########################################################################
58