Simple change to makefile

Post Reply
Sylus101
Posts: 179
Joined: Wed Dec 24, 2008 5:08 am

Simple change to makefile

Post by Sylus101 » Thu Jan 29, 2009 5:20 am

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.
-Sylus "Not Stylus..." McFrederickson

Come visit my web site.

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Simple change to makefile

Post by WinterMute » Fri Jan 30, 2009 1:39 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests