blob: 98a5046f4558165af054fdb6abecdff35d2baaca [file] [log] [blame]
Michal Simekf22651c2012-09-28 09:56:37 +00001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Michal Simekf22651c2012-09-28 09:56:37 +00006#
7
8include $(TOPDIR)/config.mk
Michal Simekf22651c2012-09-28 09:56:37 +00009
10LIB = $(obj)lib$(BOARD).o
11
12COBJS-y := board.o
13
14COBJS := $(sort $(COBJS-y))
15
16SRCS := $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18
19$(LIB): $(obj).depend $(OBJS)
20 $(call cmd_link_o_target, $(OBJS))
21
22clean:
23 rm -f $(OBJS)
24
25distclean: clean
26 rm -f $(LIB) core *.bak $(obj).depend
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################