xref: /freebsd/usr.sbin/Makefile (revision dbdb679c6ffb9b289cb4489246d0a30635657e00)
1886e832bSGarrett Wollman#	From: @(#)Makefile	5.20 (Berkeley) 6/12/93
297d92980SPeter Wemm# $FreeBSD$
3dea673e9SRodney W. Grimes
4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
5e1fe3dbaSRuslan Ermilov
678eb91b4SDavid Greenman# XXX MISSING:		mkproto
793970e26SRuslan ErmilovSUBDIR=	ac \
80451ac36SGary Palmer	accton \
9d10a8d6cSRuslan Ermilov	${_acpi} \
100451ac36SGary Palmer	adduser \
1177454fb4SDavid E. O'Brien	amd \
12261b9b30SBill Paul	ancontrol \
13d10a8d6cSRuslan Ermilov	${_apm} \
14d10a8d6cSRuslan Ermilov	${_apmd} \
15a5663451SMax Khon	${_arlcontrol} \
160451ac36SGary Palmer	arp \
17c0f20e27SRuslan Ermilov	${_asf} \
18c0f20e27SRuslan Ermilov	${_atm} \
196470320fSRobert Watson	${_audit} \
206470320fSRobert Watson	${_auditd} \
216470320fSRobert Watson	${_auditreduce} \
228d69c48bSMax Laier	${_authpf} \
23d10a8d6cSRuslan Ermilov	${_bluetooth} \
24d10a8d6cSRuslan Ermilov	${_boot0cfg} \
25d10a8d6cSRuslan Ermilov	${_boot98cfg} \
260451ac36SGary Palmer	bootparamd \
2773fd2d1eSHartmut Brandt	bsnmpd \
28d10a8d6cSRuslan Ermilov	${_btxld} \
296d73a68aSSøren Schmidt	burncd \
300451ac36SGary Palmer	cdcontrol \
310451ac36SGary Palmer	chkgrp \
320451ac36SGary Palmer	chown \
330451ac36SGary Palmer	chroot \
340451ac36SGary Palmer	ckdist \
35dfdcada3SDoug Rabson	clear_locks \
360451ac36SGary Palmer	config \
370451ac36SGary Palmer	cron \
383c817e2cSBruce Evans	crunch \
390451ac36SGary Palmer	ctm \
40bd06a3ecSMike Barcroft	daemon \
41869093b1SHidetoshi Shimokawa	dconschat \
420fb0f418SMike Smith	devinfo \
43ad01e0c8SBrian Somers	digictl \
44a362eb63SPoul-Henning Kamp	diskinfo \
45cd3ee173SDag-Erling Smørgrav	${_dnssec-keygen} \
46cd3ee173SDag-Erling Smørgrav	${_dnssec-signzone} \
47d10a8d6cSRuslan Ermilov	${_editmap} \
480451ac36SGary Palmer	edquota \
49156e1decSMarius Strobl	${_eeprom} \
50caefa400SPoul-Henning Kamp	extattr \
519754f5b6SRobert Watson	extattrctl \
52c42d8ce5SYaroslav Tykhiy	${_faithd} \
5318443fbdSMatt Jacob	fdcontrol \
5418443fbdSMatt Jacob	fdformat \
55146e5df7SJoerg Wunsch	fdread \
5618443fbdSMatt Jacob	fdwrite \
577825a6bdSPoul-Henning Kamp	fifolog \
585f99200fSGleb Smirnoff	flowctl \
5948ffe56aSColin Percival	freebsd-update \
6060ee3847SMax Laier	${_ftp-proxy} \
61a7a73b95SHidetoshi Shimokawa	fwcontrol \
625b38a427SRobert Watson	getfmac \
635b38a427SRobert Watson	getpmac \
6454a8adabSPoul-Henning Kamp	gstat \
65d10a8d6cSRuslan Ermilov	${_i4b} \
66123689d3SYoshinobu Inoue	ifmcstat \
670451ac36SGary Palmer	inetd \
685c9036d5SDima Ruban	iostat \
69ad4c6857SYaroslav Tykhiy	${_ip6addrctl} \
70179e20abSPoul-Henning Kamp	ipfwpcap \
71cea557adSRuslan Ermilov	${_IPXrouted} \
7275c13541SPoul-Henning Kamp	jail \
73ebf5d9bcSMike Barcroft	jexec \
74ebf5d9bcSMike Barcroft	jls \
755c9036d5SDima Ruban	kbdcontrol \
765c9036d5SDima Ruban	kbdmap \
77d10a8d6cSRuslan Ermilov	${_keyserv} \
78d10a8d6cSRuslan Ermilov	${_kgmon} \
79d10a8d6cSRuslan Ermilov	${_kgzip} \
809c6f9240SPeter Wemm	kldxref \
81b3b01ff3SRuslan Ermilov	lastlogin \
82c0f20e27SRuslan Ermilov	lmcconfig \
83d10a8d6cSRuslan Ermilov	${_lpr} \
84d10a8d6cSRuslan Ermilov	${_lptcontrol} \
85d10a8d6cSRuslan Ermilov	${_mailstats} \
86cccce27aSPeter Wemm	mailwrapper \
87d10a8d6cSRuslan Ermilov	${_makemap} \
880451ac36SGary Palmer	manctl \
890adc9d60SMike Smith	memcontrol \
9024ff9bb5SBill Fumerola	mergemaster \
91c7805c63SDoug Rabson	mixer \
92d10a8d6cSRuslan Ermilov	${_mld6query} \
93f6f23e2cSMike Smith	mlxcontrol \
948f40768aSGordon Tetlow	mountd \
95d10a8d6cSRuslan Ermilov	${_mount_nwfs} \
96d10a8d6cSRuslan Ermilov	mount_portalfs \
97d10a8d6cSRuslan Ermilov	${_mount_smbfs} \
985c9036d5SDima Ruban	moused \
99d10a8d6cSRuslan Ermilov	${_mptable} \
1000451ac36SGary Palmer	mtest \
1010451ac36SGary Palmer	mtree \
102d10a8d6cSRuslan Ermilov	${_named} \
103cd3ee173SDag-Erling Smørgrav	${_named-checkconf} \
104cd3ee173SDag-Erling Smørgrav	${_named-checkzone} \
105161a5ba8SRuslan Ermilov	${_named.reload} \
106d10a8d6cSRuslan Ermilov	${_ndiscvt} \
107bc34ace3SYaroslav Tykhiy	${_ndp} \
1080451ac36SGary Palmer	newsyslog \
1098f40768aSGordon Tetlow	nfsd \
110968ed7eeSRuslan Ermilov	ngctl \
1114cf49a43SJulian Elischer	nghook \
1125de697a6SColin Percival	nologin \
113c97fe77dSMichael Bushkov	${_nscd} \
114d10a8d6cSRuslan Ermilov	ntp \
115e5d34218SMaxim Sobolev	${_nvram} \
116d10a8d6cSRuslan Ermilov	${_ofwdump} \
117a8a3bce9SWarner Losh	pccard \
1180451ac36SGary Palmer	pciconf \
1190451ac36SGary Palmer	periodic \
1200451ac36SGary Palmer	pkg_install \
121cf7152abSMarcel Moolenaar	pmccontrol \
122cf7152abSMarcel Moolenaar	pmcstat \
123d10a8d6cSRuslan Ermilov	${_pnpinfo} \
1246fb01948SColin Percival	portsnap \
125c3c5f9cdSNate Lawson	powerd \
1267dd68385SPeter Wemm	ppp \
127d10a8d6cSRuslan Ermilov	${_pppctl} \
128ec480a97SPeter Wemm	pppd \
1290451ac36SGary Palmer	pppstats \
130d10a8d6cSRuslan Ermilov	${_praliases} \
1316470320fSRobert Watson	${_praudit} \
1320451ac36SGary Palmer	procctl \
1330451ac36SGary Palmer	pstat \
1340451ac36SGary Palmer	pw \
1350451ac36SGary Palmer	pwd_mkdb \
1360451ac36SGary Palmer	quot \
1370451ac36SGary Palmer	quotaon \
1380451ac36SGary Palmer	rarpd \
1394e1921abSWarner Losh	raycontrol \
1400451ac36SGary Palmer	repquota \
141d10a8d6cSRuslan Ermilov	${_rip6query} \
1420451ac36SGary Palmer	rmt \
143cd3ee173SDag-Erling Smørgrav	${_rndc} \
144cd3ee173SDag-Erling Smørgrav	${_rndc-confgen} \
145d10a8d6cSRuslan Ermilov	${_route6d} \
1468360efbdSAlfred Perlstein	rpcbind \
1470451ac36SGary Palmer	rpc.lockd \
1480451ac36SGary Palmer	rpc.statd \
149c69a34d4SMatthew Dillon	rpc.umntall \
1506c58990dSBjoern A. Zeeb	${_rpc.yppasswdd} \
1516c58990dSBjoern A. Zeeb	${_rpc.ypupdated} \
1526c58990dSBjoern A. Zeeb	${_rpc.ypxfrd} \
153bc34ace3SYaroslav Tykhiy	${_rrenumd} \
154bc34ace3SYaroslav Tykhiy	${_rtadvd} \
1555c9036d5SDima Ruban	rtprio \
156bc34ace3SYaroslav Tykhiy	${_rtsold} \
1570451ac36SGary Palmer	rwhod \
1580451ac36SGary Palmer	sa \
15998a746cfSAlexander Leidinger	sade \
160d10a8d6cSRuslan Ermilov	${_sendmail} \
1615b38a427SRobert Watson	setfmac \
1625b38a427SRobert Watson	setpmac \
163d10a8d6cSRuslan Ermilov	${_sicontrol} \
1640451ac36SGary Palmer	sliplogin \
1650451ac36SGary Palmer	slstat \
16680cdf39aSJoerg Wunsch	smbmsg \
1678f61cf9cSMark Santcroos	snapinfo \
168d10a8d6cSRuslan Ermilov	${_spkrtest} \
1690451ac36SGary Palmer	spray \
1700bc81187SDavid E. O'Brien	${_sysinstall} \
1710451ac36SGary Palmer	syslogd \
1728d4b20e3SMark Murray	tcpdchk \
1738d4b20e3SMark Murray	tcpdmatch \
174212a79b0SMaxim Konovalov	tcpdrop \
1750acc1823SDavid E. O'Brien	tcpdump \
1760451ac36SGary Palmer	timed \
1770451ac36SGary Palmer	traceroute \
178d10a8d6cSRuslan Ermilov	${_traceroute6} \
1790451ac36SGary Palmer	trpt \
1800451ac36SGary Palmer	tzsetup \
18134d26f04SRobert Watson	ugidfw \
182d10a8d6cSRuslan Ermilov	${_usbdevs} \
1835c9036d5SDima Ruban	vidcontrol \
1840451ac36SGary Palmer	vipw \
1850451ac36SGary Palmer	watch \
186370c3cb5SSean Kelly	watchdogd \
1879143cbe8SAndrew Thompson	wlandebug \
188d10a8d6cSRuslan Ermilov	${_wlconfig} \
189161a5ba8SRuslan Ermilov	wpa \
1906c58990dSBjoern A. Zeeb	${_ypbind} \
1916c58990dSBjoern A. Zeeb	${_yp_mkdb} \
1926c58990dSBjoern A. Zeeb	${_yppoll} \
1936c58990dSBjoern A. Zeeb	${_yppush} \
1946c58990dSBjoern A. Zeeb	${_ypserv} \
1956c58990dSBjoern A. Zeeb	${_ypset} \
196d10a8d6cSRuslan Ermilov	zic \
197d10a8d6cSRuslan Ermilov	${_zzz}
198d10a8d6cSRuslan Ermilov
1997a08579aSPeter Grehan.if ${MACHINE_ARCH} != "arm"
200d10a8d6cSRuslan Ermilov_sysinstall=	sysinstall
201d10a8d6cSRuslan Ermilov.endif
2025021f740SPeter Wemm
2032b851aebSRobert Watson# Disabled in 7.0 as netatm is not MPSAFE.
2042b851aebSRobert Watson#.if ${MK_ATM} != "no"
2052b851aebSRobert Watson#_atm=		atm
2062b851aebSRobert Watson#.endif
207ab5e5d7bSPeter Wemm
208e1fe3dbaSRuslan Ermilov.if ${MK_AUDIT} != "no"
2096470320fSRobert Watson_audit= 	audit
2106470320fSRobert Watson_auditd=	auditd
2116470320fSRobert Watson_auditreduce=	auditreduce
2126470320fSRobert Watson_praudit=	praudit
2136470320fSRobert Watson.endif
2146470320fSRobert Watson
215e1fe3dbaSRuslan Ermilov.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
21611d9d041SDag-Erling Smørgrav_dnssec-keygen=		dnssec-keygen
21711d9d041SDag-Erling Smørgrav_dnssec-signzone=	dnssec-signzone
21811d9d041SDag-Erling Smørgrav.endif
219e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
220d10a8d6cSRuslan Ermilov_named=			named
221cd3ee173SDag-Erling Smørgrav_named-checkconf=	named-checkconf
222cd3ee173SDag-Erling Smørgrav_named-checkzone=	named-checkzone
223161a5ba8SRuslan Ermilov_named.reload=		named.reload
224cd3ee173SDag-Erling Smørgrav_rndc=			rndc
225cd3ee173SDag-Erling Smørgrav_rndc-confgen=		rndc-confgen
226d10a8d6cSRuslan Ermilov.endif
227d10a8d6cSRuslan Ermilov
228e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
22923d1e148SMaksim Yevmenkin_bluetooth=	bluetooth
23023d1e148SMaksim Yevmenkin.endif
23123d1e148SMaksim Yevmenkin
232e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no"
233d10a8d6cSRuslan Ermilov_keyserv=	keyserv
234d10a8d6cSRuslan Ermilov.endif
235d10a8d6cSRuslan Ermilov
23660ee3847SMax Laier.if ${MK_PF} != "no"
23760ee3847SMax Laier_ftp-proxy=	ftp-proxy
23860ee3847SMax Laier.endif
23960ee3847SMax Laier
240e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
241c42d8ce5SYaroslav Tykhiy_faithd=	faithd
242ad4c6857SYaroslav Tykhiy_ip6addrctl=	ip6addrctl
243d10a8d6cSRuslan Ermilov_mld6query=	mld6query
244bc34ace3SYaroslav Tykhiy_ndp=		ndp
245d10a8d6cSRuslan Ermilov_rip6query=	rip6query
246d10a8d6cSRuslan Ermilov_route6d=	route6d
247bc34ace3SYaroslav Tykhiy_rrenumd=	rrenumd
248bc34ace3SYaroslav Tykhiy_rtadvd=	rtadvd
249bc34ace3SYaroslav Tykhiy_rtsold=	rtsold
250d10a8d6cSRuslan Ermilov_traceroute6=	traceroute6
251d10a8d6cSRuslan Ermilov.endif
252d10a8d6cSRuslan Ermilov
253cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
254cea557adSRuslan Ermilov_IPXrouted=	IPXrouted
255cea557adSRuslan Ermilov.endif
256cea557adSRuslan Ermilov
257e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
2586c58990dSBjoern A. Zeeb_rpc.yppasswdd=	rpc.yppasswdd
2596c58990dSBjoern A. Zeeb_rpc.ypupdated=	rpc.ypupdated
2606c58990dSBjoern A. Zeeb_rpc.ypxfrd=	rpc.ypxfrd
2616c58990dSBjoern A. Zeeb_ypbind=	ypbind
2626c58990dSBjoern A. Zeeb_yp_mkdb=	yp_mkdb
2636c58990dSBjoern A. Zeeb_yppoll=	yppoll
2646c58990dSBjoern A. Zeeb_yppush=	yppush
2656c58990dSBjoern A. Zeeb_ypserv=	ypserv
2666c58990dSBjoern A. Zeeb_ypset=		ypset
2676c58990dSBjoern A. Zeeb.endif
2686c58990dSBjoern A. Zeeb
269e1fe3dbaSRuslan Ermilov.if ${MK_AUTHPF} != "no"
2708d69c48bSMax Laier_authpf=	authpf
2718d69c48bSMax Laier.endif
2728d69c48bSMax Laier
273dbdb679cSRuslan Ermilov.if ${MK_LIBTHR} != "no"
274152f2a4aSRuslan Ermilov_pppctl=	pppctl
275152f2a4aSRuslan Ermilov.endif
276152f2a4aSRuslan Ermilov
277e1fe3dbaSRuslan Ermilov.if ${MK_LPR} != "no"
278d10a8d6cSRuslan Ermilov_lpr=		lpr
2798c0e8d96STim Vanderhoek.endif
2808c0e8d96STim Vanderhoek
2818af480aeSRuslan Ermilov.if ${MK_NS_CACHING} != "no"
282dbdb679cSRuslan Ermilov.if ${MK_LIBTHR} != "no"
283c97fe77dSMichael Bushkov_nscd=		nscd
2848af480aeSRuslan Ermilov.endif
2858af480aeSRuslan Ermilov.endif
2868af480aeSRuslan Ermilov
287e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
288d10a8d6cSRuslan Ermilov_editmap=	editmap
289d10a8d6cSRuslan Ermilov_mailstats=	mailstats
290d10a8d6cSRuslan Ermilov_makemap=	makemap
291d10a8d6cSRuslan Ermilov_praliases=	praliases
292d10a8d6cSRuslan Ermilov_sendmail=	sendmail
2935a85f025SPoul-Henning Kamp.endif
2945a85f025SPoul-Henning Kamp
295e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
296d10a8d6cSRuslan Ermilov_usbdevs=	usbdevs
2972b51223fSStefan Eßer.endif
2982b51223fSStefan Eßer
29957628e38SOlivier Houchard.if ${MACHINE_ARCH} == "arm"
30057628e38SOlivier Houchard_kgmon=		kgmon
30157628e38SOlivier Houchard.endif
30257628e38SOlivier Houchard
3031a1536c1SJohn Birrell.if ${MACHINE_ARCH} == "i386"
304d10a8d6cSRuslan Ermilov_apm=		apm
305d10a8d6cSRuslan Ermilov_apmd=		apmd
306d10a8d6cSRuslan Ermilov_asf=		asf
307d10a8d6cSRuslan Ermilov_btxld=		btxld
308e1fe3dbaSRuslan Ermilov.if ${MK_I4B} != "no"
309d10a8d6cSRuslan Ermilov_i4b=		i4b
310d10a8d6cSRuslan Ermilov.endif
311d10a8d6cSRuslan Ermilov_kgmon=		kgmon
312d10a8d6cSRuslan Ermilov_kgzip=		kgzip
313d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
314cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
315d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
316cea557adSRuslan Ermilov.endif
317d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
318d10a8d6cSRuslan Ermilov_mptable=	mptable
319d10a8d6cSRuslan Ermilov_ndiscvt=	ndiscvt
320d10a8d6cSRuslan Ermilov_pnpinfo=	pnpinfo
32179e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
322d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
323d10a8d6cSRuslan Ermilov_zzz=		zzz
324f8eecc08SWarner Losh.if ${MACHINE} == "i386"
325e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
326f8eecc08SWarner Losh_acpi=		acpi
327f8eecc08SWarner Losh.endif
328f8eecc08SWarner Losh_arlcontrol=	arlcontrol
329f8eecc08SWarner Losh_boot0cfg=	boot0cfg
330f8eecc08SWarner Losh_wlconfig=	wlconfig
331f8eecc08SWarner Losh.elif ${MACHINE} == "pc98"
332f8eecc08SWarner Losh_boot98cfg=	boot98cfg
333f8eecc08SWarner Losh.endif
334f3bb47ccSRuslan Ermilov.endif
3353bc2f9a8SPoul-Henning Kamp
33619f2b0e8SPeter Wemm# kgzip: builds, but missing support files
33719f2b0e8SPeter Wemm# mptable: broken (not 64 bit clean)
33819f2b0e8SPeter Wemm# pnpinfo: crashes (not really useful anyway)
339a6f4ec06SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
340e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
341d10a8d6cSRuslan Ermilov_acpi=		acpi
342d10a8d6cSRuslan Ermilov.endif
343d10a8d6cSRuslan Ermilov_asf=		asf
344d10a8d6cSRuslan Ermilov_boot0cfg=	boot0cfg
345d10a8d6cSRuslan Ermilov_btxld=		btxld
346be8282baSBruce Evans_kgmon=		kgmon
347d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
348cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
349d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
350cea557adSRuslan Ermilov.endif
351d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
352d10a8d6cSRuslan Ermilov_mptable=	mptable
3534e012474SBill Paul_ndiscvt=	ndiscvt
35479e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
355d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
356d10a8d6cSRuslan Ermilov_zzz=		zzz
357a6f4ec06SPeter Wemm.endif
358a6f4ec06SPeter Wemm
359d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "ia64"
360e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
361d10a8d6cSRuslan Ermilov_acpi=		acpi
362c7961209SKATO Takenori.endif
363fb35b471SMarcel Moolenaar_kgmon=		kgmon
364a1800335SMarcel Moolenaar_mount_smbfs=	mount_smbfs
365d10a8d6cSRuslan Ermilov_zzz=		zzz
3666a70fca0SKATO Takenori.endif
367c7961209SKATO Takenori
36859fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc"
36959fa7082SR. Imura_mount_smbfs=	mount_smbfs
370e5d34218SMaxim Sobolev_nvram=		nvram
371104954feSPeter Grehan_ofwdump=	ofwdump
37259fa7082SR. Imura.endif
37359fa7082SR. Imura
3746f6ede92SThomas Moestl.if ${MACHINE_ARCH} == "sparc64"
375156e1decSMarius Strobl_eeprom=	eeprom
376d10a8d6cSRuslan Ermilov_ofwdump=	ofwdump
377a8ec1b48SMaxim Sobolev.endif
378a8ec1b48SMaxim Sobolev
379dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
380