blob: 870314a168227b61948fab3442d133111ab49f2a [file] [log] [blame]
Hugo Villeneuve4f3f6712008-05-21 13:58:41 -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 Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Hugo Villeneuve4f3f6712008-05-21 13:58:41 -04008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Hugo Villeneuve4f3f6712008-05-21 13:58:41 -040013
Hugo Villeneuve20eca7e2008-07-08 11:02:05 -040014COBJS := $(BOARD).o
Hugo Villeneuve4f3f6712008-05-21 13:58:41 -040015SOBJS := board_init.o
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Hugo Villeneuve4f3f6712008-05-21 13:58:41 -040023
Hugo Villeneuve4f3f6712008-05-21 13:58:41 -040024#########################################################################
25# This is for $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################