To be able to build from other directories we need to add the subdir path to the included headers.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@246 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2002-07-15 16:24:53 +00:00
parent 4a0ef275e3
commit 0505163bc5

@ -2,11 +2,11 @@ SubDir OBOS_TOP src tests add-ons kernel file_systems befs btree ;
SubDirHdrs $(OBOS_TOP) src add-ons kernel file_systems befs ;
rule FPreIncludes { return -include\ $(<) ; }
rule FPreIncludes { return -include\ $(1:D=$(SUBDIR)) ; }
{
local defines = [ FDefines USER DEBUG ] ; # _NO_INLINE_ASM
local preIncludes = [ FPreIncludes ./Journal.h ./Inode.h ] ;
local preIncludes = [ FPreIncludes Journal.h Inode.h ] ;
SubDirC++Flags $(defines) $(preIncludes) -fno-exceptions -fno-rtti ; #-fcheck-memory-usage
}