The GPH SDK is a bit of a mess I found (layout in particular.) I don't use Code:Blocks or any of that business, so to integrate it into my existing makefiles was easy enough. Could just use a more recent gcc and link to their libs, but I was lazy last night and it only took 10 minutes to get up and going with their pile
For Linux (similar for windows (cygwin?) I imagine)
1) Extract the base "DGE" to somewhere. (Note .. do they release the source for the 'dge lib' anywhere, or just the lib bins? I didn't look too hard, but be sort of odd if they don't release the DGE lib source, but I digress.)
2) Extract the 'caanoo update' to bas eof that dir, it looks like. This adds a couple libs and some sample code.
The layout is odd, in that there is ./include and ./DGE/include and the same sort of thing for libs; it might make sense if it was divided nicely, but DGE/include and DGE/libs have a lot of stuff nothing to do with DGE so it just seems an odd division; really should just be one include and lib dir imho. More to point is theres are more like /usr/include and /usr/lib, but anyway.
In my makefiles, I include a config.mk type file that sets up the basics, which is (going from memory):
SDKBASE = /path/to/GPH_SDK that you extracted in (1)
TOOLBASE = ${SDKBASE}/tools\gcc-4.2.4-glibc-2.7-eabi\bin\arm-gph-linux-gnueabi-
CC = ${TOOLBASE}gcc
CFLAGS_ADD = -I${$SDKBASE}/include -I${$SDKBASE}/DGE/include -I${$SDKBASE}/DGE/include/SDL
LDFLAGS_ADD = -L{$SDKBASE}/lib -L{$SDKBASE}/DGE/lib
Then in any given Makefile, in your CFLAGS and LDFLAGS just add in the bits from above (or use them as-is.)
ie: I do something like..
.include config.mk # pull in caanoo makefile template above
CFLAGS = -Wall ${CFLAGS_ADD}
LDFLAGS = ${LDFLAGS_ADD} -lSDL
that sort of thing.
For BattleJewels, I duped the Wiz platform code to a new Caanoo directory, added those what, 10 lines, to the Makefile, and *poof*, out popped BJ no problem per se.
(Audio works, touchscreen works, SDL worked; only thing that didn't work was joystick and buttons, since they're different on Caanoo.. should be a 20 min fix once I look it up. In this case it'll use SDL as I didn't have time to convert Wiz to native, but if SDL is good enough, I'll let it stand.)
jeff