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 PartitionMap.cpp 38 UdfDebug.cpp 39 Utils.cpp 40 Volume.cpp 41; 42 43SEARCH on [ FGristFiles 44 kernel_cpp.cpp 45 ] = [ FDirName $(OBOS_TOP) src kernel core util ] ; 46 47 48rule InstallUDF 49{ 50 Depends $(<) : $(>) ; 51} 52 53actions ignore InstallUDF 54{ 55 cp $(>) /boot/home/config/add-ons/kernel/file_systems/ 56} 57 58InstallUDF install : udf ; 59 60# restore original optimization level 61OPTIM = $(oldOPTIM) ; 62 63SubInclude OBOS_TOP src add-ons kernel file_systems udf drive_setup_addon ; 64