#
# 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= 	9e

MANFILES= 	Intro.9e		\
		_fini.9e		\
	 	aread.9e		\
	 	attach.9e		\
	 	awrite.9e		\
	 	chpoll.9e		\
	 	close.9e		\
	 	csx_event_handler.9e	\
	 	detach.9e		\
	 	devmap.9e		\
	 	devmap_access.9e	\
	 	devmap_contextmgt.9e	\
	 	devmap_dup.9e		\
	 	devmap_map.9e		\
	 	devmap_unmap.9e		\
	 	dump.9e			\
	 	getinfo.9e		\
	 	gld.9e			\
	 	identify.9e		\
	 	ioctl.9e		\
	 	ks_snapshot.9e		\
	 	ks_update.9e		\
		mac_capab_transceiver.9e	\
		mac_capab_led.9e	\
	 	mmap.9e			\
	 	open.9e			\
	 	power.9e		\
	 	print.9e		\
	 	probe.9e		\
	 	prop_op.9e		\
	 	put.9e			\
	 	quiesce.9e		\
	 	read.9e			\
	 	segmap.9e		\
	 	srv.9e			\
	 	strategy.9e		\
	 	tran_abort.9e		\
	 	tran_bus_reset.9e	\
	 	tran_dmafree.9e		\
	 	tran_getcap.9e		\
	 	tran_init_pkt.9e	\
	 	tran_quiesce.9e		\
	 	tran_reset.9e		\
	 	tran_reset_notify.9e	\
	 	tran_setup_pkt.9e	\
	 	tran_start.9e		\
	 	tran_sync_pkt.9e	\
	 	tran_tgt_free.9e	\
	 	tran_tgt_init.9e	\
	 	tran_tgt_probe.9e	\
	 	write.9e

MANLINKS=	_info.9e		\
	 	_init.9e		\
	 	gldm_get_stats.9e	\
	 	gldm_intr.9e		\
	 	gldm_ioctl.9e		\
	 	gldm_reset.9e		\
	 	gldm_send.9e		\
	 	gldm_set_mac_addr.9e	\
	 	gldm_set_multicast.9e	\
	 	gldm_set_promiscuous.9e	\
	 	gldm_start.9e		\
	 	gldm_stop.9e		\
		mcl_set.9e		\
		mct_info.9e		\
		mct_read.9e		\
		intro.9e		\
	 	tran_destroy_pkt.9e	\
	 	tran_pkt_constructor.9e	\
	 	tran_pkt_destructor.9e	\
	 	tran_setcap.9e		\
	 	tran_teardown_pkt.9e	\
	 	tran_unquiesce.9e

intro.9e			:= LINKSRC = Intro.9e

_info.9e			:= LINKSRC = _fini.9e
_init.9e			:= LINKSRC = _fini.9e

gldm_get_stats.9e		:= LINKSRC = gld.9e
gldm_intr.9e			:= LINKSRC = gld.9e
gldm_ioctl.9e			:= LINKSRC = gld.9e
gldm_reset.9e			:= LINKSRC = gld.9e
gldm_send.9e			:= LINKSRC = gld.9e
gldm_set_mac_addr.9e		:= LINKSRC = gld.9e
gldm_set_multicast.9e		:= LINKSRC = gld.9e
gldm_set_promiscuous.9e		:= LINKSRC = gld.9e
gldm_start.9e			:= LINKSRC = gld.9e
gldm_stop.9e			:= LINKSRC = gld.9e

mcl_set.9e			:= LINKSRC = mac_capab_led.9e

mct_info.9e			:= LINKSRC = mac_capab_transceiver.9e
mct_read.9e			:= LINKSRC = mac_capab_transceiver.9e

tran_setcap.9e			:= LINKSRC = tran_getcap.9e

tran_destroy_pkt.9e		:= LINKSRC = tran_init_pkt.9e

tran_unquiesce.9e		:= LINKSRC = tran_quiesce.9e

tran_pkt_constructor.9e		:= LINKSRC = tran_setup_pkt.9e
tran_pkt_destructor.9e		:= LINKSRC = tran_setup_pkt.9e
tran_teardown_pkt.9e		:= LINKSRC = tran_setup_pkt.9e

.KEEP_STATE:

include		$(SRC)/man/Makefile.man

install:	$(ROOTMANFILES) $(ROOTMANLINKS)