Page 1 of 1

Absolute Path In Compiler Errors?

Posted: Tue Jul 16, 2013 5:25 pm
by djcouchycouch
Is it possible to modify the SGDK makefile so that when an error occurs in a .h/.c file, it outputs the absolute path to it?

I've spent a few hours to find a solution on my end, but barely knowing anything about makefiles, I've never gotten anything to work.

Thanks!
DJCC

Posted: Wed Jul 17, 2013 10:11 pm
by Stef
I'm not an makefile expert too but i believe you can retrieve the current directory with the

Code: Select all

 $(CURDIR) 
variable so to get the absolute path you could probably do something as concatenating $(CURDIR) and 'output file' ?