1*ee52b188SYork Sun# 2*ee52b188SYork Sun# Copyright 2012 Freescale Semiconductor, Inc. 3*ee52b188SYork Sun# 4*ee52b188SYork Sun# See file CREDITS for list of people who contributed to this 5*ee52b188SYork Sun# project. 6*ee52b188SYork Sun# 7*ee52b188SYork Sun# This program is free software; you can redistribute it and/or 8*ee52b188SYork Sun# modify it under the terms of the GNU General Public License as 9*ee52b188SYork Sun# published by the Free Software Foundation; either version 2 of 10*ee52b188SYork Sun# the License, or (at your option) any later version. 11*ee52b188SYork Sun# 12*ee52b188SYork Sun# This program is distributed in the hope that it will be useful, 13*ee52b188SYork Sun# but WITHOUT ANY WARRANTY; without even the implied warranty of 14*ee52b188SYork Sun# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*ee52b188SYork Sun# GNU General Public License for more details. 16*ee52b188SYork Sun# 17*ee52b188SYork Sun# You should have received a copy of the GNU General Public License 18*ee52b188SYork Sun# along with this program; if not, write to the Free Software 19*ee52b188SYork Sun# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20*ee52b188SYork Sun# MA 02111-1307 USA 21*ee52b188SYork Sun# 22*ee52b188SYork Sun 23*ee52b188SYork Suninclude $(TOPDIR)/config.mk 24*ee52b188SYork Sun 25*ee52b188SYork SunLIB = $(obj)lib$(BOARD).o 26*ee52b188SYork Sun 27*ee52b188SYork SunCOBJS-y += $(BOARD).o 28*ee52b188SYork SunCOBJS-y += ddr.o 29*ee52b188SYork SunCOBJS-$(CONFIG_T4240QDS)+= eth.o 30*ee52b188SYork SunCOBJS-$(CONFIG_PCI) += pci.o 31*ee52b188SYork SunCOBJS-y += law.o 32*ee52b188SYork SunCOBJS-y += tlb.o 33*ee52b188SYork Sun 34*ee52b188SYork SunSRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 35*ee52b188SYork SunOBJS := $(addprefix $(obj),$(COBJS-y)) 36*ee52b188SYork SunSOBJS := $(addprefix $(obj),$(SOBJS)) 37*ee52b188SYork Sun 38*ee52b188SYork Sun$(LIB): $(obj).depend $(OBJS) $(SOBJS) 39*ee52b188SYork Sun $(call cmd_link_o_target, $(OBJS)) 40*ee52b188SYork Sun 41*ee52b188SYork Sunclean: 42*ee52b188SYork Sun rm -f $(OBJS) $(SOBJS) 43*ee52b188SYork Sun 44*ee52b188SYork Sundistclean: clean 45*ee52b188SYork Sun rm -f $(LIB) core *.bak .depend 46*ee52b188SYork Sun 47*ee52b188SYork Sun######################################################################### 48*ee52b188SYork Sun 49*ee52b188SYork Sun# defines $(obj).depend target 50*ee52b188SYork Suninclude $(SRCTREE)/rules.mk 51*ee52b188SYork Sun 52*ee52b188SYork Sunsinclude $(obj).depend 53*ee52b188SYork Sun 54*ee52b188SYork Sun######################################################################### 55