Page 1 of 1

Simple change to makefile

Posted: Thu Jan 29, 2009 5:20 am
by Sylus101
To specify my own game logo I added the line:

GAME_ICON := /c/DS_Projects/current/logo.bmp

but I'd much rather use an (for lack of a better term) environment variable for the current directory (where the makefile is). I tried several things, and believed $(CURDIR)/logo.bmp should have worked but did not. It ended up looking in the build folder instead. I also tried defining LOGO := logo and added a folder called logo with the logo.bmp inside it, but that didn't work either. Since the LOGO definition was right next to where the TARGET, SOURCES, etc were defined I figured it would have worked but did not.

Thanks in advance for any assistance.

Re: Simple change to makefile

Posted: Fri Jan 30, 2009 1:39 am
by WinterMute
Have a look at the latest template in SVN

http://devkitpro.svn.sourceforge.net/vi ... iew=markup

this will search for $(TARGET).bmp or icon.bmp in the main project folder & use it as an icon. We'll be releasing a new libnds & example set fairly soon.