blob: 3e67a65863ed5b5ac1847b616e6275273f9a9700 [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
25LIB := $(obj)lib$(BOARD).a
26
27COBJS := $(BOARD).o flash.o
28
29SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
30OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
31
32$(LIB): $(obj).depend $(OBJS)
33 $(AR) $(ARFLAGS) $@ $(OBJS)
34
35#########################################################################
36
37# defines $(obj).depend target
38include $(SRCTREE)/rules.mk
39
40sinclude $(obj).depend
41
42#########################################################################