coRp
Still Fresh
okay, I've finally (as far as I know) set up my gp32 dev environment. I have the devkitadv.zip file from Rico's site, I have Mirko's SDK, and I have Alessandro's IDE.
I've started developing in the IDE (which i thoroughly recommend to anyone who hasn't got it - especially seeing as the new, even better version is coming out shortly (hopefully)), but I have hit a hitch... when I compile, once it reaches 'MAKE' on the DOS screen, it has been coming up with errors. every time I have sorted one out in gp32.mk, a new problem has appeared, even in areas i haven't touched. now, there is a new problem, one which I can't seem to fix - or even work out where the problem is...
i get this error message:
can anyone help? this is my gp32.mk file:
I've started developing in the IDE (which i thoroughly recommend to anyone who hasn't got it - especially seeing as the new, even better version is coming out shortly (hopefully)), but I have hit a hitch... when I compile, once it reaches 'MAKE' on the DOS screen, it has been coming up with errors. every time I have sorted one out in gp32.mk, a new problem has appeared, even in areas i haven't touched. now, there is a new problem, one which I can't seem to fix - or even work out where the problem is...
i get this error message:
MAKE: *** No rule to make target '2'. Stop.
can anyone help? this is my gp32.mk file:
Code:
# Makefile for GP32 development using devkitadv under Win32
# Written 2002 by Christian Nowak <chnowak@web.de>
# Settings
PREFIX=arm-agb-elf-
CC=$(CCBASE)/bin/$(PREFIX)gcc
CFLAGS=$(CUSER) \
-mcpu=arm9tdmi \
-mtune=arm9tdmi \
-fexpensive-optimizations \
-mapcs \
-O3 \
-mstructure-size-boundary=8 \
-mno-thumb-interwork \
-fno-builtin \
-fno-common \
-fno-exceptions \
-finline-functions \
-fomit-frame-pointer \
-fshort-enums \
-ffast-math \
-fshort-double \
-fallow-single-precision \
-ffreestanding \
-I$(CCBASE)/arm-agb-elf/include/gp32 \
-I$(CCBASE)/arm-agb-elf/include
CPPFLAGS=$(CUSER) \
-mcpu=arm9tdmi \
-mtune=arm9tdmi \
-O3 \
-mstructure-size-boundary=32 \
-finline-functions \
-fomit-frame-pointer \
-mno-thumb-interwork \
-fno-exceptions \
-fno-common \
-fno-builtin \
-fshort-enums \
-ffast-math \
-fshort-double \
-fexpensive-optimizations \
-mapcs \
-I$(CCBASE)/arm-agb-elf/include/gp32 \
-I$(CCBASE)/arm-agb-elf/include
LD=$(CC)
LNKSCRIPT=$(CCBASE)/arm-agb-elf/lib/lnkscript
LDFLAGS=-Wl,-T $(LNKSCRIPT)
GPLIBS=c:\devkitadv\sdk063\gp32_sdk\lib\gp_common.a c:\devkitadv\sdk063\gp32_sdk\lib\gp_font8.a c:\devkitadv\sdk063\gp32_sdk\lib\gp_smc.a c:\devkitadv\sdk063\gp32_sdk\lib\gp_sound.a c:\devkitadv\sdk063\gp32_sdk\lib\gp_sprite.a c:\devkitadv\sdk063\gp32_sdk\lib\gp_zda.a
AS=$(CCBASE)/bin/$(PREFIX)as
# OBJS
GPSTART=$(CCBASE)/arm-agb-elf/lib/gpsdk/gpstart/gpstart.o
GPOBJS=$(GPSTART)
# $(CCBASE)/arm-agb-elf/lib/gp32_fileio/gp32_fileio.o
LINK=$(LD) $(LDFLAGS) -o $@ $^ $(GPOBJS) $(GPLIBS)
OBJCOPY=$(CCBASE)/bin/$(PREFIX)objcopy
# Implicit Rules
%.o: %.c
$(CC) $(CFLAGS) -c $<
%.o: %.cpp
$(CC) $(CPPFLAGS) -c $<
%.gxb: %.elf
$(OBJCOPY) -O binary $< $@
%.o: %.s
$(AS) -o $@ $<