SubDir OBOS_TOP src add-ons kernel file_systems udf ; # save original optimization level oldOPTIM = $(OPTIM) ; # set some additional defines { local defines = KEEP_WRONG_DIRENT_RECLEN ; if $(COMPILE_FOR_R5) { defines += COMPILE_FOR_R5 ; } if $(DEBUG) = 0 { # the gcc on BeOS doesn't compile BFS correctly with -O2 or more OPTIM = -O1 ; } defines = [ FDefines $(defines) ] ; SubDirCcFlags $(defines) -Wall -Wno-multichar ; SubDirC++Flags $(defines) -Wall -Wno-multichar ; } UsePrivateHeaders [ FDirName kernel util ] ; R5KernelAddon udf : [ FDirName kernel file_systems udf ] : cpp.cpp udf.cpp CS0String.cpp DirectoryIterator.cpp DiskStructures.cpp Icb.cpp PartitionMap.cpp UdfDebug.cpp Utils.cpp Volume.cpp ; rule InstallUDF { Depends $(<) : $(>) ; } actions ignore InstallUDF { cp $(>) /boot/home/config/add-ons/kernel/file_systems/ } InstallUDF install : udf ; # restore original optimization level OPTIM = $(oldOPTIM) ; SubInclude OBOS_TOP src add-ons kernel file_systems udf drive_setup_addon ;