1SubDir HAIKU_TOP src kits network ; 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 9SubDirC++Flags [ FDefines _BSD_SOURCE=1 ] ; 10 11local architectureObject ; 12for architectureObject in [ MultiArchSubDirSetup ] { 13 on $(architectureObject) { 14 local architecture = $(TARGET_PACKAGING_ARCH) ; 15 16 UsePrivateSystemHeaders ; 17 18 local libnetwork = [ MultiArchDefaultGristFiles libnetwork.so ] ; 19 SharedLibrary $(libnetwork) : 20 init.cpp 21 interfaces.cpp 22 getifaddrs.cpp 23 socket.cpp 24 r5_compatibility.cpp 25 : 26 <netresolv!$(architecture)>netresolv.o libutil.a libbsd.so 27 [ TargetLibsupc++ ] 28 ; 29 30 AddFileDataAttribute $(libnetwork) : services : string : $(services) ; 31 } 32} 33 34SubInclude HAIKU_TOP src kits network netresolv ; 35SubInclude HAIKU_TOP src kits network libnetapi ; 36