blob: e05b9c1c53f67cdab6ba7f21418745f4abb3bf98 [file] [log] [blame]
Anatolij Gustschin4387cf12012-08-31 01:29:57 +00001#
2# (C) Copyright 2005-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 2 of
11# the License, or (at your option) any later version.
12#
13
14include $(TOPDIR)/config.mk
15
16LIB = $(obj)lib$(BOARD).o
17
18COBJS-y := $(BOARD).o
19
20SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS-y))
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#########################################################################