1*deb53483SStefano Babic# 2*deb53483SStefano Babic# Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de> 3*deb53483SStefano Babic# 4*deb53483SStefano Babic# (C) Copyright 2008-2009 Freescale Semiconductor, Inc. 5*deb53483SStefano Babic# 6*deb53483SStefano Babic# This program is free software; you can redistribute it and/or 7*deb53483SStefano Babic# modify it under the terms of the GNU General Public License as 8*deb53483SStefano Babic# published by the Free Software Foundation; either version 2 of 9*deb53483SStefano Babic# the License, or (at your option) any later version. 10*deb53483SStefano Babic# 11*deb53483SStefano Babic# This program is distributed in the hope that it will be useful, 12*deb53483SStefano Babic# but WITHOUT ANY WARRANTY; without even the implied warranty of 13*deb53483SStefano Babic# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*deb53483SStefano Babic# GNU General Public License for more details. 15*deb53483SStefano Babic# 16*deb53483SStefano Babic# You should have received a copy of the GNU General Public License 17*deb53483SStefano Babic# along with this program; if not, write to the Free Software 18*deb53483SStefano Babic# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 19*deb53483SStefano Babic# MA 02111-1307 USA 20*deb53483SStefano Babic# 21*deb53483SStefano Babic 22*deb53483SStefano Babicinclude $(TOPDIR)/config.mk 23*deb53483SStefano Babic 24*deb53483SStefano BabicLIB = $(obj)lib$(BOARD).o 25*deb53483SStefano Babic 26*deb53483SStefano BabicCOBJS := flea3.o 27*deb53483SStefano BabicSOBJS := lowlevel_init.o 28*deb53483SStefano Babic 29*deb53483SStefano BabicSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 30*deb53483SStefano BabicOBJS := $(addprefix $(obj),$(COBJS)) 31*deb53483SStefano BabicSOBJS := $(addprefix $(obj),$(SOBJS)) 32*deb53483SStefano Babic 33*deb53483SStefano Babic$(LIB): $(obj).depend $(OBJS) $(SOBJS) 34*deb53483SStefano Babic $(call cmd_link_o_target, $(OBJS) $(SOBJS)) 35*deb53483SStefano Babic 36*deb53483SStefano Babicclean: 37*deb53483SStefano Babic rm -f $(SOBJS) $(OBJS) 38*deb53483SStefano Babic 39*deb53483SStefano Babicdistclean: clean 40*deb53483SStefano Babic rm -f $(LIB) core *.bak .depend 41*deb53483SStefano Babic 42*deb53483SStefano Babic######################################################################### 43*deb53483SStefano Babic 44*deb53483SStefano Babic# defines $(obj).depend target 45*deb53483SStefano Babicinclude $(SRCTREE)/rules.mk 46*deb53483SStefano Babic 47*deb53483SStefano Babicsinclude $(obj).depend 48*deb53483SStefano Babic 49*deb53483SStefano Babic######################################################################### 50