blob: 1dd3fe9555e0fadca27572521e4ab9eb5e9eef26 [file] [log] [blame]
Anatolij Gustschin4387cf12012-08-31 01:29:57 +00001#
2# (C) Copyright 2005-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Anatolij Gustschin4387cf12012-08-31 01:29:57 +00006#
7
8include $(TOPDIR)/config.mk
9
10LIB = $(obj)lib$(BOARD).o
11
12COBJS-y := $(BOARD).o
13
14SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
15OBJS := $(addprefix $(obj),$(COBJS-y))
16SOBJS := $(addprefix $(obj),$(SOBJS))
17
18$(LIB): $(obj).depend $(OBJS)
19 $(call cmd_link_o_target, $(OBJS))
20
21#########################################################################
22
23# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
25
26sinclude $(obj).depend
27
28#########################################################################