blob: dc40f300f9ba38fc3436b470ddba8ddd1148ac5a [file] [log] [blame]
Alison Wangefa9f282012-10-18 19:25:52 +00001# Copyright 2010-2012 Freescale Semiconductor, Inc.
2# TsiChung Liew (Tsi-Chung.Liew@freescale.com)
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Alison Wangefa9f282012-10-18 19:25:52 +00005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
11COBJS = $(BOARD).o
12
13SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
14OBJS := $(addprefix $(obj),$(COBJS))
15SOBJS := $(addprefix $(obj),$(SOBJS))
16
17$(LIB): $(obj).depend $(OBJS)
18 $(call cmd_link_o_target, $(OBJS))
19
20#########################################################################
21
22# defines $(obj).depend target
23include $(SRCTREE)/rules.mk
24
25sinclude $(obj).depend
26
27#########################################################################