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