blob: 81eb7e72ded44887bf08cd6dd0ea1e8f2e980e61 [file] [log] [blame]
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -04001#
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+
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -04008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -040013
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))
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -040023
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -040024#########################################################################
25# This is for $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################