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