xref: /haiku/src/add-ons/kernel/file_systems/udf/Jamfile (revision 302f62604763c95777d6d04cca456e876f471c4f)
1SubDir HAIKU_TOP src add-ons kernel file_systems udf ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4SubDirC++Flags -fno-rtti ;
5
6# save original optimization level
7oldOPTIM = $(OPTIM) ;
8
9# set some additional defines
10{
11	local defines =
12		KEEP_WRONG_DIRENT_RECLEN
13		;
14
15	defines += COMPILE_FOR_R5 ;
16
17	if $(DEBUG) = 0 {
18		# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
19		OPTIM = -O1 ;
20	}
21
22	defines = [ FDefines $(defines) ] ;
23	SubDirCcFlags $(defines) -Wall -Wno-multichar ;
24	SubDirC++Flags $(defines) -Wall -Wno-multichar ;
25}
26
27UsePrivateHeaders kernel ;			# For kernel_cpp.cpp
28UsePrivateHeaders [ FDirName kernel util ] ;	# For all the UDF source files
29
30KernelAddon udf :
31	kernel_cpp.cpp
32	udf.cpp
33
34	DirectoryIterator.cpp
35	DString.cpp
36	Icb.cpp
37	MetadataPartition.cpp
38	PhysicalPartition.cpp
39	Recognition.cpp
40	SparablePartition.cpp
41	UdfDebug.cpp
42	UdfString.cpp
43	UdfStructures.cpp
44	Utils.cpp
45	VirtualPartition.cpp
46	Volume.cpp
47;
48
49SEARCH on [ FGristFiles
50		kernel_cpp.cpp
51	] = [ FDirName $(HAIKU_TOP) src system kernel util ] ;
52
53
54rule InstallUDF
55{
56	Depends $(<) : $(>) ;
57}
58
59actions ignore InstallUDF
60{
61	cp $(>) /boot/home/config/add-ons/kernel/file_systems/
62}
63
64InstallUDF install : udf ;
65
66# restore original optimization level
67OPTIM = $(oldOPTIM) ;
68
69SubInclude HAIKU_TOP src add-ons kernel file_systems udf drive_setup_addon ;
70