SubDir OBOS_TOP src tests add-ons kernel file_systems udf udf_shell ;

SubDirHdrs $(OBOS_TOP) src tests add-ons kernel file_systems fs_shell ;
SubDirHdrs $(OBOS_TOP) src add-ons kernel file_systems udf ;

UsePrivateHeaders [ FDirName kernel util ] ;

{
	local defines = [ FDefines USER ] ; # DEBUG _NO_INLINE_ASM
	SubDirCcFlags $(defines) -fno-exceptions -fno-rtti ; #-fcheck-memory-usage
	SubDirC++Flags $(defines) -fno-exceptions -fno-rtti ; #-fcheck-memory-usage
}

SimpleTest udf_shell
	:
	fsh.c rootfs.c initfs.c kernel.c cache.c sl.c stub.c
	sysdep.c hexdump.c argv.c tracker.cpp

	udf.cpp
	DirectoryIterator.cpp DString.cpp Icb.cpp
	MetadataPartition.cpp PhysicalPartition.cpp Recognition.cpp
	UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp
	SparablePartition.cpp VirtualPartition.cpp Volume.cpp 
	:
	;

# Tell Jam where to find these sources
SEARCH on [ FGristFiles
		udf.cpp 
		CS0String.cpp DirectoryIterator.cpp DString.cpp Icb.cpp
		MetadataPartition.cpp PhysicalPartition.cpp Recognition.cpp
		UdfDebug.cpp  UdfString.cpp UdfStructures.cpp Utils.cpp
		SparablePartition.cpp VirtualPartition.cpp Volume.cpp 
	] = [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ;

SEARCH on [ FGristFiles
		fsh.c rootfs.c initfs.c kernel.c cache.c sl.c stub.c
		sysdep.c hexdump.c argv.c tracker.cpp
	] = [ FDirName $(OBOS_TOP) src tests add-ons kernel file_systems fs_shell ] ;
