]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/voiceblue/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / board / voiceblue / Makefile
CommitLineData
f9328639 1# (C) Copyright 2000-2006
3c2b3d45
WD
2# Wolfgang Denk, DENX Software Engineering, wd@denx.de
3#
4# (C) Copyright 2005
5# Ladislav Michl, 2N Telekomunikace, michl@2n.cz
6#
7# See file CREDITS for list of people who contributed to this
8# project.
9#
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License version 2 as
12# published by the Free Software Foundation.
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
6d8962e8 27LIB = $(obj)lib$(BOARD).o
3c2b3d45 28
f9328639 29COBJS := voiceblue.o
3c2b3d45
WD
30SOBJS := setup.o
31
5c97a1de 32SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
f9328639
MB
33OBJS := $(addprefix $(obj),$(COBJS))
34SOBJS := $(addprefix $(obj),$(SOBJS))
35
3c2b3d45 36LOAD_ADDR = 0x10400000
5c97a1de
LM
37
38#########################################################################
3c2b3d45 39
f9328639 40all: $(obj).depend $(LIB) $(obj)eeprom.srec $(obj)eeprom.bin
3c2b3d45
WD
41
42$(LIB): $(OBJS) $(SOBJS)
6d8962e8 43 $(call cmd_link_o_target, $^)
5c97a1de
LM
44
45$(obj)eeprom_start.o:
46 echo "b eeprom" | $(CC) $(AFLAGS) -c -x assembler -o $@ -
3c2b3d45 47
5c97a1de
LM
48$(obj)eeprom: $(obj)eeprom_start.o $(obj)eeprom.o
49 $(LD) -Ttext $(LOAD_ADDR) -e eeprom -o $@ $^ \
48677a1e 50 -L$(obj)../../examples/standalone -lstubs \
5c97a1de 51 $(PLATFORM_LIBS)
3c2b3d45 52
5c97a1de
LM
53$(obj)eeprom.srec: $(obj)eeprom
54 $(OBJCOPY) -S -O srec $(<:.o=) $@
3c2b3d45 55
5c97a1de
LM
56$(obj)eeprom.bin: $(obj)eeprom
57 $(OBJCOPY) -S -O binary $< $@
1aada9cd 58
3c2b3d45 59clean:
f9328639
MB
60 rm -f $(SOBJS) $(OBJS) $(obj)eeprom \
61 $(obj)eeprom.srec $(obj)eeprom.bin \
5c97a1de 62 $(obj)eeprom.o $(obj)eeprom_start.o
3c2b3d45
WD
63
64distclean: clean
c8a3b109 65 rm -f $(LIB) core *.bak $(obj).depend
3c2b3d45
WD
66
67#########################################################################
68
f9328639
MB
69# defines $(obj).depend target
70include $(SRCTREE)/rules.mk
3c2b3d45 71
f9328639 72sinclude $(obj).depend
3c2b3d45
WD
73
74#########################################################################