blob: 00eb0f42a16a7a6bc64b6ba1f91e0a9a6ae5d381 [file] [log] [blame]
Hans-Christian Egtvedtd4b48b82008-08-06 14:42:13 +02001#
2# (C) Copyright 2001-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2008 Atmel Corporation
6#
7# See file CREDITS for list of people who contributed to this project.
8#
9# This program is free software; you can redistribute it and/or modify it under
10# the terms of the GNU General Public License as published by the Free Software
11# Foundation; either version 2 of the License, or (at your option) any later
12# version.
13#
14# This program is distributed in the hope that it will be useful, but WITHOUT
15# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17# details.
18#
19# You should have received a copy of the GNU General Public License along with
20# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21# Place, Suite 330, Boston, MA 02111-1307 USA
22
23include $(TOPDIR)/config.mk
24
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025LIB := $(obj)lib$(BOARD).o
Hans-Christian Egtvedtd4b48b82008-08-06 14:42:13 +020026
27COBJS := $(BOARD).o flash.o
28
29SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
30OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
31
32$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010033 $(call cmd_link_o_target, $(OBJS))
Hans-Christian Egtvedtd4b48b82008-08-06 14:42:13 +020034
35#########################################################################
36
37# defines $(obj).depend target
38include $(SRCTREE)/rules.mk
39
40sinclude $(obj).depend
41
42#########################################################################