SubDir HAIKU_TOP src bin network ping6 ;

SetSubDirSupportedPlatforms $(HAIKU_BONE_COMPATIBLE_PLATFORMS) ;

if ! $(TARGET_PLATFORM_HAIKU_COMPATIBLE) {
	UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
		# We need the public network headers also when not compiling for Haiku.
		# Unfortunately we get more than we want, namely all POSIX headers.
}

UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ;

BinCommand ping6 :
	ping6.c
	: libbsd.so $(TARGET_NETWORK_LIBS) $(TARGET_SELECT_UNAME_ETC_LIB) ;

Package haiku-networkingkit-cvs :
	ping6 :
	boot home Desktop haiku-networkingkit ;

