blob: 995afbcd5ceee86089533a32d6fb01e014fe64c5 [file] [log] [blame]
roy zang27801b82006-11-02 18:57:21 +08001#
2# (C) Copyright 2000
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# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
23
24include $(TOPDIR)/config.mk
25
roy zangee311212006-12-01 11:47:36 +080026LIB = $(obj)lib$(BOARD).a
roy zang27801b82006-11-02 18:57:21 +080027
roy zangee311212006-12-01 11:47:36 +080028COBJS := $(BOARD).o tsi108_init.o
29SOBJS := asm_init.o
roy zang27801b82006-11-02 18:57:21 +080030
roy zangee311212006-12-01 11:47:36 +080031SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
32OBJS := $(addprefix $(obj),$(COBJS))
33SOBJS := $(addprefix $(obj),$(SOBJS))
roy zang27801b82006-11-02 18:57:21 +080034
roy zangee311212006-12-01 11:47:36 +080035$(LIB): $(obj).depend $(OBJS) $(SOBJS)
36 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
roy zang27801b82006-11-02 18:57:21 +080037
38clean:
39 rm -f $(SOBJS) $(OBJS)
40
roy zangee311212006-12-01 11:47:36 +080041.PHONY: distclean
roy zang27801b82006-11-02 18:57:21 +080042distclean: clean
Wolfgang Denkc8a3b102008-07-02 23:49:18 +020043 rm -f $(LIB) core *.bak $(obj).depend
roy zang27801b82006-11-02 18:57:21 +080044
45#########################################################################
46
roy zangee311212006-12-01 11:47:36 +080047# defines $(obj).depend target
48include $(SRCTREE)/rules.mk
roy zang27801b82006-11-02 18:57:21 +080049
roy zangee311212006-12-01 11:47:36 +080050sinclude ($obj).depend
roy zang27801b82006-11-02 18:57:21 +080051
52#########################################################################