#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet
# at http://www.illumos.org/license/CDDL.
#

#
# Copyright 2011, Richard Lowe
# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
#

include		$(SRC)/Makefile.master

MANSECT= 	3xnet

MANFILES=	accept.3xnet		\
	 	bind.3xnet		\
	 	connect.3xnet		\
	 	endhostent.3xnet	\
	 	endnetent.3xnet		\
	 	endprotoent.3xnet	\
	 	endservent.3xnet	\
	 	freeaddrinfo.3xnet	\
	 	gai_strerror.3xnet	\
	 	gethostname.3xnet	\
	 	getnameinfo.3xnet	\
	 	getpeername.3xnet	\
	 	getsockname.3xnet	\
	 	getsockopt.3xnet	\
	 	htonl.3xnet		\
	 	if_nametoindex.3xnet	\
	 	inet_addr.3xnet		\
	 	inet_ntop.3xnet		\
	 	listen.3xnet		\
	 	recv.3xnet		\
	 	recvfrom.3xnet		\
	 	recvmsg.3xnet		\
	 	send.3xnet		\
	 	sendmsg.3xnet		\
	 	sendto.3xnet		\
	 	setsockopt.3xnet	\
	 	shutdown.3xnet		\
	 	sockatmark.3xnet	\
	 	socket.3xnet		\
	 	socketpair.3xnet

MANLINKS=	getaddrinfo.3xnet	\
		gethostbyaddr.3xnet	\
		gethostbyname.3xnet	\
		gethostent.3xnet	\
		getnetbyaddr.3xnet	\
		getnetbyname.3xnet	\
		getnetent.3xnet		\
		getprotobyname.3xnet	\
		getprotobynumber.3xnet	\
		getprotoent.3xnet	\
		getservbyname.3xnet	\
		getservbyport.3xnet	\
		getservent.3xnet	\
		htons.3xnet		\
		if_freenameindex.3xnet	\
		if_indextoname.3xnet	\
		if_nameindex.3xnet	\
		inet_lnaof.3xnet	\
		inet_makeaddr.3xnet	\
		inet_netof.3xnet	\
		inet_network.3xnet	\
		inet_ntoa.3xnet		\
		inet_pton.3xnet		\
		ntohl.3xnet		\
		ntohs.3xnet		\
		sethostent.3xnet	\
		setnetent.3xnet		\
		setprotoent.3xnet	\
		setservent.3xnet

getaddrinfo.3xnet	:= LINKSRC = freeaddrinfo.3xnet

gethostbyaddr.3xnet	:= LINKSRC = endhostent.3xnet
gethostbyname.3xnet	:= LINKSRC = endhostent.3xnet
gethostent.3xnet	:= LINKSRC = endhostent.3xnet

getnetbyaddr.3xnet	:= LINKSRC = endnetent.3xnet
getnetbyname.3xnet	:= LINKSRC = endnetent.3xnet
getnetent.3xnet		:= LINKSRC = endnetent.3xnet

getprotobyname.3xnet	:= LINKSRC = endprotoent.3xnet
getprotobynumber.3xnet	:= LINKSRC = endprotoent.3xnet
getprotoent.3xnet	:= LINKSRC = endprotoent.3xnet

getservbyname.3xnet	:= LINKSRC = endservent.3xnet
getservbyport.3xnet	:= LINKSRC = endservent.3xnet
getservent.3xnet	:= LINKSRC = endservent.3xnet

htons.3xnet		:= LINKSRC = htonl.3xnet

if_freenameindex.3xnet	:= LINKSRC = if_nametoindex.3xnet
if_indextoname.3xnet	:= LINKSRC = if_nametoindex.3xnet
if_nameindex.3xnet	:= LINKSRC = if_nametoindex.3xnet

inet_lnaof.3xnet	:= LINKSRC = inet_addr.3xnet
inet_makeaddr.3xnet	:= LINKSRC = inet_addr.3xnet
inet_netof.3xnet	:= LINKSRC = inet_addr.3xnet
inet_network.3xnet	:= LINKSRC = inet_addr.3xnet
inet_ntoa.3xnet		:= LINKSRC = inet_addr.3xnet

inet_pton.3xnet		:= LINKSRC = inet_ntop.3xnet

ntohl.3xnet		:= LINKSRC = htonl.3xnet
ntohs.3xnet		:= LINKSRC = htonl.3xnet

sethostent.3xnet	:= LINKSRC = endhostent.3xnet

setnetent.3xnet		:= LINKSRC = endnetent.3xnet

setprotoent.3xnet	:= LINKSRC = endprotoent.3xnet

setservent.3xnet	:= LINKSRC = endservent.3xnet

.KEEP_STATE:

include		$(SRC)/man/Makefile.man

install:	$(ROOTMANFILES) $(ROOTMANLINKS)