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