Absolute Path In Compiler Errors?

SGDK only sub forum

Moderator: Stef

Post Reply
djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

Absolute Path In Compiler Errors?

Post 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
Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post 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' ?
Post Reply