blob: ea0b9b4d3a4b59c4bea9f351b95d37dbc950ed54 [file] [log] [blame]
Heiko Schocherdc5f4e42007-02-16 07:57:42 +01001
2#
3# (C) Copyright 2003-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Heiko Schocherdc5f4e42007-02-16 07:57:42 +01007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Heiko Schocherdc5f4e42007-02-16 07:57:42 +010012
13COBJS := $(BOARD).o
14
15SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Heiko Schocherdc5f4e42007-02-16 07:57:42 +010021
Heiko Schocherdc5f4e42007-02-16 07:57:42 +010022#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################