Chander Kashyap | 0d2f277 | 2013-08-21 10:38:56 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 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 | COBJS += arndale_spl.o |
| 12 | |
| 13 | ifndef CONFIG_SPL_BUILD |
| 14 | COBJS += arndale.o |
| 15 | endif |
| 16 | |
| 17 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 18 | OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) |
| 19 | |
| 20 | ALL := $(obj).depend $(LIB) |
| 21 | |
| 22 | all: $(ALL) |
| 23 | |
| 24 | $(LIB): $(OBJS) |
| 25 | $(call cmd_link_o_target, $(OBJS)) |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |