]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - board/sandburst/karef/Makefile
8b3173ca1e0de635697d5732d58ed5ec3c1f542b
[karo-tx-uboot.git] / board / sandburst / karef / Makefile
1 #
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
25 include $(TOPDIR)/config.mk
26
27 # TBS: add for debugging purposes
28 BUILDUSER := $(shell whoami)
29 FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o)
30
31 CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
32 # TBS: end debugging
33
34
35 LIB     = lib$(BOARD).a
36
37 OBJS    = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \
38         ../common/sb_common.o
39
40 SOBJS   = init.o
41
42
43 $(LIB): $(OBJS) $(SOBJS)
44         $(AR) crv $@ $(OBJS)
45
46 clean:
47         rm -f $(SOBJS) $(OBJS)
48
49 distclean:      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
57 sinclude .depend
58
59 #########################################################################