this makefile should help.
1 # file: Makfile
2 # author: david voswinkel
3 # date: 29.12.2002
4
5
6
7 PROG = tunnel
8 AS = arm-agb-elf-as
9 CC = arm-agb-elf-gcc
10 LD = arm-agb-elf-ld
11 OBJ = arm-agb-elf-objcopy
12
13 .SFILES = crt0.s
14 .CFILES = main.c val.c cs.c
15 .OFILES = $(.SFILES:.s=.o) $(.CFILES:.c=.o)
16
17 ASFLAGS = -I. -mthumb-interwork
18 CFLAGS = -g -O3 -I. -mthumb-interwork -nostdlib -Wall -fpeephole
19 LDFLAGS += -Map $(MAPFILE) -nostartfiles -Tlnkscript
20
21 DEPENDFILE = Makedepend
22 MAPFILE = $(PROG).map
23 TARGET_ELF = $(PROG).elf
24 TARGET_BIN = $(PROG).gba
25
26
27 $(TARGET_BIN): $(TARGET_ELF)
28 $(OBJ) -v -O binary $< $@
29 artsdsp visualboyadvance_bin $@
30
31 $(TARGET_ELF): $(.OFILES)
32 @echo > $(MAPFILE)
33 $(CC) -g -o $@ $(.OFILES) -Wl,$(LDFLAGS)
34
35
36 all: $(TARGET_BIN)
On Wednesday 23 February 2005 08:13, Jan Van Belle wrote:
> Hello all,
>
> I'd like to start with Gameboy development (GBA)
> with GCC. I looked around a little on the net and I am
> a bit confused: one binary distro uses the crtls, the
> other one doesn't.
>
> Can someone tell me where I can get a decent linker
> script/libraries ? I've compiled GCC-3.4.3 and
> binutils-2.15.94.0.2 and newlib-1.13.0 for the arm-elf
> target (following the crossgcc script).
>
> How do I convert my compiled *.elf into a *.gba ??
>
> Kind regards,
>
> Jan
>
>
>
>
>
> ___________________________________________________________
> ALL-NEW Yahoo! Messenger - all new features - even more fun!
>
http://uk.messenger.yahoo.com
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>