SubDir HAIKU_TOP src add-ons kernel network protocols icmp6 ;

SetSubDirSupportedPlatformsBeOSCompatible ;

if $(TARGET_PLATFORM) != haiku {
	UseHeaders [ FStandardOSHeaders ] : true ;
		# Needed for <support/Errors.h> and maybe other stuff.
	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 kernel net ;
UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network protocols ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network datalink_protocols ] : true ;

KernelAddon icmp6 :
	icmp6.cpp
;

# Installation
HaikuInstall install-networking : /boot/home/config/add-ons/kernel/haiku_network/protocols
	: icmp6 ;

Package haiku-networkingkit-cvs :
	haiku :
	boot home config add-ons kernel haiku_network protocols ;
