SubDir HAIKU_TOP src system libnetwork ; UsePrivateHeaders libroot net shared ; UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ; local architectureObject ; for architectureObject in [ MultiArchSubDirSetup ] { on $(architectureObject) { local architecture = $(TARGET_PACKAGING_ARCH) ; UsePrivateSystemHeaders ; local libnetwork = [ MultiArchDefaultGristFiles libnetwork.so ] ; SharedLibrary $(libnetwork) : init.cpp interfaces.cpp getifaddrs.cpp socket.cpp r5_compatibility.cpp : netresolv.o <$(architecture)>posix_musl_network.o [ MultiArchDefaultGristFiles libutil.a libbsd.so ] [ TargetLibsupc++ ] ; } } SubInclude HAIKU_TOP src system libnetwork musl ; SubInclude HAIKU_TOP src system libnetwork netresolv ;