xref: /haiku/src/system/libnetwork/Jamfile (revision 9d010ea47db677131e385b5e7855d38fd0c8103f)
1SubDir HAIKU_TOP src system libnetwork ;
2
3UsePrivateHeaders libroot net shared ;
4UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ;
5
6local services = [ FGristFiles services ] ;
7SEARCH on $(services) = [ FDirName $(SUBDIR) netresolv defaults ] ;
8
9local architectureObject ;
10for architectureObject in [ MultiArchSubDirSetup ] {
11	on $(architectureObject) {
12		local architecture = $(TARGET_PACKAGING_ARCH) ;
13
14		UsePrivateSystemHeaders ;
15
16		local libnetwork = [ MultiArchDefaultGristFiles libnetwork.so ] ;
17		SharedLibrary $(libnetwork) :
18			init.cpp
19			interfaces.cpp
20			gethostbyname.c
21			getifaddrs.cpp
22			socket.cpp
23			r5_compatibility.cpp
24			:
25			<netresolv!$(architecture)>netresolv.o
26			[ MultiArchDefaultGristFiles libutil.a libbsd.so ]
27			[ TargetLibsupc++ ]
28			;
29
30		AddFileDataAttribute $(libnetwork) : services : string : $(services) ;
31	}
32}
33
34SubInclude HAIKU_TOP src system libnetwork netresolv ;
35