1SubDir HAIKU_TOP src add-ons kernel file_systems udf drive_setup_addon ; 2 3# save original optimization level 4oldOPTIM = $(OPTIM) ; 5 6# set some additional defines 7{ 8 local defines = 9 DRIVE_SETUP_ADDON 10 ; 11 12 if $(COMPILE_FOR_R5) { 13 defines += COMPILE_FOR_R5 ; 14 } 15 16 if $(DEBUG) { 17 #defines += DEBUG ; 18 } else { 19 # the gcc on BeOS doesn't compile BFS correctly with -O2 or more 20 OPTIM = -O1 ; 21 } 22 23 defines = [ FDefines $(defines) ] ; 24 SubDirCcFlags $(defines) -Wno-multichar ; 25 SubDirC++Flags $(defines) -Wno-multichar ; 26} 27 28UsePrivateHeaders [ FDirName kernel util ] ; 29SubDirHdrs [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems udf ] ; 30 31# Note that the add-on is named "i-udf-ds" to put it alphabetically 32# before the standard iso9660 add-on, thus giving it first dibs at 33# iso9660/UDF hybrid discs. 34Addon i-udf-ds : 35 udf-ds.cpp 36 Recognition.cpp 37 UdfDebug.cpp 38 UdfString.cpp 39 UdfStructures.cpp 40 Utils.cpp 41; 42 43SEARCH on [ FGristFiles 44 Recognition.cpp UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp 45 ] = [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems udf ] ; 46 47rule InstallUDFDS 48{ 49 Depends $(<) : $(>) ; 50} 51 52actions ignore InstallUDFDS 53{ 54 cp $(>) /boot/system/add-ons/drive_setup/fs/ 55} 56 57InstallUDFDS install : i-udf-ds ; 58 59# restore original optimization level 60OPTIM = $(oldOPTIM) ; 61 62