blob: 81eb7e72ded44887bf08cd6dd0ea1e8f2e980e61 [file] [log] [blame]
David Brownell28b00322009-05-15 23:48:37 +02001#
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+
David Brownell28b00322009-05-15 23:48:37 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
David Brownell28b00322009-05-15 23:48:37 +020013
14COBJS := $(BOARD).o
15SOBJS :=
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
David Brownell28b00322009-05-15 23:48:37 +020023
David Brownell28b00322009-05-15 23:48:37 +020024#########################################################################
25# This is for $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################