SubDir HAIKU_TOP src bin network traceroute ; 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. } local defines = [ FDefines HAVE_MALLOC_H=1 HAVE_SYS_SELECT=1 HAVE_NET_ROUTE_H=1 HAVE_STRERROR=1 HAVE_USLEEP=1 HAVE_SETLINEBUF=1 BYTESWAP_IP_HDR=1 HAVE_MALLOC_H=1 HAVE_ICMP_NEXTMTU=1 HAVE_SOCKADDR_SA_LEN=1 ] ; SubDirCcFlags $(defines) ; SubDirC++Flags $(defines) ; BinCommand traceroute : findsaddr-haiku.c ifaddrlist.c traceroute.c version.c : $(TARGET_NETWORK_LIBS) $(TARGET_SELECT_UNAME_ETC_LIB) ; # Installation -- in the test directory for the time being HaikuInstall install-networking : [ FDirName $(HAIKU_TEST_DIR) kits net ] : traceroute ; HaikuInstall install-userland-networking : [ FDirName $(HAIKU_TEST_DIR) kits net userland ] : traceroute : installed-userland-networking ; Package haiku-networkingkit-cvs : traceroute : # boot home config bin ; boot home Desktop haiku-networkingkit ;