blob: 0bec8af8d5acabba837b0a5d7530331924c5a90d [file] [log] [blame]
Heiko Schocher4e5781b2008-08-21 20:44:49 +02001#
2# (C) Copyright 2008
3# Heiko Schocher, DENX Software Engineering, hs@denx.de.
4#
5# (C) Copyright 2003-2006
6# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Heiko Schocher4e5781b2008-08-21 20:44:49 +02009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Heiko Schocher4e5781b2008-08-21 20:44:49 +020014
15COBJS := $(BOARD).o
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Heiko Schocher4e5781b2008-08-21 20:44:49 +020023
Heiko Schocher4e5781b2008-08-21 20:44:49 +020024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################