blob: 16e390d80b69393dead60f5cccdbafb9b0e1a3e9 [file] [log] [blame]
Christian Riesch9a3aae22012-02-02 00:44:42 +00001#
2# (C) Copyright 2000, 2001, 2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Christian Riesch9a3aae22012-02-02 00:44:42 +00008#
9
10include $(TOPDIR)/config.mk
11
12LIB = $(obj)lib$(BOARD).o
13
14COBJS := $(BOARD).o
15
16SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS) $(SOBJS)
21 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
22
23#########################################################################
24# This is for $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################