1e21185baSChander Kashyap# 2e21185baSChander Kashyap# Copyright (C) 2011 Samsung Electronics 3e21185baSChander Kashyap# 4e21185baSChander Kashyap# See file CREDITS for list of people who contributed to this 5e21185baSChander Kashyap# project. 6e21185baSChander Kashyap# 7e21185baSChander Kashyap# This program is free software; you can redistribute it and/or 8e21185baSChander Kashyap# modify it under the terms of the GNU General Public License as 9e21185baSChander Kashyap# published by the Free Software Foundation; either version 2 of 10e21185baSChander Kashyap# the License, or (at your option) any later version. 11e21185baSChander Kashyap# 12e21185baSChander Kashyap# This program is distributed in the hope that it will be useful, 13e21185baSChander Kashyap# but WITHOUT ANY WARRANTY; without even the implied warranty of 14e21185baSChander Kashyap# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15e21185baSChander Kashyap# GNU General Public License for more details. 16e21185baSChander Kashyap# 17e21185baSChander Kashyap# You should have received a copy of the GNU General Public License 18e21185baSChander Kashyap# along with this program; if not, write to the Free Software 19e21185baSChander Kashyap# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20e21185baSChander Kashyap# MA 02111-1307 USA 21e21185baSChander Kashyap# 22e21185baSChander Kashyap 23e21185baSChander Kashyapinclude $(TOPDIR)/config.mk 24e21185baSChander Kashyap 25e21185baSChander KashyapLIB = $(obj)lib$(BOARD).o 26e21185baSChander Kashyap 275187d8ddSChander Kashyapifndef CONFIG_SPL_BUILD 28e21185baSChander KashyapCOBJS += smdkv310.o 295187d8ddSChander Kashyapendif 305187d8ddSChander Kashyap 31*643be9c0SRajeshwari ShindeSRCS := $(COBJS:.o=.c) 32*643be9c0SRajeshwari ShindeOBJS := $(addprefix $(obj),$(COBJS)) 33e21185baSChander Kashyap 345187d8ddSChander KashyapALL := $(obj).depend $(LIB) 355187d8ddSChander Kashyap 365187d8ddSChander Kashyapifdef CONFIG_SPL_BUILD 375187d8ddSChander KashyapALL += $(OBJTREE)/tools/mk$(BOARD)spl 385187d8ddSChander Kashyapendif 395187d8ddSChander Kashyap 405187d8ddSChander Kashyapall: $(ALL) 41e21185baSChander Kashyap 42e21185baSChander Kashyap$(LIB): $(OBJS) 4326ddff2dSMike Frysinger $(call cmd_link_o_target, $(OBJS)) 44e21185baSChander Kashyap 455187d8ddSChander Kashyapifdef CONFIG_SPL_BUILD 465187d8ddSChander Kashyap$(OBJTREE)/tools/mk$(BOARD)spl: tools/mkv310_image.c 475187d8ddSChander Kashyap $(HOSTCC) tools/mkv310_image.c -o $(OBJTREE)/tools/mk$(BOARD)spl 485187d8ddSChander Kashyapendif 495187d8ddSChander Kashyap 50e21185baSChander Kashyap######################################################################### 51e21185baSChander Kashyap 52e21185baSChander Kashyap# defines $(obj).depend target 53e21185baSChander Kashyapinclude $(SRCTREE)/rules.mk 54e21185baSChander Kashyap 55e21185baSChander Kashyapsinclude $(obj).depend 56e21185baSChander Kashyap 57e21185baSChander Kashyap######################################################################### 58