xref: /openbmc/u-boot/board/samsung/smdk5250/Makefile (revision 81e35203)
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
300aee53baSChander KashyapCOBJS	+= dmc_init.o
310aee53baSChander KashyapCOBJS	+= tzpc_init.o
32*81e35203SChander Kashyap
33*81e35203SChander Kashyapifndef CONFIG_SPL_BUILD
340aee53baSChander KashyapCOBJS	+= smdk5250.o
35*81e35203SChander Kashyapendif
36*81e35203SChander Kashyap
37*81e35203SChander Kashyapifdef CONFIG_SPL_BUILD
38*81e35203SChander KashyapCOBJS	+= mmc_boot.o
39*81e35203SChander Kashyapendif
400aee53baSChander Kashyap
410aee53baSChander KashyapSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
420aee53baSChander KashyapOBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
430aee53baSChander Kashyap
440aee53baSChander KashyapALL	:=	 $(obj).depend $(LIB)
450aee53baSChander Kashyap
460aee53baSChander Kashyapall:	$(ALL)
470aee53baSChander Kashyap
480aee53baSChander Kashyap$(LIB):	$(OBJS)
490aee53baSChander Kashyap	$(call cmd_link_o_target, $(OBJS))
500aee53baSChander Kashyap
510aee53baSChander Kashyap#########################################################################
520aee53baSChander Kashyap
530aee53baSChander Kashyap# defines $(obj).depend target
540aee53baSChander Kashyapinclude $(SRCTREE)/rules.mk
550aee53baSChander Kashyap
560aee53baSChander Kashyapsinclude $(obj).depend
570aee53baSChander Kashyap
580aee53baSChander Kashyap#########################################################################
59