18449f287SMagnus Lilja#
28449f287SMagnus Lilja# (C) Copyright 2008 Magnus Lilja <lilja.magnus@gmail.com>
38449f287SMagnus Lilja#
48449f287SMagnus Lilja# (C) Copyright 2000-2006
58449f287SMagnus Lilja# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
68449f287SMagnus Lilja#
78449f287SMagnus Lilja# See file CREDITS for list of people who contributed to this
88449f287SMagnus Lilja# project.
98449f287SMagnus Lilja#
108449f287SMagnus Lilja# This program is free software; you can redistribute it and/or
118449f287SMagnus Lilja# modify it under the terms of the GNU General Public License as
128449f287SMagnus Lilja# published by the Free Software Foundation; either version 2 of
138449f287SMagnus Lilja# the License, or (at your option) any later version.
148449f287SMagnus Lilja#
158449f287SMagnus Lilja# This program is distributed in the hope that it will be useful,
168449f287SMagnus Lilja# but WITHOUT ANY WARRANTY; without even the implied warranty of
178449f287SMagnus Lilja# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
188449f287SMagnus Lilja# GNU General Public License for more details.
198449f287SMagnus Lilja#
208449f287SMagnus Lilja# You should have received a copy of the GNU General Public License
218449f287SMagnus Lilja# along with this program; if not, write to the Free Software
228449f287SMagnus Lilja# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
238449f287SMagnus Lilja# MA 02111-1307 USA
248449f287SMagnus Lilja#
258449f287SMagnus Lilja
268449f287SMagnus Liljainclude $(TOPDIR)/config.mk
278449f287SMagnus Lilja
28*6d8962e8SSebastien CarlierLIB	= $(obj)lib$(BOARD).o
298449f287SMagnus Lilja
308449f287SMagnus LiljaCOBJS	:= mx31pdk.o
318449f287SMagnus Lilja
328449f287SMagnus LiljaSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
338449f287SMagnus LiljaOBJS	:= $(addprefix $(obj),$(COBJS))
348449f287SMagnus LiljaSOBJS	:= $(addprefix $(obj),$(SOBJS))
358449f287SMagnus Lilja
368449f287SMagnus Lilja$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
37*6d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
388449f287SMagnus Lilja
398449f287SMagnus Liljaclean:
408449f287SMagnus Lilja	rm -f $(SOBJS) $(OBJS)
418449f287SMagnus Lilja
428449f287SMagnus Liljadistclean:	clean
438449f287SMagnus Lilja	rm -f $(LIB) core *.bak $(obj).depend
448449f287SMagnus Lilja
458449f287SMagnus Lilja#########################################################################
468449f287SMagnus Lilja
478449f287SMagnus Lilja# defines $(obj).depend target
488449f287SMagnus Liljainclude $(SRCTREE)/rules.mk
498449f287SMagnus Lilja
508449f287SMagnus Liljasinclude $(obj).depend
518449f287SMagnus Lilja
528449f287SMagnus Lilja#########################################################################
53