10aee53baSChander Kashyap# 20aee53baSChander Kashyap# Copyright (C) 2012 Samsung Electronics 30aee53baSChander Kashyap# 40aee53baSChander Kashyap# See file CREDITS for list of people who contributed to this 50aee53baSChander Kashyap# project. 60aee53baSChander Kashyap# 70aee53baSChander Kashyap# This program is free software; you can redistribute it and/or 80aee53baSChander Kashyap# modify it under the terms of the GNU General Public License as 90aee53baSChander Kashyap# published by the Free Software Foundation; either version 2 of 100aee53baSChander Kashyap# the License, or (at your option) any later version. 110aee53baSChander Kashyap# 120aee53baSChander Kashyap# This program is distributed in the hope that it will be useful, 130aee53baSChander Kashyap# but WITHOUT ANY WARRANTY; without even the implied warranty of 140aee53baSChander Kashyap# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 150aee53baSChander Kashyap# GNU General Public License for more details. 160aee53baSChander Kashyap# 170aee53baSChander Kashyap# You should have received a copy of the GNU General Public License 180aee53baSChander Kashyap# along with this program; if not, write to the Free Software 190aee53baSChander Kashyap# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 200aee53baSChander Kashyap# MA 02111-1307 USA 210aee53baSChander Kashyap# 220aee53baSChander Kashyap 230aee53baSChander Kashyapinclude $(TOPDIR)/config.mk 240aee53baSChander Kashyap 250aee53baSChander KashyapLIB = $(obj)lib$(BOARD).o 260aee53baSChander Kashyap 270aee53baSChander KashyapSOBJS := lowlevel_init.o 280aee53baSChander Kashyap 290aee53baSChander KashyapCOBJS := clock_init.o 3087f2e079SRajeshwari ShindeCOBJS += dmc_common.o dmc_init_ddr3.o 319c46f034SRajeshwari ShindeCOBJS += smdk5250_spl.o 3281e35203SChander Kashyap 3381e35203SChander Kashyapifndef CONFIG_SPL_BUILD 34*752f4c4aSAmarifdef CONFIG_OF_CONTROL 35*752f4c4aSAmarCOBJS += exynos5-dt.o 36*752f4c4aSAmarelse 370aee53baSChander KashyapCOBJS += smdk5250.o 3881e35203SChander Kashyapendif 39*752f4c4aSAmarendif 4081e35203SChander Kashyap 4181e35203SChander Kashyapifdef CONFIG_SPL_BUILD 427a533773SRajeshwari ShindeCOBJS += spl_boot.o 4381e35203SChander Kashyapendif 440aee53baSChander Kashyap 450aee53baSChander KashyapSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 460aee53baSChander KashyapOBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) 470aee53baSChander Kashyap 480aee53baSChander KashyapALL := $(obj).depend $(LIB) 490aee53baSChander Kashyap 500aee53baSChander Kashyapall: $(ALL) 510aee53baSChander Kashyap 520aee53baSChander Kashyap$(LIB): $(OBJS) 530aee53baSChander Kashyap $(call cmd_link_o_target, $(OBJS)) 540aee53baSChander Kashyap 550aee53baSChander Kashyap######################################################################### 560aee53baSChander Kashyap 570aee53baSChander Kashyap# defines $(obj).depend target 580aee53baSChander Kashyapinclude $(SRCTREE)/rules.mk 590aee53baSChander Kashyap 600aee53baSChander Kashyapsinclude $(obj).depend 610aee53baSChander Kashyap 620aee53baSChander Kashyap######################################################################### 63