1SubDir HAIKU_TOP src kits network libnetapi ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5if $(TARGET_PLATFORM) != haiku { 6 UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ; 7 # We need the public network headers also when not compiling for Haiku. 8 # Unfortunately we get more than we want, namely all POSIX headers. 9 UseHeaders [ FStandardOSHeaders ] : true ; 10 # Needed for <net/*.h> and maybe other stuff. 11} 12 13UsePrivateHeaders net ; 14 15{ 16 if ( $(TARGET_PLATFORM) = r5 ) { 17 defines = [ FDefines BUILDING_R5_LIBNET ] ; 18 SubDirCcFlags $(defines) ; 19 SubDirC++Flags $(defines) ; 20 PLATFORM_LIBS = ; 21 } else { 22 PLATFORM_LIBS = libsocket.so libbind.so ; 23 } 24} 25 26SharedLibrary libnetapi.so : 27 NetEndpoint.cpp 28 NetAddress.cpp 29 NetBuffer.cpp 30 NetDebug.cpp 31 : be libnet.so $(PLATFORM_LIBS) 32; 33 34# Installation -- in the test directory for the time being 35HaikuInstallRelSymLink install-networking 36 : [ FDirName $(HAIKU_TEST_DIR) kits net lib ] 37 : libnetapi.so 38 : installed-networking-test ; 39 40Package haiku-networkingkit-cvs : 41 libnetapi.so : 42# boot home config lib ; 43 boot home Desktop haiku-networkingkit lib ; 44