blob: 9a76f32af57566f5702a5a6997047618358dcaf8 [file] [log] [blame]
Anatolij Gustschind6398902013-02-08 00:03:48 +00001#
2# (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
3#
4# See file CREDITS for list of people who contributed to this
5# project.
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License as
9# published by the Free Software Foundation; either version 2 of
10# the License, or (at your option) any later version.
11#
12
13include $(TOPDIR)/config.mk
14
15LIB = $(obj)lib$(BOARD).o
16
17COBJS-y := $(BOARD).o
18
19COBJS := $(COBJS-y)
20SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(obj).depend $(OBJS)
25 $(call cmd_link_o_target, $(OBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################