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