1aa6411e2SAugustin CavalierSubDir HAIKU_TOP src system libnetwork netresolv ; 2aa6411e2SAugustin Cavalier 3aa6411e2SAugustin Cavalierlocal architectureObject ; 4aa6411e2SAugustin Cavalierfor architectureObject in [ MultiArchSubDirSetup ] { 5aa6411e2SAugustin Cavalier on $(architectureObject) { 6aa6411e2SAugustin Cavalier local architecture = $(TARGET_PACKAGING_ARCH) ; 7aa6411e2SAugustin Cavalier 8aa6411e2SAugustin Cavalier UseHeaders [ FDirName $(SUBDIR) include ] : true ; 9dba28784SAugustin Cavalier UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_network compat ] 10aa6411e2SAugustin Cavalier : true ; 11aa6411e2SAugustin Cavalier UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ; 12aa6411e2SAugustin Cavalier SubDirSysHdrs $(SUBDIR) ; 13aa6411e2SAugustin Cavalier 14aa6411e2SAugustin Cavalier # NetResolv sources 15aa6411e2SAugustin Cavalier SEARCH_SOURCE += [ FDirName $(SUBDIR) dst ] ; 16aa6411e2SAugustin Cavalier SEARCH_SOURCE += [ FDirName $(SUBDIR) inet ] ; 17*75e1de3cSAugustin Cavalier SEARCH_SOURCE += [ FDirName $(SUBDIR) net ] ; 18aa6411e2SAugustin Cavalier SEARCH_SOURCE += [ FDirName $(SUBDIR) isc ] ; 19aa6411e2SAugustin Cavalier SEARCH_SOURCE += [ FDirName $(SUBDIR) nameser ] ; 20aa6411e2SAugustin Cavalier SEARCH_SOURCE += [ FDirName $(SUBDIR) resolv ] ; 21aa6411e2SAugustin Cavalier 22aa6411e2SAugustin Cavalier { 23aa6411e2SAugustin Cavalier # we want to have the xxx_r functions, IPv6, and md5 implementation 24aa6411e2SAugustin Cavalier # we also need to use our BSD compatibility functions 25aa6411e2SAugustin Cavalier # and enable "lint" to remove the RCSID from all the files. 26*75e1de3cSAugustin Cavalier local defines = _LIBC _REENTRANT=1 USE_MD5=1 INET6 lint LINT ; 27aa6411e2SAugustin Cavalier defines = [ FDefines $(defines) ] ; 28aa6411e2SAugustin Cavalier SubDirCcFlags $(defines) -Wno-sign-compare ; 29aa6411e2SAugustin Cavalier SubDirC++Flags $(defines) -Wno-sign-compare ; 30aa6411e2SAugustin Cavalier } 31aa6411e2SAugustin Cavalier 32aa6411e2SAugustin Cavalier MergeObject <netresolv!$(architecture)>netresolv.o : 33aa6411e2SAugustin Cavalier # dst 34aa6411e2SAugustin Cavalier dst_api.c 35aa6411e2SAugustin Cavalier hmac_link.c 36aa6411e2SAugustin Cavalier md5_dgst.c 37aa6411e2SAugustin Cavalier support.c 38aa6411e2SAugustin Cavalier 39aa6411e2SAugustin Cavalier # inet 40aa6411e2SAugustin Cavalier inet_cidr_ntop.c 41aa6411e2SAugustin Cavalier inet_cidr_pton.c 42aa6411e2SAugustin Cavalier inet_net_ntop.c 43aa6411e2SAugustin Cavalier inet_net_pton.c 44aa6411e2SAugustin Cavalier inet_neta.c 45aa6411e2SAugustin Cavalier nsap_addr.c 46aa6411e2SAugustin Cavalier 47aa6411e2SAugustin Cavalier # irs 48aa6411e2SAugustin Cavalier base64.c 49aa6411e2SAugustin Cavalier getaddrinfo.c 50aa6411e2SAugustin Cavalier gethnamaddr.c 51aa6411e2SAugustin Cavalier getnameinfo.c 52aa6411e2SAugustin Cavalier getnetent.c 53aa6411e2SAugustin Cavalier getnetnamadr.c 54aa6411e2SAugustin Cavalier getprotobyname.c 55aa6411e2SAugustin Cavalier getprotobyname_r.c 56aa6411e2SAugustin Cavalier getprotobynumber.c 57aa6411e2SAugustin Cavalier getprotobynumber_r.c 58aa6411e2SAugustin Cavalier getprotoent.c 59aa6411e2SAugustin Cavalier getprotoent_r.c 60aa6411e2SAugustin Cavalier getservbyname.c 61aa6411e2SAugustin Cavalier getservbyname_r.c 62aa6411e2SAugustin Cavalier getservbyport.c 63aa6411e2SAugustin Cavalier getservbyport_r.c 64aa6411e2SAugustin Cavalier getservent.c 65aa6411e2SAugustin Cavalier getservent_r.c 66aa6411e2SAugustin Cavalier hesiod.c 67aa6411e2SAugustin Cavalier nsdispatch.c 68aa6411e2SAugustin Cavalier nslexer.l 69aa6411e2SAugustin Cavalier nsparser.y 70aa6411e2SAugustin Cavalier sethostent.c 71aa6411e2SAugustin Cavalier vars6.c 72aa6411e2SAugustin Cavalier 73aa6411e2SAugustin Cavalier # isc 74aa6411e2SAugustin Cavalier assertions.c 75aa6411e2SAugustin Cavalier ev_streams.c 76aa6411e2SAugustin Cavalier ev_timers.c 77aa6411e2SAugustin Cavalier 78aa6411e2SAugustin Cavalier # nameser 79aa6411e2SAugustin Cavalier ns_name.c 80aa6411e2SAugustin Cavalier ns_netint.c 81aa6411e2SAugustin Cavalier ns_parse.c 82aa6411e2SAugustin Cavalier ns_print.c 83aa6411e2SAugustin Cavalier ns_samedomain.c 84aa6411e2SAugustin Cavalier ns_ttl.c 85aa6411e2SAugustin Cavalier 86aa6411e2SAugustin Cavalier # resolv 87aa6411e2SAugustin Cavalier herror.c 88aa6411e2SAugustin Cavalier h_errno.c 89aa6411e2SAugustin Cavalier mtctxres.c 90aa6411e2SAugustin Cavalier res_comp.c 91aa6411e2SAugustin Cavalier res_data.c 92aa6411e2SAugustin Cavalier res_debug.c 93aa6411e2SAugustin Cavalier res_init.c 94aa6411e2SAugustin Cavalier res_mkquery.c 95aa6411e2SAugustin Cavalier res_query.c 96aa6411e2SAugustin Cavalier res_send.c 97aa6411e2SAugustin Cavalier res_state.c 98aa6411e2SAugustin Cavalier ; 99aa6411e2SAugustin Cavalier } 100aa6411e2SAugustin Cavalier} 101