1SubDir HAIKU_TOP src tools ; 2 3UseHeaders [ FDirName $(HAIKU_TOP) headers build private app ] : true ; 4UseHeaders [ FDirName $(HAIKU_TOP) headers build private storage ] : true ; 5 6SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src/bin ] ; 7 8local tools = 9 <build>catattr 10 <build>copyattr 11 <build>listattr 12 <build>mimeset 13 <build>mkindex 14 <build>rm_attrs_tmp 15 <build>rmattr 16 <build>settype 17 <build>setversion 18 <build>xres 19; 20 21USES_BE_API on $(tools) = true ; 22 23# TODO: temporary kludge 24local libHaikuCompat ; 25if $(HOST_PLATFORM) in r5 bone dano { 26 ObjectC++Flags database_support.cpp UpdateMimeInfoThread.cpp 27 MimeUpdateThread.cpp 28 : -include [ FDirName $(HAIKU_TOP) headers build 29 HaikuBuildCompatibility.h ] ; 30 libHaikuCompat = libhaikucompat_build.a ; 31} 32 33BuildPlatformMain <build>catattr : catattr.cpp : $(HOST_LIBBE) ; 34 35UsePrivateObjectHeaders copyattr.cpp : shared : : true ; 36BuildPlatformMain <build>copyattr : copyattr.cpp 37 : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; 38 39BuildPlatformMain <build>data_to_source : data_to_source.cpp 40 : $(HOST_LIBSUPC++) ; 41 42UsePrivateObjectHeaders generate_boot_screen.cpp : shared : : true ; 43UsePrivateObjectHeaders ColorQuantizer.cpp : shared : : true ; 44BuildPlatformMain <build>generate_boot_screen : 45 generate_boot_screen.cpp 46 ColorQuantizer.cpp 47 : $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) png z ; 48 49BuildPlatformMain <build>listattr : listattr.cpp : $(HOST_LIBBE) ; 50 51if $(HOST_PLATFORM_BEOS_COMPATIBLE) { 52 AddResources <build>mimeset : mimeset.rdef ; 53} 54BuildPlatformMain <build>mimeset : 55 mimeset.cpp 56 Mime.cpp 57 database_support.cpp 58 UpdateMimeInfoThread.cpp 59 MimeUpdateThread.cpp 60 : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat) 61; 62 63BuildPlatformMain <build>mkindex : mkindex.cpp : $(HOST_LIBBE) ; 64 65# We want rm_attrs to be self-contained, so we link against the static libroot. 66HOST_LIBROOT on <build>rm_attrs_tmp = $(HOST_STATIC_LIBROOT) ; 67BuildPlatformMain <build>rm_attrs_tmp : rm_attrs.cpp 68 : $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; 69MakeLocateDebug <build>rm_attrs ; 70File <build>rm_attrs : <build>rm_attrs_tmp ; 71MODE on <build>rm_attrs = 755 ; 72 73BuildPlatformMain <build>rmattr : rmattr.cpp : $(HOST_LIBBE) ; 74 75BuildPlatformMain <build>set_haiku_revision : set_haiku_revision.cpp 76 : $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; 77 78BuildPlatformMain <build>settype : settype.cpp : $(HOST_LIBBE) 79 $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; 80 81BuildPlatformMain <build>setversion : setversion.cpp : $(HOST_LIBBE) 82 $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat) ; 83 84BuildPlatformMain <build>xres : xres.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) 85 $(HOST_LIBSUPC++) ; 86 87SEARCH on [ FGristFiles 88 Mime.cpp 89 ] = [ FDirName $(HAIKU_TOP) src build libbe storage ] ; 90 91SEARCH on [ FGristFiles 92 UpdateMimeInfoThread.cpp MimeUpdateThread.cpp database_support.cpp 93 ] = [ FDirName $(HAIKU_TOP) src build libbe storage mime ] ; 94 95SEARCH on [ FGristFiles 96 ColorQuantizer.cpp 97 ] = [ FDirName $(HAIKU_TOP) src kits shared ] ; 98 99SubInclude HAIKU_TOP src tools addattr ; 100SubInclude HAIKU_TOP src tools bfs_shell ; 101SubInclude HAIKU_TOP src tools copy_to_bfs_image ; 102SubInclude HAIKU_TOP src tools cppunit ; 103SubInclude HAIKU_TOP src tools docbook ; 104SubInclude HAIKU_TOP src tools elfsymbolpatcher ; 105SubInclude HAIKU_TOP src tools fs_shell ; 106SubInclude HAIKU_TOP src tools gensyscalls ; 107SubInclude HAIKU_TOP src tools keymap ; 108SubInclude HAIKU_TOP src tools makebootable ; 109SubInclude HAIKU_TOP src tools rc ; 110SubInclude HAIKU_TOP src tools remote_disk_server ; 111SubInclude HAIKU_TOP src tools resattr ; 112SubInclude HAIKU_TOP src tools rman ; 113SubInclude HAIKU_TOP src tools translation ; 114SubInclude HAIKU_TOP src tools unzip ; 115SubInclude HAIKU_TOP src tools vmdkimage ; 116SubInclude HAIKU_TOP src tools unflatten ; 117SubInclude HAIKU_TOP src tools zip ; 118 119