blob: 275be0a1a9a262fb82cc51775ccdd4aa8451a7ff [file] [log] [blame]
Tim Schendekehl14c32612011-11-01 23:55:01 +00001#
2# (C) Copyright 2003-2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2010
6# egnite GmbH
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Tim Schendekehl14c32612011-11-01 23:55:01 +00009#
10
11include $(TOPDIR)/config.mk
12
13LIB = $(obj)lib$(BOARD).o
14
15COBJS-y += $(BOARD).o
16COBJS-y += $(BOARD)_pwrman.o
17
18SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
23 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
24
25#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################