Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
GCC GBA development ?   Message List  
Reply | Forward Message #14875 of 15019 |
Re: [gbadev] GCC GBA development ?



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
>
>
>






Wed Feb 23, 2005 12:11 pm

optixx2002
Offline Offline
Send Email Send Email

Forward
Message #14875 of 15019 |
Expand Messages Author Sort by Date

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...
Jan Van Belle
janvanbelle
Offline Send Email
Feb 23, 2005
11:59 am

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 =...
David Voswinkel
optixx2002
Offline Send Email
Feb 23, 2005
7:13 pm

... Use devkitARM found at http://sourceforge.net/projects/devkitpro the buildscripts are available there should you wish/need to compile from source. There...
Dave Murphy
gameboy_dave
Online Now Send Email
Feb 23, 2005
7:13 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help