SubDir HAIKU_TOP src bin network ifconfig ;

if ! $(TARGET_PLATFORM_HAIKU_COMPATIBLE) {
	UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
		# We need the public network headers also when not compiling for Haiku.
		# Unfortunately we get more than we want, namely all POSIX headers.
}

UseHeaders [ FDirName $(HAIKU_TOP) src servers net ] : true ;

BinCommand ifconfig :
	ifconfig.cpp
	: be network
;

# Installation -- in the test directory for the time being
HaikuInstall install-networking
	: [ FDirName $(HAIKU_TEST_DIR) kits net ]
	: ifconfig ;

HaikuInstall install-userland-networking
	: [ FDirName $(HAIKU_TEST_DIR) kits net userland ]
	: ifconfig
	: installed-userland-networking
;

Package haiku-networkingkit-cvs :
	ifconfig :
#	boot home config bin ;
	boot home Desktop haiku-networkingkit ;
