gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > devkitPro/msys make issues

#135705 - kusma - Wed Jul 25, 2007 5:58 pm

Given this makefile:
Code:
define template
$1_VAR := $1
endef

$(eval $(call template,TEST))
test:
   echo $(TEST_VAR)

I get this output with cygwin make (and other unix-builds):
Quote:
$ /c/cygwin/bin/make -f test.mak
echo TEST
TEST
$

Whereas the make that comes with devkitPro (it's a part of msys, it seems) gives me this:
Quote:
$ /c/gba/devkitPro/msys/bin/make -f test.mak
echo

$


Now, this has become a headache to me, cause I'm working on a new make system for pimpmobile, and the ability to set variables from functions that get evaluated is really handy. It seems to me that the make-version included in devkitPro is 7 years old, and this might be the cause of my problem.

Here's the version of my cygwin-make:
Quote:
$ /c/cygwin/bin/make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-cygwin
$

And here's the version of my msys-make:
Quote:
$ /c/gba/devkitPro/msys/bin/make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-msys
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make@gnu.org>.
$

Does anyone know any workarounds for this, and/or will the make-version in msys ever be updated?

#135726 - kusma - Wed Jul 25, 2007 8:17 pm

Update: There's a newer version of GNU make for msys here:
http://sourceforge.net/project/showfiles.php?group_id=32663&package_id=82340

If possible, it'd be neat if this or some other version based off the same source code would be included into the next release of devkitPro.

I don't really want to require anything else than devkitPro to build my project ;)

#135947 - wintermute - Fri Jul 27, 2007 7:38 pm

I'll be updating the entire msys distro provided with devkitPro soon to cope with some Vista related issues.

In the meantime you could give the current snapshot a whirl and see how that works out for you.

http://devkitpro.sf.net/msys-snapshot.zip
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#136124 - kusma - Sun Jul 29, 2007 3:10 pm

Awesome! That did the trick! Thanks a lot, and I hope this will be included in the next release :)