blob: 8b3173ca1e0de635697d5732d58ed5ec3c1f542b [file] [log] [blame]
Stefan Roeseb79316f2005-08-15 12:31:23 +02001#
2# (C) Copyright 2005
3# Sandburst Corporation
4# Travis B. Sawyer
5#
6# See file CREDITS for list of people who contributed to this
7# project.
8#
9# This program is free software; you can redistribute it and/or
10# modify it under the terms of the GNU General Public License as
11# published by the Free Software Foundation; either version 2 of
12# the License, or (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22# MA 02111-1307 USA
23#
24
25include $(TOPDIR)/config.mk
26
27# TBS: add for debugging purposes
28BUILDUSER := $(shell whoami)
29FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o)
30
31CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
32# TBS: end debugging
33
34
35LIB = lib$(BOARD).a
36
37OBJS = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \
38 ../common/sb_common.o
39
40SOBJS = init.o
41
42
43$(LIB): $(OBJS) $(SOBJS)
44 $(AR) crv $@ $(OBJS)
45
46clean:
47 rm -f $(SOBJS) $(OBJS)
48
49distclean: clean
50 rm -f $(LIB) core *.bak .depend *~
51
52#########################################################################
53
54.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
55 $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
56
57sinclude .depend
58
59#########################################################################