SubDir HAIKU_TOP src add-ons kernel bus_managers usb ; 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 ; } KernelStaticLibrary libusb.a : Stack.cpp Device.cpp Hub.cpp BusManager.cpp Transfer.cpp Pipe.cpp Interface.cpp Object.cpp PhysicalMemoryAllocator.cpp $(compatSources) ; KernelAddon usb : usb.cpp : libusb.a : usb.rdef ; SEARCH on [ FGristFiles $(compatSources) ] = [ FDirName $(HAIKU_TOP) src system kernel util ] ;