Chander Kashyap | ed2e25a | 2012-02-05 23:01:47 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 Samsung Electronics |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Chander Kashyap | ed2e25a | 2012-02-05 23:01:47 +0000 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB = $(obj)lib$(BOARD).o |
| 10 | |
Rajeshwari Shinde | 14633d1 | 2012-07-03 20:02:52 +0000 | [diff] [blame] | 11 | COBJS += smdk5250_spl.o |
Chander Kashyap | 1633dd1 | 2012-02-05 23:01:48 +0000 | [diff] [blame] | 12 | |
| 13 | ifndef CONFIG_SPL_BUILD |
Amar | bb54b75 | 2013-04-27 11:42:57 +0530 | [diff] [blame] | 14 | ifdef CONFIG_OF_CONTROL |
| 15 | COBJS += exynos5-dt.o |
| 16 | else |
Chander Kashyap | ed2e25a | 2012-02-05 23:01:47 +0000 | [diff] [blame] | 17 | COBJS += smdk5250.o |
Chander Kashyap | 1633dd1 | 2012-02-05 23:01:48 +0000 | [diff] [blame] | 18 | endif |
Amar | bb54b75 | 2013-04-27 11:42:57 +0530 | [diff] [blame] | 19 | endif |
Chander Kashyap | 1633dd1 | 2012-02-05 23:01:48 +0000 | [diff] [blame] | 20 | |
Rajeshwari Shinde | bed2442 | 2013-07-04 12:29:17 +0530 | [diff] [blame] | 21 | SRCS := $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
Chander Kashyap | ed2e25a | 2012-02-05 23:01:47 +0000 | [diff] [blame] | 23 | |
Rajeshwari Shinde | bed2442 | 2013-07-04 12:29:17 +0530 | [diff] [blame] | 24 | ALL := $(obj).depend $(LIB) |
Chander Kashyap | ed2e25a | 2012-02-05 23:01:47 +0000 | [diff] [blame] | 25 | |
| 26 | all: $(ALL) |
| 27 | |
| 28 | $(LIB): $(OBJS) |
| 29 | $(call cmd_link_o_target, $(OBJS)) |
| 30 | |
| 31 | ######################################################################### |
| 32 | |
| 33 | # defines $(obj).depend target |
| 34 | include $(SRCTREE)/rules.mk |
| 35 | |
| 36 | sinclude $(obj).depend |
| 37 | |
| 38 | ######################################################################### |