xref: /haiku/src/add-ons/kernel/file_systems/udf/Jamfile (revision c49e0c68b013ebe90a3a48d5e98b5788ba2e6542)
1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src add-ons kernel file_systems udf ;
270eaa1f5STyler Dauwalder
37d4d702eSJérôme DuvalSetSubDirSupportedPlatformsBeOSCompatible ;
4662e61b3SNathan WhitehornSubDirC++Flags -fno-rtti ;
5662e61b3SNathan Whitehorn
670eaa1f5STyler Dauwalder# save original optimization level
770eaa1f5STyler DauwalderoldOPTIM = $(OPTIM) ;
870eaa1f5STyler Dauwalder
970eaa1f5STyler Dauwalder# set some additional defines
1070eaa1f5STyler Dauwalder{
1170eaa1f5STyler Dauwalder	local defines =
1270eaa1f5STyler Dauwalder		KEEP_WRONG_DIRENT_RECLEN
1370eaa1f5STyler Dauwalder		;
1470eaa1f5STyler Dauwalder
1570eaa1f5STyler Dauwalder	defines += COMPILE_FOR_R5 ;
1670eaa1f5STyler Dauwalder
17c1b7aba3SIngo Weinhold	if $(DEBUG) = 0 {
1870eaa1f5STyler Dauwalder		# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
1970eaa1f5STyler Dauwalder		OPTIM = -O1 ;
2070eaa1f5STyler Dauwalder	}
2170eaa1f5STyler Dauwalder
2270eaa1f5STyler Dauwalder	defines = [ FDefines $(defines) ] ;
2370eaa1f5STyler Dauwalder	SubDirCcFlags $(defines) -Wall -Wno-multichar ;
2470eaa1f5STyler Dauwalder	SubDirC++Flags $(defines) -Wall -Wno-multichar ;
2570eaa1f5STyler Dauwalder}
2670eaa1f5STyler Dauwalder
277d4d702eSJérôme DuvalUsePrivateHeaders kernel ;			# For kernel_cpp.cpp
28c52519cfSTyler DauwalderUsePrivateHeaders [ FDirName kernel util ] ;	# For all the UDF source files
2904062eb9STyler Dauwalder
30*c49e0c68SJérôme DuvalKernelAddon udf :
31c52519cfSTyler Dauwalder	kernel_cpp.cpp
32497bc759STyler Dauwalder	udf.cpp
3370eaa1f5STyler Dauwalder
34865abd0eSTyler Dauwalder	DirectoryIterator.cpp
3557c80a0cSTyler Dauwalder	DString.cpp
36e90fa962STyler Dauwalder	Icb.cpp
3772090c98STyler Dauwalder	MetadataPartition.cpp
3872090c98STyler Dauwalder	PhysicalPartition.cpp
392ab307bdSTyler Dauwalder	Recognition.cpp
4072090c98STyler Dauwalder	SparablePartition.cpp
41e90fa962STyler Dauwalder	UdfDebug.cpp
42dce2dc5cSTyler Dauwalder	UdfString.cpp
439c6a0588STyler Dauwalder	UdfStructures.cpp
44865abd0eSTyler Dauwalder	Utils.cpp
4572090c98STyler Dauwalder	VirtualPartition.cpp
4670eaa1f5STyler Dauwalder	Volume.cpp
4770eaa1f5STyler Dauwalder;
4870eaa1f5STyler Dauwalder
49c52519cfSTyler DauwalderSEARCH on [ FGristFiles
50c52519cfSTyler Dauwalder		kernel_cpp.cpp
51338b8dc3SIngo Weinhold	] = [ FDirName $(HAIKU_TOP) src system kernel util ] ;
52c52519cfSTyler Dauwalder
53c52519cfSTyler Dauwalder
5470eaa1f5STyler Dauwalderrule InstallUDF
5570eaa1f5STyler Dauwalder{
5670eaa1f5STyler Dauwalder	Depends $(<) : $(>) ;
5770eaa1f5STyler Dauwalder}
5870eaa1f5STyler Dauwalder
5970eaa1f5STyler Dauwalderactions ignore InstallUDF
6070eaa1f5STyler Dauwalder{
6170eaa1f5STyler Dauwalder	cp $(>) /boot/home/config/add-ons/kernel/file_systems/
6270eaa1f5STyler Dauwalder}
6370eaa1f5STyler Dauwalder
6470eaa1f5STyler DauwalderInstallUDF install : udf ;
6570eaa1f5STyler Dauwalder
6670eaa1f5STyler Dauwalder# restore original optimization level
6770eaa1f5STyler DauwalderOPTIM = $(oldOPTIM) ;
6808f7d1d4STyler Dauwalder
69338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src add-ons kernel file_systems udf drive_setup_addon ;
70