1SubDir OBOS_TOP src add-ons kernel file_systems udf ; 2 3# save original optimization level 4oldOPTIM = $(OPTIM) ; 5 6# set some additional defines 7{ 8 local defines = 9 KEEP_WRONG_DIRENT_RECLEN 10 ; 11 12 if $(COMPILE_FOR_R5) { 13 defines += COMPILE_FOR_R5 ; 14 } 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 29R5KernelAddon udf : [ FDirName kernel file_systems udf ] : 30 kernel_cpp.cpp 31 udf.cpp 32 33 CS0String.cpp 34 DirectoryIterator.cpp 35 DiskStructures.cpp 36 Icb.cpp 37 MetadataPartition.cpp 38 PhysicalPartition.cpp 39 Recognition.cpp 40 SparablePartition.cpp 41 UdfDebug.cpp 42 Utils.cpp 43 VirtualPartition.cpp 44 Volume.cpp 45; 46 47SEARCH on [ FGristFiles 48 kernel_cpp.cpp 49 ] = [ FDirName $(OBOS_TOP) src kernel core util ] ; 50 51 52rule InstallUDF 53{ 54 Depends $(<) : $(>) ; 55} 56 57actions ignore InstallUDF 58{ 59 cp $(>) /boot/home/config/add-ons/kernel/file_systems/ 60} 61 62InstallUDF install : udf ; 63 64# restore original optimization level 65OPTIM = $(oldOPTIM) ; 66 67SubInclude OBOS_TOP src add-ons kernel file_systems udf drive_setup_addon ; 68