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