blob: abca765d7254eeff54135a801fb8f7b986a4c3f1 [file] [log] [blame]
wdenk3bac3512003-03-12 10:41:04 +00001#######################################################################
2#
3# Copyright (C) 2000, 2001, 2002, 2003
4# The LEOX team <team@leox.org>, http://www.leox.org
5#
6# LEOX.org is about the development of free hardware and software resources
7# for system on chip.
8#
9# Description: U-Boot port on the LEOX's ELPT860 CPU board
10# ~~~~~~~~~~~
11#
12#######################################################################
13#
14# This program is free software; you can redistribute it and/or
15# modify it under the terms of the GNU General Public License as
16# published by the Free Software Foundation; either version 2 of
17# the License, or (at your option) any later version.
18#
19# This program is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details.
23#
24# You should have received a copy of the GNU General Public License
25# along with this program; if not, write to the Free Software
26# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27# MA 02111-1307 USA
28#
29#######################################################################
30
31include $(TOPDIR)/config.mk
32
33LIB = lib$(BOARD).a
34
35OBJS = $(BOARD).o flash.o
36
37$(LIB): .depend $(OBJS)
38 $(AR) crv $@ $^
39
40#########################################################################
41
42.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
43 $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
44
45sinclude .depend
46
47#########################################################################