SubDir HAIKU_TOP src tools ; UseHeaders [ FDirName $(HAIKU_TOP) headers build private app ] : true ; UseHeaders [ FDirName $(HAIKU_TOP) headers build private storage ] : true ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src/bin ] ; local tools = catattr copyattr listattr mimeset mkindex rm_attrs_tmp rmattr settype setversion xres ; USES_BE_API on $(tools) = true ; # TODO: temporary kludge local libHaikuCompat ; if $(HOST_PLATFORM) in r5 bone dano { ObjectC++Flags database_support.cpp UpdateMimeInfoThread.cpp MimeUpdateThread.cpp : -include [ FDirName $(HAIKU_TOP) headers build HaikuBuildCompatibility.h ] ; libHaikuCompat = libhaikucompat_build.a ; } BuildPlatformMain catattr : catattr.cpp : $(HOST_LIBBE) ; UsePrivateObjectHeaders copyattr.cpp : shared : : true ; BuildPlatformMain copyattr : copyattr.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; BuildPlatformMain data_to_source : data_to_source.cpp : $(HOST_LIBSUPC++) ; BuildPlatformMain generate_boot_screen : generate_boot_screen.cpp : $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) png z ; BuildPlatformMain listattr : listattr.cpp : $(HOST_LIBBE) ; if $(HOST_PLATFORM_BEOS_COMPATIBLE) { AddResources mimeset : mimeset.rdef ; } BuildPlatformMain mimeset : mimeset.cpp Mime.cpp database_support.cpp UpdateMimeInfoThread.cpp MimeUpdateThread.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat) ; BuildPlatformMain mkindex : mkindex.cpp : $(HOST_LIBBE) ; # We want rm_attrs to be self-contained, so we link against the static libroot. HOST_LIBROOT on rm_attrs_tmp = $(HOST_STATIC_LIBROOT) ; BuildPlatformMain rm_attrs_tmp : rm_attrs.cpp : $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ; MakeLocateDebug rm_attrs ; File rm_attrs : rm_attrs_tmp ; MODE on rm_attrs = 755 ; BuildPlatformMain rmattr : rmattr.cpp : $(HOST_LIBBE) ; BuildPlatformMain set_haiku_revision : set_haiku_revision.cpp : $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; BuildPlatformMain settype : settype.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; BuildPlatformMain setversion : setversion.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat) ; BuildPlatformMain xres : xres.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; SEARCH on [ FGristFiles Mime.cpp ] = [ FDirName $(HAIKU_TOP) src build libbe storage ] ; SEARCH on [ FGristFiles UpdateMimeInfoThread.cpp MimeUpdateThread.cpp database_support.cpp ] = [ FDirName $(HAIKU_TOP) src build libbe storage mime ] ; SubInclude HAIKU_TOP src tools addattr ; SubInclude HAIKU_TOP src tools bfs_shell ; SubInclude HAIKU_TOP src tools copy_to_bfs_image ; SubInclude HAIKU_TOP src tools cppunit ; SubInclude HAIKU_TOP src tools docbook ; SubInclude HAIKU_TOP src tools elfsymbolpatcher ; SubInclude HAIKU_TOP src tools fs_shell ; SubInclude HAIKU_TOP src tools gensyscalls ; SubInclude HAIKU_TOP src tools keymap ; SubInclude HAIKU_TOP src tools makebootable ; SubInclude HAIKU_TOP src tools rc ; SubInclude HAIKU_TOP src tools remote_disk_server ; SubInclude HAIKU_TOP src tools resattr ; SubInclude HAIKU_TOP src tools rman ; SubInclude HAIKU_TOP src tools translation ; SubInclude HAIKU_TOP src tools unzip ; SubInclude HAIKU_TOP src tools vmdkheader ; SubInclude HAIKU_TOP src tools unflatten ;