1SubDir HAIKU_TOP src bin network traceroute ; 2 3SetSubDirSupportedPlatforms $(HAIKU_BONE_COMPATIBLE_PLATFORMS) ; 4 5if ! $(TARGET_PLATFORM_HAIKU_COMPATIBLE) { 6 UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ; 7 # We need the public network headers also when not compiling for Haiku. 8 # Unfortunately we get more than we want, namely all POSIX headers. 9} 10 11local defines = [ FDefines HAVE_MALLOC_H=1 HAVE_SYS_SELECT=1 HAVE_NET_ROUTE_H=1 12 HAVE_STRERROR=1 HAVE_USLEEP=1 HAVE_SETLINEBUF=1 13 BYTESWAP_IP_HDR=1 HAVE_MALLOC_H=1 14 HAVE_ICMP_NEXTMTU=1 HAVE_SOCKADDR_SA_LEN=1 ] ; 15 16SubDirCcFlags $(defines) ; 17SubDirC++Flags $(defines) ; 18 19BinCommand traceroute : 20 findsaddr-haiku.c 21 ifaddrlist.c 22 traceroute.c 23 version.c 24 : $(TARGET_NETWORK_LIBS) $(TARGET_SELECT_UNAME_ETC_LIB) ; 25 26# Installation -- in the test directory for the time being 27HaikuInstall install-networking 28 : [ FDirName $(HAIKU_TEST_DIR) kits net ] 29 : traceroute ; 30 31HaikuInstall install-userland-networking 32 : [ FDirName $(HAIKU_TEST_DIR) kits net userland ] 33 : traceroute 34 : installed-userland-networking 35; 36