blob: 76f5be45f54cfcabd80e96d32a72cdb5a833d04f [file] [log] [blame]
Anatolij Gustschina3921ee2010-04-24 19:27:09 +02001#
2# (C) Copyright 2007
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 Gustschina3921ee2010-04-24 19:27:09 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Anatolij Gustschina3921ee2010-04-24 19:27:09 +020011
12COBJS-y := $(BOARD).o
13
14COBJS := $(COBJS-y)
15SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Anatolij Gustschina3921ee2010-04-24 19:27:09 +020021
Anatolij Gustschina3921ee2010-04-24 19:27:09 +020022#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################