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