xref: /openbmc/u-boot/board/samsung/smdkv310/Makefile (revision 3765b3e7)
1#
2# Copyright (C) 2011 Samsung Electronics
3#
4# SPDX-License-Identifier:	GPL-2.0+
5#
6
7include $(TOPDIR)/config.mk
8
9LIB	= $(obj)lib$(BOARD).o
10
11ifndef CONFIG_SPL_BUILD
12COBJS	+= smdkv310.o
13endif
14
15SRCS	:= $(COBJS:.o=.c)
16OBJS	:= $(addprefix $(obj),$(COBJS))
17
18ALL	:=	 $(obj).depend $(LIB)
19
20ifdef CONFIG_SPL_BUILD
21ALL	+= $(OBJTREE)/tools/mk$(BOARD)spl
22endif
23
24all:	$(ALL)
25
26$(LIB):	$(OBJS)
27	$(call cmd_link_o_target, $(OBJS))
28
29ifdef CONFIG_SPL_BUILD
30$(OBJTREE)/tools/mk$(BOARD)spl:	tools/mkv310_image.c
31	$(HOSTCC) tools/mkv310_image.c -o $(OBJTREE)/tools/mk$(BOARD)spl
32endif
33
34#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################
42