]>
git.ipfire.org Git - people/ms/u-boot.git/blob - examples/standalone/Makefile
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
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.
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.
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,
24 include $(TOPDIR
)/config.mk
31 ELF-
$(CONFIG_SMC91111
) += smc91111_eeprom
32 ELF-
$(CONFIG_SMC911X
) += smc911x_eeprom
33 ELF-
$(CONFIG_SPI_FLASH_ATMEL
) += atmel_df_pow2
34 ELF-i386
+= 82559_eeprom
35 ELF-mpc5xxx
+= interrupt
36 ELF-mpc8xx
+= test_burst timer
37 ELF-mpc8260
+= mem_to_mem_idma2intr
39 ELF-oxc
+= eepro100_eeprom
41 ELF
:= $(ELF-y
) $(ELF-
$(ARCH
)) $(ELF-
$(BOARD
)) $(ELF-
$(CPU
))
42 SREC
= $(addsuffix .srec
,$(ELF
))
43 BIN
= $(addsuffix .bin
,$(ELF
))
47 LIB
= $(obj
)libstubs.a
51 LIBAOBJS-ppc
+= $(ARCH
)_longjmp.o
$(ARCH
)_setjmp.o
52 LIBAOBJS-mpc8xx
+= test_burst_lib.o
53 LIBAOBJS
:= $(LIBAOBJS-
$(ARCH
)) $(LIBAOBJS-
$(CPU
))
57 LIBOBJS
= $(addprefix $(obj
),$(LIBAOBJS
) $(LIBCOBJS
))
59 SRCS
:= $(COBJS
:.o
=.c
) $(LIBCOBJS
:.o
=.c
) $(LIBAOBJS
:.o
=.S
)
60 OBJS
:= $(addprefix $(obj
),$(COBJS
))
61 ELF
:= $(addprefix $(obj
),$(ELF
))
62 BIN
:= $(addprefix $(obj
),$(BIN
))
63 SREC
:= $(addprefix $(obj
),$(SREC
))
65 gcclibdir
:= $(shell dirname
`$(CC) -print-libgcc-file-name`)
69 all: $(obj
).depend
$(OBJS
) $(LIB
) $(SREC
) $(BIN
) $(ELF
)
71 #########################################################################
72 $(LIB
): $(obj
).depend
$(LIBOBJS
)
73 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
76 $(obj
)%: $(obj
)%.o
$(LIB
)
77 $(LD
) -g
-Ttext
$(STANDALONE_LOAD_ADDR
) \
78 -o
$@
-e
$(SYM_PREFIX
)$(notdir $(<:.o
=)) $< $(LIB
) \
83 $(OBJCOPY
) -O srec
$< $@
2>/dev
/null
87 $(OBJCOPY
) -O binary
$< $@
2>/dev
/null
89 #########################################################################
91 # defines $(obj).depend target
92 include $(SRCTREE
)/rules.mk
94 sinclude
$(obj
).depend
96 #########################################################################