blob: c85223385b80267fe1c990b282310436bd370511 [file] [log] [blame]
Stefan Roese204e8e32007-01-31 16:37:34 +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+
Stefan Roese204e8e32007-01-31 16:37:34 +01007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Stefan Roese204e8e32007-01-31 16:37:34 +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))
Stefan Roese204e8e32007-01-31 16:37:34 +010021
Stefan Roese204e8e32007-01-31 16:37:34 +010022#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################