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