xref: /openbmc/u-boot/board/samsung/smdk5250/Makefile (revision 1a459660)
10aee53baSChander Kashyap#
20aee53baSChander Kashyap# Copyright (C) 2012 Samsung Electronics
30aee53baSChander Kashyap#
4*1a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
50aee53baSChander Kashyap#
60aee53baSChander Kashyap
70aee53baSChander Kashyapinclude $(TOPDIR)/config.mk
80aee53baSChander Kashyap
90aee53baSChander KashyapLIB	= $(obj)lib$(BOARD).o
100aee53baSChander Kashyap
119c46f034SRajeshwari ShindeCOBJS	+= smdk5250_spl.o
1281e35203SChander Kashyap
1381e35203SChander Kashyapifndef CONFIG_SPL_BUILD
14752f4c4aSAmarifdef CONFIG_OF_CONTROL
15752f4c4aSAmarCOBJS	+= exynos5-dt.o
16752f4c4aSAmarelse
170aee53baSChander KashyapCOBJS	+= smdk5250.o
1881e35203SChander Kashyapendif
19752f4c4aSAmarendif
2081e35203SChander Kashyap
21643be9c0SRajeshwari ShindeSRCS	:= $(COBJS:.o=.c)
22643be9c0SRajeshwari ShindeOBJS	:= $(addprefix $(obj),$(COBJS))
230aee53baSChander Kashyap
240aee53baSChander KashyapALL	:= $(obj).depend $(LIB)
250aee53baSChander Kashyap
260aee53baSChander Kashyapall:	$(ALL)
270aee53baSChander Kashyap
280aee53baSChander Kashyap$(LIB):	$(OBJS)
290aee53baSChander Kashyap	$(call cmd_link_o_target, $(OBJS))
300aee53baSChander Kashyap
310aee53baSChander Kashyap#########################################################################
320aee53baSChander Kashyap
330aee53baSChander Kashyap# defines $(obj).depend target
340aee53baSChander Kashyapinclude $(SRCTREE)/rules.mk
350aee53baSChander Kashyap
360aee53baSChander Kashyapsinclude $(obj).depend
370aee53baSChander Kashyap
380aee53baSChander Kashyap#########################################################################
39