xref: /openbmc/u-boot/board/samsung/smdk5250/Makefile (revision 87f2e079)
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
30*87f2e079SRajeshwari ShindeCOBJS	+= dmc_common.o dmc_init_ddr3.o
310aee53baSChander KashyapCOBJS	+= tzpc_init.o
329c46f034SRajeshwari ShindeCOBJS	+= smdk5250_spl.o
3381e35203SChander Kashyap
3481e35203SChander Kashyapifndef CONFIG_SPL_BUILD
350aee53baSChander KashyapCOBJS	+= smdk5250.o
3681e35203SChander Kashyapendif
3781e35203SChander Kashyap
3881e35203SChander Kashyapifdef CONFIG_SPL_BUILD
3981e35203SChander KashyapCOBJS	+= mmc_boot.o
4081e35203SChander Kashyapendif
410aee53baSChander Kashyap
420aee53baSChander KashyapSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
430aee53baSChander KashyapOBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
440aee53baSChander Kashyap
450aee53baSChander KashyapALL	:=	 $(obj).depend $(LIB)
460aee53baSChander Kashyap
470aee53baSChander Kashyapall:	$(ALL)
480aee53baSChander Kashyap
490aee53baSChander Kashyap$(LIB):	$(OBJS)
500aee53baSChander Kashyap	$(call cmd_link_o_target, $(OBJS))
510aee53baSChander Kashyap
520aee53baSChander Kashyap#########################################################################
530aee53baSChander Kashyap
540aee53baSChander Kashyap# defines $(obj).depend target
550aee53baSChander Kashyapinclude $(SRCTREE)/rules.mk
560aee53baSChander Kashyap
570aee53baSChander Kashyapsinclude $(obj).depend
580aee53baSChander Kashyap
590aee53baSChander Kashyap#########################################################################
60