Good point...I'd not thought of that. I guess I was looking for a permanent solution rather than a quick fix. I'm happy to do this, but I thought it was something that could catch other people out. That and I like the idea of 'system' and 'local' includes being treated differently (it irks me when people do #include <localfile.h>, because I'm a pedant :))
Another thing I noticed was that the CFLAGS options get included in the CXXFLAGS and ASFLAGS options twice (in many of the samples at least). E.g. when I speicified:
Code: Select all
INCDIR = ./Blah -
CFLAGS = -O -G0 -Wall -DBLAH
I see this compile error with Foo.cpp:
Code: Select all
psp-g++ -I./Blah -I- -I. -I/usr/local/pspdev/psp/sdk/include -O -G0 -Wall -DBLAH -I./Blah -I- -I. -I/usr/local/pspdev/psp/sdk/include -O -G0 -Wall -DBLAH -fno-exceptions -fno-rtti -c -o Source/Foo.o Source/Foo.cpp
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: error: -I- specified twice
Because $(CFLAGS) is concatenated to CXXFLAGS in both the Makefile and build.mak. It's not really a problem, but it doesn't seem like what was intended.
It's a minor issue anyway, I'm just glad my code is compiling :)