SubDir HAIKU_TOP src bin pppconfig ;

SetSubDirSupportedPlatforms $(HAIKU_BONE_COMPATIBLE_PLATFORMS) ;

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.
}

UsePrivateHeaders net ;
UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp shared libppp
	headers ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp shared
	libkernelppp headers ] : true ;

BinCommand pppconfig :
	pppconfig.cpp
	:
	be libppp.a
;

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

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