Makefile revision 210287
11844Swollman#	From: @(#)Makefile	5.20 (Berkeley) 6/12/93
250476Speter# $FreeBSD: head/usr.sbin/Makefile 210287 2010-07-20 07:27:36Z nwhitehorn $
31844Swollman
41638Srgrimes.include <bsd.own.mk>
594940Sru
61638SrgrimesSUBDIR=	${_ac} \
71844Swollman	${_accton} \
81844Swollman	${_acpi} \
938655Sjb	adduser \
101844Swollman	${_amd} \
111844Swollman	${_ancontrol} \
1228945Speter	${_apm} \
131844Swollman	${_apmd} \
1442915Sjdp	arp \
1542915Sjdp	${_asf} \
1642915Sjdp	${_atm} \
1742915Sjdp	${_audit} \
1842915Sjdp	${_auditd} \
1942915Sjdp	${_auditreduce} \
2042915Sjdp	${_authpf} \
2142915Sjdp	${_bluetooth} \
2242915Sjdp	${_boot0cfg} \
2342915Sjdp	${_boot98cfg} \
2442915Sjdp	bootparamd \
2542915Sjdp	${_bsnmpd} \
2629141Speter	${_btxld} \
2742915Sjdp	burncd \
2842915Sjdp	cdcontrol \
2942915Sjdp	chkgrp \
3042915Sjdp	chown \
3142915Sjdp	chroot \
3242915Sjdp	ckdist \
3342915Sjdp	clear_locks \
3429141Speter	${_config} \
352827Sjkh	${_cpucontrol} \
362827Sjkh	crashinfo \
372827Sjkh	cron \
382827Sjkh	${_crunch} \
392827Sjkh	${_ctm} \
401638Srgrimes	daemon \
412827Sjkh	dconschat \
421638Srgrimes	devinfo \
4343055Sjdp	digictl \
4418529Sbde	diskinfo \
4531809Sbde	${_dnssec-dsfromkey} \
4618529Sbde	${_dnssec-keyfromlabel} \
471638Srgrimes	${_dnssec-keygen} \
4842450Sjdp	${_dnssec-signzone} \
491638Srgrimes	dumpcis \
5095064Sobrien	${_editmap} \
511638Srgrimes	${_edquota} \
5292491Smarkm	${_eeprom} \
5392491Smarkm	extattr \
5492553Sru	extattrctl \
5592491Smarkm	${_faithd} \
5692491Smarkm	${_fdcontrol} \
5792553Sru	${_fdformat} \
5892553Sru	${_fdread} \
5992491Smarkm	${_fdwrite} \
601638Srgrimes	fifolog \
611844Swollman	${_flowctl} \
6238186Speter	${_freebsd-update} \
6338186Speter	${_ftp-proxy} \
641638Srgrimes	fwcontrol \
651638Srgrimes	getfmac \
6624761Sjdp	getpmac \
6738186Speter	gstat \
6838186Speter	${_gssd} \
691638Srgrimes	i2c \
7042450Sjdp	ifmcstat \
711844Swollman	inetd \
7238186Speter	iostat \
7338186Speter	${_ip6addrctl} \
741844Swollman	${_ipfwpcap} \
7536673Sdt	${_IPXrouted} \
761844Swollman	${_jail} \
7738186Speter	${_jexec} \
7838186Speter	${_jls} \
791844Swollman	${_kbdcontrol} \
8036673Sdt	${_kbdmap} \
8124761Sjdp	${_keyserv} \
8238186Speter	${_kgmon} \
8338186Speter	${_kgzip} \
841844Swollman	kldxref \
8542450Sjdp	lastlogin \
861844Swollman	${_lmcconfig} \
8738186Speter	${_lpr} \
8838186Speter	${_lptcontrol} \
891844Swollman	${_mailstats} \
901844Swollman	mailwrapper \
911844Swollman	makefs \
9238186Speter	${_makemap} \
9338186Speter	${_manctl} \
941844Swollman	memcontrol \
951844Swollman	mergemaster \
9624761Sjdp	mfiutil \
9738186Speter	mixer \
9838186Speter	${_mld6query} \
991844Swollman	mlxcontrol \
10042450Sjdp	mountd \
1011844Swollman	${_mount_nwfs} \
10238186Speter	mount_portalfs \
10338186Speter	${_mount_smbfs} \
1041844Swollman	${_moused} \
10536054Sbde	${_mptable} \
10636054Sbde	mptutil \
10738186Speter	mtest \
10838186Speter	mtree \
10936054Sbde	${_named} \
11036054Sbde	${_named-checkconf} \
11136054Sbde	${_named-checkzone} \
11238186Speter	${_named.reload} \
11338186Speter	${_ndiscvt} \
11436054Sbde	${_ndp} \
11542450Sjdp	newsyslog \
11636054Sbde	nfscbd \
11738186Speter	nfsd \
11838186Speter	nfsdumpstate \
11936054Sbde	nfsrevoke \
12095251Sru	nfsuserd \
12126715Sasami	${_ngctl} \
12217510Speter	${_nghook} \
12338186Speter	nologin \
12438186Speter	${_nscd} \
1251638Srgrimes	${_ntp} \
12695251Sru	${_nvram} \
12726715Sasami	${_ofwdump} \
12817510Speter	pc-sysinstall \
12938186Speter	pciconf \
13038186Speter	periodic \
1311638Srgrimes	${_pkg_install} \
13295251Sru	${_pmcannotate} \
13395216Smarkm	${_pmccontrol} \
13495216Smarkm	${_pmcstat} \
13538186Speter	${_pnpinfo} \
13638186Speter	${_portsnap} \
1371638Srgrimes	powerd \
1381844Swollman	${_ppp} \
13926715Sasami	${_pppctl} \
14038186Speter	${_praliases} \
14138186Speter	${_praudit} \
1421844Swollman	procctl \
1431844Swollman	pstat \
14426715Sasami	pw \
14538186Speter	pwd_mkdb \
14638186Speter	quot \
1471844Swollman	${_quotaon} \
14842450Sjdp	rarpd \
14995216Smarkm	${_repquota} \
15095216Smarkm	${_rip6query} \
15138186Speter	rmt \
15238186Speter	${_rndc} \
1531844Swollman	${_rndc-confgen} \
1542870Swollman	${_route6d} \
1552868Swollman	rpcbind \
1561638Srgrimes	rpc.lockd \
1571638Srgrimes	rpc.statd \
1581638Srgrimes	rpc.umntall \
1591638Srgrimes	${_rpc.yppasswdd} \
1602870Swollman	${_rpc.ypupdated} \
1611638Srgrimes	${_rpc.ypxfrd} \
16242915Sjdp	${_rrenumd} \
16342915Sjdp	${_rtadvd} \
1641638Srgrimes	rtprio \
1651844Swollman	${_rtsold} \
1661844Swollman	${_rwhod} \
1671844Swollman	${_sa} \
1681638Srgrimes	${_sade} \
1691844Swollman	${_sendmail} \
17092128Sobrien	service \
17192128Sobrien	services_mkdb \
17292128Sobrien	setfib \
1731844Swollman	setfmac \
1741844Swollman	setpmac \
17592128Sobrien	${_sicontrol} \
1761638Srgrimes	smbmsg \
17795114Sobrien	snapinfo \
17895114Sobrien	${_spkrtest} \
17995114Sobrien	spray \
18095114Sobrien	${_sysinstall} \
18195114Sobrien	syslogd \
18295114Sobrien	tcpdchk \
18395114Sobrien	tcpdmatch \
18495306Sru	tcpdrop \
18595306Sru	tcpdump \
18674805Sru	timed \
18796164Sru	traceroute \
18874805Sru	${_traceroute6} \
1891844Swollman	trpt \
1901844Swollman	tzsetup \
1911844Swollman	${_uathload} \
19242915Sjdp	ugidfw \
19366534Speter	${_uhsoctl} \
1941638Srgrimes	${_usbdevs} \
19542915Sjdp	${_usbconfig} \
1961844Swollman	${_vidcontrol} \
1971638Srgrimes	vipw \
19842915Sjdp	wake \
1993859Sbde	watch \
2001638Srgrimes	watchdogd \
2012353Sbde	${_wlandebug} \
2021638Srgrimes	${_wlconfig} \
20317400Sjkh	${_wpa} \
2041844Swollman	${_ypbind} \
2053859Sbde	${_yp_mkdb} \
2061638Srgrimes	${_yppoll} \
20742450Sjdp	${_yppush} \
20828945Speter	${_ypserv} \
20942915Sjdp	${_ypset} \
21042915Sjdp	zic \
21142915Sjdp	${_zzz}
21242915Sjdp
21342915Sjdp# NB: keep these sorted by MK_* knobs
21442915Sjdp
21542915Sjdp.if ${MK_ACCT} != "no"
21638655Sjb_ac=		ac
21791011Sru_accton=	accton
21842915Sjdp_sa=		sa
21991011Sru.endif
22028945Speter
22191011Sru.if ${MK_AMD} != "no"
22242915Sjdp_amd=		amd
22391011Sru.endif
22428945Speter
22542915Sjdp.if ${MK_AUDIT} != "no"
2261844Swollman_audit=		audit
22742915Sjdp_auditd=	auditd
2281844Swollman_auditreduce=	auditreduce
2292353Sbde_praudit=	praudit
2301844Swollman.endif
2315253Sache
2321844Swollman.if ${MK_AUTHPF} != "no"
2333859Sbde_authpf=	authpf
2341844Swollman.endif
23592553Sru
23692491Smarkm.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
23792553Sru_dnssec-dsfromkey=	dnssec-dsfromkey
23892491Smarkm_dnssec-keyfromlabel=	dnssec-keyfromlabel
23992491Smarkm_dnssec-keygen=		dnssec-keygen
24092491Smarkm_dnssec-signzone=	dnssec-signzone
2411638Srgrimes.endif
2421638Srgrimes.if ${MK_BIND_NAMED} != "no"
24395306Sru_named=			named
24442915Sjdp_named-checkconf=	named-checkconf
24592553Sru_named-checkzone=	named-checkzone
24638187Speter_named.reload=		named.reload
24742450Sjdp_rndc=			rndc
24842915Sjdp_rndc-confgen=		rndc-confgen
24942450Sjdp.endif
25092491Smarkm
25116826Sphk.if ${MK_BLUETOOTH} != "no"
25216437Sphk_bluetooth=	bluetooth
2531638Srgrimes.endif
25416437Sphk
2551638Srgrimes.if ${MK_BSNMP} != "no"
25634179Sbde_bsnmpd=	bsnmpd
25724750Sbde.endif
25842450Sjdp
25924750Sbde.if ${MK_CTM} != "no"
26024750Sbde_ctm=		ctm
26142915Sjdp.endif
26238655Sjb
26342915Sjdp.if ${MK_FLOPPY} != "no"
26491011Sru_fdcontrol=	fdcontrol
26525468Sjdp_fdformat=	fdformat
26628945Speter_fdread=	fdread
26731809Sbde_fdwrite=	fdwrite
26842915Sjdp.endif
26927910Sasami
27028945Speter.if ${MK_FREEBSD_UPDATE} != "no"
27128945Speter_freebsd-update= freebsd-update
2721638Srgrimes.endif
2731638Srgrimes
2741638Srgrimes.if ${MK_GSSAPI} != no
27555954Srgrimes_gssd=		gssd
2761638Srgrimes.endif
2771638Srgrimes
27855954Srgrimes.if ${MK_INET6} != "no"
27955954Srgrimes_faithd=	faithd
28055954Srgrimes_ip6addrctl=	ip6addrctl
28155954Srgrimes_mld6query=	mld6query
28255954Srgrimes_ndp=		ndp
28395216Smarkm_rip6query=	rip6query
28455954Srgrimes_route6d=	route6d
28555954Srgrimes_rrenumd=	rrenumd
28655954Srgrimes_rtadvd=	rtadvd
28748204Sjmg_rtsold=	rtsold
2882298Swollman_traceroute6=	traceroute6
2892298Swollman.endif
2902298Swollman
29149328Shoek.if ${MK_IPFW} != "no"
29249328Shoek_ipfwpcap=	ipfwpcap
29349328Shoek.endif
29449328Shoek
29556971Sru.if ${MK_IPX} != "no"
29649328Shoek_IPXrouted=	IPXrouted
29749328Shoek.endif
29849328Shoek
29949328Shoek.if ${MK_JAIL} != "no"
3001638Srgrimes_jail=		jail
30195306Sru_jexec=		jexec
30295306Sru_jls=		jls
3032298Swollman.endif
30492980Sdes
30549328Shoek# XXX MK_SYSCONS
3061638Srgrimes.if ${MK_LEGACY_CONSOLE} != "no"
30792980Sdes_kbdcontrol=	kbdcontrol
30849328Shoek_kbdmap=	kbdmap
3091638Srgrimes_moused=	moused
3102298Swollman_vidcontrol=	vidcontrol
31142915Sjdp.endif
31248204Sjmg
31349328Shoek.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no"
31442915Sjdp.if ${MK_PPP} != "no"
31542915Sjdp_pppctl=	pppctl
31644946Sbde.endif
3171844Swollman.if ${MK_NS_CACHING} != "no"
31828945Speter_nscd=		nscd
3191844Swollman.endif
3201844Swollman.endif
32149328Shoek
3221844Swollman.if ${MK_LPR} != "no"
3231638Srgrimes_lpr=		lpr
3241638Srgrimes.endif
3251638Srgrimes
3261638Srgrimes.if ${MK_MAN_UTILS} != "no"
3271638Srgrimes_manctl=	manctl
3281638Srgrimes.endif
3291638Srgrimes
3302353Sbde.if ${MK_NETGRAPH} != "no"
33144946Sbde_flowctl=	flowctl
3321638Srgrimes_lmcconfig=	lmcconfig
3331638Srgrimes_ngctl=		ngctl
33444946Sbde_nghook=	nghook
33544946Sbde.endif
33644946Sbde
33744946Sbde.if ${MK_NIS} != "no"
33844946Sbde_rpc.yppasswdd=	rpc.yppasswdd
33944946Sbde_rpc.ypupdated=	rpc.ypupdated
34044946Sbde_rpc.ypxfrd=	rpc.ypxfrd
34144946Sbde_ypbind=	ypbind
34244946Sbde_yp_mkdb=	yp_mkdb
34344946Sbde_yppoll=	yppoll
34444946Sbde_yppush=	yppush
34592553Sru_ypserv=	ypserv
34692491Smarkm_ypset=		ypset
34792491Smarkm.endif
34892491Smarkm
3491638Srgrimes.if ${MK_NTP} != "no"
35096162Sru_ntp=		ntp
35196164Sru.endif
35296162Sru
35396162Sru.if ${MK_OPENSSL} != "no"
35495306Sru_keyserv=	keyserv
35595306Sru.endif
3561638Srgrimes
3571638Srgrimes.if ${MK_PF} != "no"
3581638Srgrimes_ftp-proxy=	ftp-proxy
35995306Sru.endif
36092553Sru
3611638Srgrimes.if ${MK_PKGTOOLS} != "no"
3621638Srgrimes_pkg_install=	pkg_install
3631844Swollman.endif
3641638Srgrimes
36574842Sru# XXX MK_TOOLCHAIN?
3661844Swollman.if ${MK_PMC} != "no"
3671844Swollman_pmcannotate=	pmcannotate
36834092Sbde_pmccontrol=	pmccontrol
36994113Sru_pmcstat=	pmcstat
37042915Sjdp.endif
37134092Sbde
37234092Sbde.if ${MK_PORTSNAP} != "no"
37316663Sjkh_portsnap=	portsnap
37476861Skris.endif
37576861Skris
376.if ${MK_PPP} != "no"
377_ppp=		ppp
378#_pppctl handled below
379.endif
380
381.if ${MK_QUOTAS} != "no"
382_edquota=	edquota
383_quotaon=	quotaon
384_repquota=	repquota
385.endif
386
387.if ${MK_RCMDS} != "no"
388_rwhod=		rwhod
389.endif
390
391.if ${MK_SENDMAIL} != "no"
392_editmap=	editmap
393_mailstats=	mailstats
394_makemap=	makemap
395_praliases=	praliases
396_sendmail=	sendmail
397.endif
398
399.if ${MK_SYSINSTALL} != "no"
400.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
401    ${MACHINE_ARCH} == "sparc64"
402_sade=		sade
403.endif
404.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
405_sysinstall=	sysinstall
406.endif
407.endif
408
409.if ${MK_TOOLCHAIN} != "no"
410_config=	config
411_crunch=	crunch
412.endif
413
414.if ${MK_USB} != "no"
415.if ${MACHINE_ARCH} != "ia64"
416_uathload=	uathload
417.endif
418_uhsoctl=	uhsoctl
419#_usbdevs=	usbdevs
420_usbconfig=	usbconfig
421.endif
422
423.if ${MK_WIRELESS} != "no"
424_ancontrol=	ancontrol
425_wlandebug=	wlandebug
426_wpa=		wpa
427.endif
428
429.if ${MACHINE_ARCH} == "arm"
430_kgmon=		kgmon
431.endif
432
433.if ${MACHINE_ARCH} == "i386"
434.if ${MK_APM} != "no"
435_apm=		apm
436_apmd=		apmd
437.endif
438_asf=		asf
439.if ${MK_TOOLCHAIN} != "no"
440_btxld=		btxld
441.endif
442_cpucontrol=	cpucontrol
443_kgmon=		kgmon
444_kgzip=		kgzip
445_lptcontrol=	lptcontrol
446.if ${MK_NCP} != "no"
447_mount_nwfs=	mount_nwfs
448.endif
449_mount_smbfs=	mount_smbfs
450_mptable=	mptable
451.if ${MK_NDIS} != "no"
452_ndiscvt=	ndiscvt
453.endif
454_pnpinfo=	pnpinfo
455_sicontrol=	sicontrol
456_spkrtest=	spkrtest
457_zzz=		zzz
458.if ${MACHINE} == "i386"
459.if ${MK_ACPI} != "no"
460_acpi=		acpi
461.endif
462_boot0cfg=	boot0cfg
463.if ${MK_WIRELESS} != "no"
464_wlconfig=	wlconfig
465.endif
466.elif ${MACHINE} == "pc98"
467_boot98cfg=	boot98cfg
468.endif
469.endif
470
471# kgzip: builds, but missing support files
472# mptable: broken (not 64 bit clean)
473# pnpinfo: crashes (not really useful anyway)
474.if ${MACHINE_ARCH} == "amd64"
475.if ${MK_ACPI} != "no"
476_acpi=		acpi
477.endif
478.if ${MK_APM} != "no"
479_apm=		apm
480.endif
481_asf=		asf
482_boot0cfg=	boot0cfg
483.if ${MK_TOOLCHAIN} != "no"
484_btxld=		btxld
485.endif
486_cpucontrol=	cpucontrol
487_kgmon=		kgmon
488_lptcontrol=	lptcontrol
489.if ${MK_NCP} != "no"
490_mount_nwfs=	mount_nwfs
491.endif
492_mount_smbfs=	mount_smbfs
493_mptable=	mptable
494.if ${MK_NDIS} != "no"
495_ndiscvt=	ndiscvt
496.endif
497_sicontrol=	sicontrol
498_spkrtest=	spkrtest
499_zzz=		zzz
500.endif
501
502.if ${MACHINE_ARCH} == "arm"
503_ofwdump=	ofwdump
504.endif
505
506.if ${MACHINE_ARCH} == "ia64"
507.if ${MK_ACPI} != "no"
508_acpi=		acpi
509.endif
510_kgmon=		kgmon
511_mount_smbfs=	mount_smbfs
512_zzz=		zzz
513.endif
514
515.if ${MACHINE_CPUARCH} == "powerpc"
516_mount_smbfs=	mount_smbfs
517_nvram=		nvram
518_ofwdump=	ofwdump
519.endif
520
521.if ${MACHINE_ARCH} == "sparc64"
522_eeprom=	eeprom
523_mount_smbfs=	mount_smbfs
524_ofwdump=	ofwdump
525.endif
526
527.include <bsd.subdir.mk>
528