xref: /haiku/src/system/libnetwork/netresolv/Jamfile (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
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) irs ] ;
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 = _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			bitncmp.c
76			ctl_clnt.c
77			ctl_p.c
78			ctl_srvr.c
79			ev_connects.c
80			ev_files.c
81			ev_streams.c
82			ev_timers.c
83			ev_waits.c
84			eventlib.c
85			heap.c
86			hex.c
87			logging.c
88			memcluster.c
89			movefile.c
90			tree.c
91
92			# nameser
93			ns_name.c
94			ns_netint.c
95			ns_parse.c
96			ns_print.c
97			ns_samedomain.c
98			ns_ttl.c
99
100			# resolv
101			herror.c
102			h_errno.c
103			mtctxres.c
104			res_comp.c
105			res_data.c
106			res_debug.c
107			res_init.c
108			res_mkquery.c
109			res_query.c
110			res_send.c
111			res_state.c
112			;
113	}
114}
115