#	From: @(#)Makefile	5.20 (Berkeley) 6/12/93
# $FreeBSD: src/usr.sbin/Makefile,v 1.332.2.6 2006/09/02 17:02:00 rwatson Exp $

# XXX MISSING:		mkproto
SUBDIR=	pkg_install

.if ${MACHINE_ARCH} != "arm"
_sysinstall=	sysinstall
.endif

.if !defined(NO_ATM)
_atm=		atm
.endif

.if !defined(NO_AUDIT)
_audit= 	audit
_auditd=	auditd
_auditreduce=	auditreduce
_praudit=	praudit
.endif

.if !defined(NO_BIND)
.if !defined(NO_BIND_DNSSEC) && !defined(NO_CRYPT)
_dnssec-keygen=		dnssec-keygen
_dnssec-signzone=	dnssec-signzone
.endif
.if !defined(NO_BIND_NAMED)
_named=			named
_named-checkconf=	named-checkconf
_named-checkzone=	named-checkzone
_named.reload=		named.reload
_rndc=			rndc
_rndc-confgen=		rndc-confgen
.endif
.endif

.if !defined(NO_BLUETOOTH)
_bluetooth=	bluetooth
.endif

.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
_keyserv=	keyserv
.endif

.if !defined(NO_INET6)
_mld6query=	mld6query
_rip6query=	rip6query
_route6d=	route6d
_traceroute6=	traceroute6
.endif

.if !defined(NO_NIS)
_rpc.yppasswdd=	rpc.yppasswdd
_rpc.ypupdated=	rpc.ypupdated
_rpc.ypxfrd=	rpc.ypxfrd
_ypbind=	ypbind
_yp_mkdb=	yp_mkdb
_yppoll=	yppoll
_yppush=	yppush
_ypserv=	ypserv
_ypset=		ypset
.endif

.if !defined(NO_PF) && !defined(NO_AUTHPF)
_authpf=	authpf
.endif

.if !defined(NO_LPR)
_lpr=		lpr
.endif

.if !defined(NO_SENDMAIL)
_editmap=	editmap
_mailstats=	mailstats
_makemap=	makemap
_praliases=	praliases
_sendmail=	sendmail
.endif

.if !defined(NO_USB)
_usbd=		usbd
_usbdevs=	usbdevs
.endif

.if ${MACHINE_ARCH} == "arm"
_kgmon=		kgmon
.endif

.if ${MACHINE_ARCH} == "i386"
_apm=		apm
_apmd=		apmd
_asf=		asf
_btxld=		btxld
.if !defined(NO_I4B)
_i4b=		i4b
.endif
_kgmon=		kgmon
_kgzip=		kgzip
_lptcontrol=	lptcontrol
_mount_nwfs=	mount_nwfs
_mount_smbfs=	mount_smbfs
_mptable=	mptable
_ndiscvt=	ndiscvt
_pccard=	pccard
_pnpinfo=	pnpinfo
.if !defined(NO_LIBPTHREAD)
_pppctl=	pppctl
.endif
_sicontrol=	sicontrol
_spkrtest=	spkrtest
_zzz=		zzz
.if ${MACHINE} == "i386" 
.if !defined(NO_ACPI)
_acpi=		acpi
.endif
_arlcontrol=	arlcontrol
_boot0cfg=	boot0cfg
_pcvt=		pcvt
_wlconfig=	wlconfig
.elif ${MACHINE} == "pc98"
_boot98cfg=	boot98cfg
.endif
.endif

.if ${MACHINE_ARCH} == "alpha"
_elf2exe=	elf2exe
_pnpinfo=	pnpinfo
.if !defined(NO_LIBC_R)
_pppctl=	pppctl
.endif
.endif

# kgzip: builds, but missing support files
# mptable: broken (not 64 bit clean)
# pnpinfo: crashes (not really useful anyway)
.if ${MACHINE_ARCH} == "amd64"
.if !defined(NO_ACPI)
_acpi=		acpi
.endif
_asf=		asf
_boot0cfg=	boot0cfg
_btxld=		btxld
_kgmon=		kgmon
_lptcontrol=	lptcontrol
_mount_nwfs=	mount_nwfs
_mount_smbfs=	mount_smbfs
_mptable=	mptable
_ndiscvt=	ndiscvt
.if !defined(NO_LIBPTHREAD)
_pppctl=	pppctl
.endif
_sicontrol=	sicontrol
_spkrtest=	spkrtest
_zzz=		zzz
.endif

.if ${MACHINE_ARCH} == "ia64"
.if !defined(NO_ACPI)
_acpi=		acpi
.endif
_kgmon=		kgmon
.if !defined(NO_LIBPTHREAD)
_pppctl=	pppctl
.endif
_zzz=		zzz
.endif

.if ${MACHINE_ARCH} == "sparc64"
_eeprom=	eeprom
_ofwdump=	ofwdump
.if !defined(NO_LIBC_R)
_pppctl=	pppctl
.endif
.endif

.include <bsd.subdir.mk>
