1*8449f287SMagnus Lilja# 2*8449f287SMagnus Lilja# (C) Copyright 2008 Magnus Lilja <lilja.magnus@gmail.com> 3*8449f287SMagnus Lilja# 4*8449f287SMagnus Lilja# (C) Copyright 2000-2006 5*8449f287SMagnus Lilja# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 6*8449f287SMagnus Lilja# 7*8449f287SMagnus Lilja# See file CREDITS for list of people who contributed to this 8*8449f287SMagnus Lilja# project. 9*8449f287SMagnus Lilja# 10*8449f287SMagnus Lilja# This program is free software; you can redistribute it and/or 11*8449f287SMagnus Lilja# modify it under the terms of the GNU General Public License as 12*8449f287SMagnus Lilja# published by the Free Software Foundation; either version 2 of 13*8449f287SMagnus Lilja# the License, or (at your option) any later version. 14*8449f287SMagnus Lilja# 15*8449f287SMagnus Lilja# This program is distributed in the hope that it will be useful, 16*8449f287SMagnus Lilja# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*8449f287SMagnus Lilja# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*8449f287SMagnus Lilja# GNU General Public License for more details. 19*8449f287SMagnus Lilja# 20*8449f287SMagnus Lilja# You should have received a copy of the GNU General Public License 21*8449f287SMagnus Lilja# along with this program; if not, write to the Free Software 22*8449f287SMagnus Lilja# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 23*8449f287SMagnus Lilja# MA 02111-1307 USA 24*8449f287SMagnus Lilja# 25*8449f287SMagnus Lilja 26*8449f287SMagnus Liljainclude $(TOPDIR)/config.mk 27*8449f287SMagnus Lilja 28*8449f287SMagnus LiljaLIB = $(obj)lib$(BOARD).a 29*8449f287SMagnus Lilja 30*8449f287SMagnus LiljaCOBJS := mx31pdk.o 31*8449f287SMagnus Lilja 32*8449f287SMagnus LiljaSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 33*8449f287SMagnus LiljaOBJS := $(addprefix $(obj),$(COBJS)) 34*8449f287SMagnus LiljaSOBJS := $(addprefix $(obj),$(SOBJS)) 35*8449f287SMagnus Lilja 36*8449f287SMagnus Lilja$(LIB): $(obj).depend $(OBJS) $(SOBJS) 37*8449f287SMagnus Lilja $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) 38*8449f287SMagnus Lilja 39*8449f287SMagnus Liljaclean: 40*8449f287SMagnus Lilja rm -f $(SOBJS) $(OBJS) 41*8449f287SMagnus Lilja 42*8449f287SMagnus Liljadistclean: clean 43*8449f287SMagnus Lilja rm -f $(LIB) core *.bak $(obj).depend 44*8449f287SMagnus Lilja 45*8449f287SMagnus Lilja######################################################################### 46*8449f287SMagnus Lilja 47*8449f287SMagnus Lilja# defines $(obj).depend target 48*8449f287SMagnus Liljainclude $(SRCTREE)/rules.mk 49*8449f287SMagnus Lilja 50*8449f287SMagnus Liljasinclude $(obj).depend 51*8449f287SMagnus Lilja 52*8449f287SMagnus Lilja######################################################################### 53