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 gethostbyname.c 23 getifaddrs.cpp 24 socket.cpp 25 r5_compatibility.cpp 26 : 27 <netresolv!$(architecture)>netresolv.o libutil.a libbsd.so 28 [ TargetLibsupc++ ] 29 ; 30 31 AddFileDataAttribute $(libnetwork) : services : string : $(services) ; 32 } 33} 34 35SubInclude HAIKU_TOP src kits network netresolv ; 36SubInclude HAIKU_TOP src kits network libnetapi ; 37