GP32 I Got Devkitarm_r8 (nearly) Running


ConsoleTom

Member
Joined
Dec 4, 2003
Messages
106
Age
48
Location
Germany
Website
Visit site
Hi !

I managed to get devkitarm running after an instruction from a french site.
Now i could compile my project and it runs. Sounds nice ?

But i get no warnings :huh: ! I need reporting of unused variables, signed/unsigned comparison etc.

In my old Makefile i used in devkitadv i had this line (i think its the reason for the missing warnings):
export CUSER=-DLITTLE_ENDIAN -DGP32 -W -Wall -ansi -pedantic

But in the new Makefile i dont know where to place this !

For any help: thanks in advance (and soon a new gp32_console drumman version can come out !)

New Makefile:

PROG_NAME = iwrotesomethingstupid
LONG_PROG_NAME = astupidprogdoesnotneedaname
OBJS = c:/devkitARM_r8/lib/gpstart.o gpmain.o
AUTHOR = Tobiasz Kozlowski
#ICON = icon.bmp
SDK_INCLUDE_DIR = C:/devkitARM_r8/include.
SDK_LIB_DIR = C:/devkitARM_r8/arm-elf/lib
SDK_LIBS = -lgpfont -lgpstdlib -lgpos -lgpgraphic -lgpstdio -lgpsound -lgpmem -lstdc++

CC = arm-elf-gcc

AS = arm-elf-as

INCDIRS = -Ic:/devkitARM_r8/include -I$(SDK_INCLUDE_DIR)

CPPFLAGS = $(INCDIRS) -DLITTLE_ENDIAN -DGP32 -mcpu=arm9tdmi -mtune=arm9tdmi -fexpensive-optimizations -mapcs -Os -mstructure-size-boundary=8 -mno-thumb-interwork -fno-builtin -fno-common -fno-exceptions -finline-functions -fomit-frame-pointer -fshort-enums -ffast-math -fshort-double

LDBASEFLAGS = -L$(SDK_LIB_DIR) -specs=gp32_gpsdk.specs $(SDK_LIBS) -lm

#-Tlnkscript -lgpfont -lgpstdlib -lgpos -lgpgraphic -lgpstdio -lgpsound -lgpmem -lm

STRIP = -s

CFLAGS = $(CPPFLAGS)
LDFLAGS = $(STRIP) $(LDBASEFLAGS)

TARGET = $(PROG_NAME).fxe

all: $(TARGET)

cleanobjs:
del /F $(OBJS)

cleanbin:
del /F $(PROG_NAME).fxe $(PROG_NAME).gxb $(PROG_NAME).elf

clean: cleanobjs cleanbin

# Dependency rules

$(TARGET): $(PROG_NAME).gxb
# b2fxec -t "$(LONG_PROG_NAME)" -a "$(AUTHOR)" -b "$(ICON)" $? $@
b2fxec -t "$(LONG_PROG_NAME)" -a "$(AUTHOR)" $? $@

$(PROG_NAME).gxb: $(PROG_NAME).elf
arm-elf-objcopy -O binary $? $@

$(PROG_NAME).elf: $(OBJS)
$(CC) $? $(LIBDIRS) $(LDFLAGS) -o $@
 
Back
Top