xref: /haiku/src/system/libnetwork/netresolv/Jamfile (revision f84c53e4acb4c8a9e4dadd4ce165ca3a126114b1)
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 _BSD_SOURCE 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_addr.c
41			inet_cidr_ntop.c
42			inet_cidr_pton.c
43			inet_lnaof.c
44			inet_makeaddr.c
45			inet_net_ntop.c
46			inet_net_pton.c
47			inet_neta.c
48			inet_netof.c
49			inet_network.c
50			inet_ntoa.c
51			inet_ntop.c
52			inet_pton.c
53			nsap_addr.c
54
55			# irs
56			base64.c
57			getaddrinfo.c
58			gethnamaddr.c
59			getnameinfo.c
60			getnetent.c
61			getnetnamadr.c
62			getprotobyname.c
63			getprotobyname_r.c
64			getprotobynumber.c
65			getprotobynumber_r.c
66			getprotoent.c
67			getprotoent_r.c
68			getservbyname.c
69			getservbyname_r.c
70			getservbyport.c
71			getservbyport_r.c
72			getservent.c
73			getservent_r.c
74			hesiod.c
75			nsdispatch.c
76			nslexer.l
77			nsparser.y
78			sethostent.c
79			vars6.c
80
81			# isc
82			assertions.c
83			bitncmp.c
84			ctl_clnt.c
85			ctl_p.c
86			ctl_srvr.c
87			ev_connects.c
88			ev_files.c
89			ev_streams.c
90			ev_timers.c
91			ev_waits.c
92			eventlib.c
93			heap.c
94			hex.c
95			logging.c
96			memcluster.c
97			movefile.c
98			tree.c
99
100			# nameser
101			ns_name.c
102			ns_netint.c
103			ns_parse.c
104			ns_print.c
105			ns_samedomain.c
106			ns_ttl.c
107
108			# resolv
109			herror.c
110			h_errno.c
111			mtctxres.c
112			res_comp.c
113			res_data.c
114			res_debug.c
115			res_init.c
116			res_mkquery.c
117			res_query.c
118			res_send.c
119			res_state.c
120			;
121	}
122}
123