SubDir HAIKU_TOP src add-ons kernel file_systems userlandfs server beos ;

local userlandFSTop = [ FDirName $(HAIKU_TOP) src add-ons kernel
	file_systems userlandfs ] ;
local userlandFSIncludes = [ PrivateHeaders userlandfs ] ;

SubDirSysHdrs [ FDirName $(userlandFSIncludes) ] ;
SubDirHdrs [ FDirName $(userlandFSIncludes) private ] ;
SubDirHdrs [ FDirName $(userlandFSIncludes) shared ] ;

SEARCH_SOURCE += [ FDirName $(userlandFSTop) private ] ;
SEARCH_SOURCE += [ FDirName $(userlandFSTop) shared ] ;

DEFINES += USER=1 ;
DEFINES += DEBUG_APP="\\\"libuserlandfs_beos\\\"" ;
DEFINES += BUILDING_USERLAND_FS_SERVER=1 ;

# the library providing the BeOS kernel interface for add-ons
SharedLibrary libuserlandfs_beos_kernel.so
	:
	fs_cache.c
	lock.cpp

	beos_kernel_emu.cpp
	BeOSKernelFileSystem.cpp
	BeOSKernelVolume.cpp

	:
	<nogrist>userlandfs_server
	$(TARGET_LIBSUPC++)
;
