1 SubDir HAIKU_TOP src tests add-ons kernel file_systems iso9660 iso9660_shell ; 2 3 SEARCH_SOURCE 4 += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems iso9660 ] ; 5 6 # prevent inclusion of HaikuBuildCompatibility.h and _BSD_SOURCE headers 7 DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ; 8 9 # set some additional defines 10 { 11 local defines = 12 FS_SHELL 13 ; 14 15 if $(TARGET_PACKAGING_ARCH) = x86_gcc2 { 16 # GCC2 doesn't compile BFS correctly with -O2 or more 17 OPTIM = -O1 ; 18 } 19 20 defines = [ FDefines $(defines) ] ; 21 SubDirCcFlags $(defines) -Wno-multichar ; 22 SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ; 23 } 24 25 # platform specific libraries 26 local fsShellCommandLibs ; 27 if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) { 28 fsShellCommandLibs = $(HOST_NETWORK_LIBS) ; 29 } 30 31 UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ; 32 33 if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) { 34 UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ; 35 UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ; 36 } 37 38 UsePrivateHeaders shared storage ; 39 UsePrivateHeaders fs_shell ; 40 UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ; 41 UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ; 42 43 BuildPlatformMain <build>iso9660_shell 44 : 45 iso9660.cpp 46 iso9660_identify.cpp 47 kernel_interface.cpp 48 49 : 50 <build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) 51 $(HOST_LIBROOT) $(fsShellCommandLibs) 52 ; 53