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