Make it buildable on BeOS again... The last time now, the next time BeOS support will simply be removed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30064 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2009-04-09 13:02:46 +00:00
parent eb01fb72f6
commit 3e907cd4a0

View File

@ -4,10 +4,15 @@ SetSubDirSupportedPlatformsBeOSCompatible ;
SubDirC++Flags -fno-rtti ;
local compatSources ;
SubDirSysHdrs $(SUBDIR) ;
if $(TARGET_PLATFORM) != haiku {
UsePrivateHeaders kernel ;
UsePublicHeaders drivers ;
if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
compatSources = kernel_cpp.cpp ;
}
} else {
UsePrivateKernelHeaders ;
}
@ -22,6 +27,7 @@ KernelStaticLibrary libusb.a :
Interface.cpp
Object.cpp
PhysicalMemoryAllocator.cpp
$(compatSources)
: -fno-pic
;
@ -31,3 +37,5 @@ KernelAddon usb :
: usb.rdef
;
SEARCH on [ FGristFiles $(compatSources) ]
= [ FDirName $(HAIKU_TOP) src system kernel util ] ;