1*0de71d50SPeter Tyser# 2*0de71d50SPeter Tyser# (C) Copyright 2000-2007 3*0de71d50SPeter Tyser# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4*0de71d50SPeter Tyser# 5*0de71d50SPeter Tyser# See file CREDITS for list of people who contributed to this 6*0de71d50SPeter Tyser# project. 7*0de71d50SPeter Tyser# 8*0de71d50SPeter Tyser# This program is free software; you can redistribute it and/or 9*0de71d50SPeter Tyser# modify it under the terms of the GNU General Public License as 10*0de71d50SPeter Tyser# published by the Free Software Foundation; either version 2 of 11*0de71d50SPeter Tyser# the License, or (at your option) any later version. 12*0de71d50SPeter Tyser# 13*0de71d50SPeter Tyser# This program is distributed in the hope that it will be useful, 14*0de71d50SPeter Tyser# but WITHOUT ANY WARRANTY; without even the implied warranty of 15*0de71d50SPeter Tyser# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*0de71d50SPeter Tyser# GNU General Public License for more details. 17*0de71d50SPeter Tyser# 18*0de71d50SPeter Tyser# You should have received a copy of the GNU General Public License 19*0de71d50SPeter Tyser# along with this program; if not, write to the Free Software 20*0de71d50SPeter Tyser# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*0de71d50SPeter Tyser# MA 02111-1307 USA 22*0de71d50SPeter Tyser# 23*0de71d50SPeter Tyser 24*0de71d50SPeter Tyserinclude $(TOPDIR)/config.mk 25*0de71d50SPeter Tyser 26*0de71d50SPeter TyserLIB = $(obj)libfdt.a 27*0de71d50SPeter Tyser 28*0de71d50SPeter TyserSOBJS = 29*0de71d50SPeter Tyser 30*0de71d50SPeter TyserCOBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o 31*0de71d50SPeter Tyser 32*0de71d50SPeter TyserCOBJS-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt) 33*0de71d50SPeter TyserCOBJS-$(CONFIG_FIT) += $(COBJS-libfdt) 34*0de71d50SPeter Tyser 35*0de71d50SPeter Tyser 36*0de71d50SPeter TyserCOBJS := $(sort $(COBJS-y)) 37*0de71d50SPeter TyserSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 38*0de71d50SPeter TyserOBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) 39*0de71d50SPeter Tyser 40*0de71d50SPeter Tyser$(LIB): $(obj).depend $(OBJS) 41*0de71d50SPeter Tyser $(AR) $(ARFLAGS) $@ $(OBJS) 42*0de71d50SPeter Tyser 43*0de71d50SPeter Tyser######################################################################### 44*0de71d50SPeter Tyser 45*0de71d50SPeter Tyser# defines $(obj).depend target 46*0de71d50SPeter Tyserinclude $(SRCTREE)/rules.mk 47*0de71d50SPeter Tyser 48*0de71d50SPeter Tysersinclude $(obj).depend 49*0de71d50SPeter Tyser 50*0de71d50SPeter Tyser######################################################################### 51