1*2118ebb4SStelian Pop# 2*2118ebb4SStelian Pop# (C) Copyright 2003-2008 3*2118ebb4SStelian Pop# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4*2118ebb4SStelian Pop# 5*2118ebb4SStelian Pop# (C) Copyright 2008 6*2118ebb4SStelian Pop# Stelian Pop <stelian.pop@leadtechdesign.com> 7*2118ebb4SStelian Pop# Lead Tech Design <www.leadtechdesign.com> 8*2118ebb4SStelian Pop# 9*2118ebb4SStelian Pop# See file CREDITS for list of people who contributed to this 10*2118ebb4SStelian Pop# project. 11*2118ebb4SStelian Pop# 12*2118ebb4SStelian Pop# This program is free software; you can redistribute it and/or 13*2118ebb4SStelian Pop# modify it under the terms of the GNU General Public License as 14*2118ebb4SStelian Pop# published by the Free Software Foundation; either version 2 of 15*2118ebb4SStelian Pop# the License, or (at your option) any later version. 16*2118ebb4SStelian Pop# 17*2118ebb4SStelian Pop# This program is distributed in the hope that it will be useful, 18*2118ebb4SStelian Pop# but WITHOUT ANY WARRANTY; without even the implied warranty of 19*2118ebb4SStelian Pop# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20*2118ebb4SStelian Pop# GNU General Public License for more details. 21*2118ebb4SStelian Pop# 22*2118ebb4SStelian Pop# You should have received a copy of the GNU General Public License 23*2118ebb4SStelian Pop# along with this program; if not, write to the Free Software 24*2118ebb4SStelian Pop# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 25*2118ebb4SStelian Pop# MA 02111-1307 USA 26*2118ebb4SStelian Pop# 27*2118ebb4SStelian Pop 28*2118ebb4SStelian Popinclude $(TOPDIR)/config.mk 29*2118ebb4SStelian Pop 30*2118ebb4SStelian PopLIB = $(obj)lib$(BOARD).a 31*2118ebb4SStelian Pop 32*2118ebb4SStelian PopCOBJS-y += at91sam9rlek.o 33*2118ebb4SStelian PopCOBJS-y += led.o 34*2118ebb4SStelian PopCOBJS-y += partition.o 35*2118ebb4SStelian PopCOBJS-$(CONFIG_CMD_NAND) += nand.o 36*2118ebb4SStelian Pop 37*2118ebb4SStelian PopSRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 38*2118ebb4SStelian PopOBJS := $(addprefix $(obj),$(COBJS-y)) 39*2118ebb4SStelian PopSOBJS := $(addprefix $(obj),$(SOBJS)) 40*2118ebb4SStelian Pop 41*2118ebb4SStelian Pop$(LIB): $(obj).depend $(OBJS) $(SOBJS) 42*2118ebb4SStelian Pop $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) 43*2118ebb4SStelian Pop 44*2118ebb4SStelian Popclean: 45*2118ebb4SStelian Pop rm -f $(SOBJS) $(OBJS) 46*2118ebb4SStelian Pop 47*2118ebb4SStelian Popdistclean: clean 48*2118ebb4SStelian Pop rm -f $(LIB) core *.bak .depend 49*2118ebb4SStelian Pop 50*2118ebb4SStelian Pop######################################################################### 51*2118ebb4SStelian Pop 52*2118ebb4SStelian Pop# defines $(obj).depend target 53*2118ebb4SStelian Popinclude $(SRCTREE)/rules.mk 54*2118ebb4SStelian Pop 55*2118ebb4SStelian Popsinclude $(obj).depend 56*2118ebb4SStelian Pop 57*2118ebb4SStelian Pop######################################################################### 58