9645e455e7352aab4ec0cc0bdee28edf5f99599a
[platform/kernel/u-boot.git] / board / netstal / hcu5 / Makefile
1 #
2 # (C) Copyright 2007 Netstal Maschinen AG
3 # Niklaus Giger (ng@netstal.com)
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License as
7 # published by the Free Software Foundation; either version 2 of
8 # the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 # MA 02111-1307 USA
19 #
20
21 include $(TOPDIR)/config.mk
22
23 LIB     = $(obj)lib$(BOARD).a
24
25 vpath hcu_flash.c ../common
26 vpath nm_bsp.c ../common
27
28 # NOBJS : Netstal common objects
29 NOBJS   = hcu_flash.o nm_bsp.o
30 COBJS   = $(BOARD).o sdram.o
31 SOBJS   = init.o
32
33 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c) ../common/$(NOBJS:.o=.c)
34 OBJS    := $(addprefix $(obj),$(COBJS))
35 NOBJS   := $(addprefix $(obj),$(NOBJS))
36 SOBJS   := $(addprefix $(obj),$(SOBJS))
37
38 $(LIB): $(OBJS) $(SOBJS) $(NOBJS)
39         $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) $(NOBJS)
40
41 clean:
42         rm -f $(SOBJS) $(OBJS)
43
44 distclean:      clean
45         rm -f $(LIB) core *.bak .depend
46
47 #########################################################################
48
49 # defines $(obj).depend target
50 include $(SRCTREE)/rules.mk
51
52 sinclude $(obj).depend
53
54 #########################################################################