]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/samsung/origen/Makefile
0b1ae1bb514d2960ae5cb2737c4a526346e4b849
[karo-tx-uboot.git] / board / samsung / origen / Makefile
1 #
2 # Copyright (C) 2011 Samsung Electronics
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5 #
6
7 include $(TOPDIR)/config.mk
8
9 LIB     = $(obj)lib$(BOARD).o
10
11 ifndef CONFIG_SPL_BUILD
12 COBJS   += origen.o
13 endif
14
15 SRCS    := $(COBJS:.o=.c)
16 OBJS    := $(addprefix $(obj),$(COBJS))
17
18 ALL     +=$(obj).depend $(LIB)
19
20 ifdef CONFIG_SPL_BUILD
21 ALL     += $(OBJTREE)/tools/mk$(BOARD)spl
22 endif
23
24 all:    $(ALL)
25
26 $(LIB): $(OBJS)
27         $(call cmd_link_o_target, $(OBJS))
28
29 ifdef 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
32 endif
33
34 #########################################################################
35
36 # defines $(obj).depend target
37 include $(SRCTREE)/rules.mk
38
39 sinclude $(obj).depend
40
41 #########################################################################