xref: /freebsd/usr.sbin/Makefile (revision 968ed7eedbba9533e7711a795017fb48558c2f5a)
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 \
110451ac36SGary Palmer	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 \
3006a99fe3SHajimu UMEMOTO	${_cached} \
310451ac36SGary Palmer	cdcontrol \
320451ac36SGary Palmer	chkgrp \
330451ac36SGary Palmer	chown \
340451ac36SGary Palmer	chroot \
350451ac36SGary Palmer	ckdist \
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 \
575f99200fSGleb Smirnoff	flowctl \
5848ffe56aSColin Percival	freebsd-update \
59a7a73b95SHidetoshi Shimokawa	fwcontrol \
605b38a427SRobert Watson	getfmac \
615b38a427SRobert Watson	getpmac \
6254a8adabSPoul-Henning Kamp	gstat \
63d10a8d6cSRuslan Ermilov	${_i4b} \
64123689d3SYoshinobu Inoue	ifmcstat \
650451ac36SGary Palmer	inetd \
665c9036d5SDima Ruban	iostat \
67ad4c6857SYaroslav Tykhiy	${_ip6addrctl} \
68179e20abSPoul-Henning Kamp	ipfwpcap \
69cea557adSRuslan Ermilov	${_IPXrouted} \
7075c13541SPoul-Henning Kamp	jail \
71ebf5d9bcSMike Barcroft	jexec \
72ebf5d9bcSMike Barcroft	jls \
735c9036d5SDima Ruban	kbdcontrol \
745c9036d5SDima Ruban	kbdmap \
75d10a8d6cSRuslan Ermilov	${_keyserv} \
76d10a8d6cSRuslan Ermilov	${_kgmon} \
77d10a8d6cSRuslan Ermilov	${_kgzip} \
789c6f9240SPeter Wemm	kldxref \
79b3b01ff3SRuslan Ermilov	lastlogin \
80c0f20e27SRuslan Ermilov	lmcconfig \
81d10a8d6cSRuslan Ermilov	${_lpr} \
82d10a8d6cSRuslan Ermilov	${_lptcontrol} \
83d10a8d6cSRuslan Ermilov	${_mailstats} \
84cccce27aSPeter Wemm	mailwrapper \
85d10a8d6cSRuslan Ermilov	${_makemap} \
860451ac36SGary Palmer	manctl \
870adc9d60SMike Smith	memcontrol \
8824ff9bb5SBill Fumerola	mergemaster \
89c7805c63SDoug Rabson	mixer \
90d10a8d6cSRuslan Ermilov	${_mld6query} \
91f6f23e2cSMike Smith	mlxcontrol \
928f40768aSGordon Tetlow	mountd \
93d10a8d6cSRuslan Ermilov	${_mount_nwfs} \
94d10a8d6cSRuslan Ermilov	mount_portalfs \
95d10a8d6cSRuslan Ermilov	${_mount_smbfs} \
965c9036d5SDima Ruban	moused \
97d10a8d6cSRuslan Ermilov	${_mptable} \
980451ac36SGary Palmer	mtest \
990451ac36SGary Palmer	mtree \
100d10a8d6cSRuslan Ermilov	${_named} \
101cd3ee173SDag-Erling Smørgrav	${_named-checkconf} \
102cd3ee173SDag-Erling Smørgrav	${_named-checkzone} \
103161a5ba8SRuslan Ermilov	${_named.reload} \
104d10a8d6cSRuslan Ermilov	${_ndiscvt} \
105bc34ace3SYaroslav Tykhiy	${_ndp} \
1060451ac36SGary Palmer	newsyslog \
1078f40768aSGordon Tetlow	nfsd \
108968ed7eeSRuslan Ermilov	ngctl \
1094cf49a43SJulian Elischer	nghook \
1105de697a6SColin Percival	nologin \
111d10a8d6cSRuslan Ermilov	ntp \
112e5d34218SMaxim Sobolev	${_nvram} \
113d10a8d6cSRuslan Ermilov	${_ofwdump} \
114a8a3bce9SWarner Losh	pccard \
1150451ac36SGary Palmer	pciconf \
1160451ac36SGary Palmer	periodic \
1170451ac36SGary Palmer	pkg_install \
118cf7152abSMarcel Moolenaar	pmccontrol \
119cf7152abSMarcel Moolenaar	pmcstat \
120d10a8d6cSRuslan Ermilov	${_pnpinfo} \
1216fb01948SColin Percival	portsnap \
122c3c5f9cdSNate Lawson	powerd \
1237dd68385SPeter Wemm	ppp \
124d10a8d6cSRuslan Ermilov	${_pppctl} \
125ec480a97SPeter Wemm	pppd \
1260451ac36SGary Palmer	pppstats \
127d10a8d6cSRuslan Ermilov	${_praliases} \
1286470320fSRobert Watson	${_praudit} \
1290451ac36SGary Palmer	procctl \
1300451ac36SGary Palmer	pstat \
1310451ac36SGary Palmer	pw \
1320451ac36SGary Palmer	pwd_mkdb \
1330451ac36SGary Palmer	quot \
1340451ac36SGary Palmer	quotaon \
1350451ac36SGary Palmer	rarpd \
1364e1921abSWarner Losh	raycontrol \
1370451ac36SGary Palmer	repquota \
138d10a8d6cSRuslan Ermilov	${_rip6query} \
1390451ac36SGary Palmer	rmt \
140cd3ee173SDag-Erling Smørgrav	${_rndc} \
141cd3ee173SDag-Erling Smørgrav	${_rndc-confgen} \
142d10a8d6cSRuslan Ermilov	${_route6d} \
1438360efbdSAlfred Perlstein	rpcbind \
1440451ac36SGary Palmer	rpc.lockd \
1450451ac36SGary Palmer	rpc.statd \
146c69a34d4SMatthew Dillon	rpc.umntall \
1476c58990dSBjoern A. Zeeb	${_rpc.yppasswdd} \
1486c58990dSBjoern A. Zeeb	${_rpc.ypupdated} \
1496c58990dSBjoern A. Zeeb	${_rpc.ypxfrd} \
150bc34ace3SYaroslav Tykhiy	${_rrenumd} \
151bc34ace3SYaroslav Tykhiy	${_rtadvd} \
1525c9036d5SDima Ruban	rtprio \
153bc34ace3SYaroslav Tykhiy	${_rtsold} \
1540451ac36SGary Palmer	rwhod \
1550451ac36SGary Palmer	sa \
15698a746cfSAlexander Leidinger	sade \
157d10a8d6cSRuslan Ermilov	${_sendmail} \
1585b38a427SRobert Watson	setfmac \
1595b38a427SRobert Watson	setpmac \
160d10a8d6cSRuslan Ermilov	${_sicontrol} \
1610451ac36SGary Palmer	sliplogin \
1620451ac36SGary Palmer	slstat \
16380cdf39aSJoerg Wunsch	smbmsg \
1648f61cf9cSMark Santcroos	snapinfo \
165d10a8d6cSRuslan Ermilov	${_spkrtest} \
1660451ac36SGary Palmer	spray \
1670bc81187SDavid E. O'Brien	${_sysinstall} \
1680451ac36SGary Palmer	syslogd \
1698d4b20e3SMark Murray	tcpdchk \
1708d4b20e3SMark Murray	tcpdmatch \
171212a79b0SMaxim Konovalov	tcpdrop \
1720acc1823SDavid E. O'Brien	tcpdump \
1730451ac36SGary Palmer	timed \
1740451ac36SGary Palmer	traceroute \
175d10a8d6cSRuslan Ermilov	${_traceroute6} \
1760451ac36SGary Palmer	trpt \
1770451ac36SGary Palmer	tzsetup \
17834d26f04SRobert Watson	ugidfw \
179d10a8d6cSRuslan Ermilov	${_usbdevs} \
1805c9036d5SDima Ruban	vidcontrol \
1810451ac36SGary Palmer	vipw \
1820451ac36SGary Palmer	vnconfig \
1830451ac36SGary Palmer	watch \
184370c3cb5SSean Kelly	watchdogd \
1853df8ada3SPeter Wemm	wicontrol \
186d10a8d6cSRuslan Ermilov	${_wlconfig} \
187161a5ba8SRuslan Ermilov	wpa \
1886c58990dSBjoern A. Zeeb	${_ypbind} \
1896c58990dSBjoern A. Zeeb	${_yp_mkdb} \
1906c58990dSBjoern A. Zeeb	${_yppoll} \
1916c58990dSBjoern A. Zeeb	${_yppush} \
1926c58990dSBjoern A. Zeeb	${_ypserv} \
1936c58990dSBjoern A. Zeeb	${_ypset} \
194d10a8d6cSRuslan Ermilov	zic \
195d10a8d6cSRuslan Ermilov	${_zzz}
196d10a8d6cSRuslan Ermilov
1977a08579aSPeter Grehan.if ${MACHINE_ARCH} != "arm"
198d10a8d6cSRuslan Ermilov_sysinstall=	sysinstall
199d10a8d6cSRuslan Ermilov.endif
2005021f740SPeter Wemm
201e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no"
202d10a8d6cSRuslan Ermilov_atm=		atm
203ab5e5d7bSPeter Wemm.endif
204ab5e5d7bSPeter Wemm
205e1fe3dbaSRuslan Ermilov.if ${MK_AUDIT} != "no"
2066470320fSRobert Watson_audit= 	audit
2076470320fSRobert Watson_auditd=	auditd
2086470320fSRobert Watson_auditreduce=	auditreduce
2096470320fSRobert Watson_praudit=	praudit
2106470320fSRobert Watson.endif
2116470320fSRobert Watson
212e1fe3dbaSRuslan Ermilov.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
21311d9d041SDag-Erling Smørgrav_dnssec-keygen=		dnssec-keygen
21411d9d041SDag-Erling Smørgrav_dnssec-signzone=	dnssec-signzone
21511d9d041SDag-Erling Smørgrav.endif
216e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
217d10a8d6cSRuslan Ermilov_named=			named
218cd3ee173SDag-Erling Smørgrav_named-checkconf=	named-checkconf
219cd3ee173SDag-Erling Smørgrav_named-checkzone=	named-checkzone
220161a5ba8SRuslan Ermilov_named.reload=		named.reload
221cd3ee173SDag-Erling Smørgrav_rndc=			rndc
222cd3ee173SDag-Erling Smørgrav_rndc-confgen=		rndc-confgen
223d10a8d6cSRuslan Ermilov.endif
224d10a8d6cSRuslan Ermilov
225e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
22623d1e148SMaksim Yevmenkin_bluetooth=	bluetooth
22723d1e148SMaksim Yevmenkin.endif
22823d1e148SMaksim Yevmenkin
229e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no"
230d10a8d6cSRuslan Ermilov_keyserv=	keyserv
231d10a8d6cSRuslan Ermilov.endif
232d10a8d6cSRuslan Ermilov
233e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
234c42d8ce5SYaroslav Tykhiy_faithd=	faithd
235ad4c6857SYaroslav Tykhiy_ip6addrctl=	ip6addrctl
236d10a8d6cSRuslan Ermilov_mld6query=	mld6query
237bc34ace3SYaroslav Tykhiy_ndp=		ndp
238d10a8d6cSRuslan Ermilov_rip6query=	rip6query
239d10a8d6cSRuslan Ermilov_route6d=	route6d
240bc34ace3SYaroslav Tykhiy_rrenumd=	rrenumd
241bc34ace3SYaroslav Tykhiy_rtadvd=	rtadvd
242bc34ace3SYaroslav Tykhiy_rtsold=	rtsold
243d10a8d6cSRuslan Ermilov_traceroute6=	traceroute6
244d10a8d6cSRuslan Ermilov.endif
245d10a8d6cSRuslan Ermilov
246cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
247cea557adSRuslan Ermilov_IPXrouted=	IPXrouted
248cea557adSRuslan Ermilov.endif
249cea557adSRuslan Ermilov
250e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
2516c58990dSBjoern A. Zeeb_rpc.yppasswdd=	rpc.yppasswdd
2526c58990dSBjoern A. Zeeb_rpc.ypupdated=	rpc.ypupdated
2536c58990dSBjoern A. Zeeb_rpc.ypxfrd=	rpc.ypxfrd
2546c58990dSBjoern A. Zeeb_ypbind=	ypbind
2556c58990dSBjoern A. Zeeb_yp_mkdb=	yp_mkdb
2566c58990dSBjoern A. Zeeb_yppoll=	yppoll
2576c58990dSBjoern A. Zeeb_yppush=	yppush
2586c58990dSBjoern A. Zeeb_ypserv=	ypserv
2596c58990dSBjoern A. Zeeb_ypset=		ypset
2606c58990dSBjoern A. Zeeb.endif
2616c58990dSBjoern A. Zeeb
262e1fe3dbaSRuslan Ermilov.if ${MK_AUTHPF} != "no"
2638d69c48bSMax Laier_authpf=	authpf
2648d69c48bSMax Laier.endif
2658d69c48bSMax Laier
266e1fe3dbaSRuslan Ermilov.if ${MK_LPR} != "no"
267d10a8d6cSRuslan Ermilov_lpr=		lpr
2688c0e8d96STim Vanderhoek.endif
2698c0e8d96STim Vanderhoek
2708af480aeSRuslan Ermilov.if ${MK_NS_CACHING} != "no"
2718af480aeSRuslan Ermilov.if ${MK_LIBTHR} != "no" || \
2728af480aeSRuslan Ermilov    (${MACHINE_ARCH} != "sparc64" && ${MK_LIBPTHREAD} != "no")
2738af480aeSRuslan Ermilov_cached=	cached
2748af480aeSRuslan Ermilov.endif
2758af480aeSRuslan Ermilov.endif
2768af480aeSRuslan Ermilov
277e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
278d10a8d6cSRuslan Ermilov_editmap=	editmap
279d10a8d6cSRuslan Ermilov_mailstats=	mailstats
280d10a8d6cSRuslan Ermilov_makemap=	makemap
281d10a8d6cSRuslan Ermilov_praliases=	praliases
282d10a8d6cSRuslan Ermilov_sendmail=	sendmail
2835a85f025SPoul-Henning Kamp.endif
2845a85f025SPoul-Henning Kamp
285e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
286d10a8d6cSRuslan Ermilov_usbdevs=	usbdevs
2872b51223fSStefan Eßer.endif
2882b51223fSStefan Eßer
28957628e38SOlivier Houchard.if ${MACHINE_ARCH} == "arm"
29057628e38SOlivier Houchard_kgmon=		kgmon
29157628e38SOlivier Houchard.endif
29257628e38SOlivier Houchard
2931a1536c1SJohn Birrell.if ${MACHINE_ARCH} == "i386"
294d10a8d6cSRuslan Ermilov_apm=		apm
295d10a8d6cSRuslan Ermilov_apmd=		apmd
296d10a8d6cSRuslan Ermilov_asf=		asf
297d10a8d6cSRuslan Ermilov_btxld=		btxld
298e1fe3dbaSRuslan Ermilov.if ${MK_I4B} != "no"
299d10a8d6cSRuslan Ermilov_i4b=		i4b
300d10a8d6cSRuslan Ermilov.endif
301d10a8d6cSRuslan Ermilov_kgmon=		kgmon
302d10a8d6cSRuslan Ermilov_kgzip=		kgzip
303d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
304cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
305d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
306cea557adSRuslan Ermilov.endif
307d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
308d10a8d6cSRuslan Ermilov_mptable=	mptable
309d10a8d6cSRuslan Ermilov_ndiscvt=	ndiscvt
310d10a8d6cSRuslan Ermilov_pnpinfo=	pnpinfo
3118af480aeSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no" || ${MK_LIBTHR} != "no"
3124543f32eSDaniel Eischen_pppctl=	pppctl
3134543f32eSDaniel Eischen.endif
31479e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
315d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
316d10a8d6cSRuslan Ermilov_zzz=		zzz
317f8eecc08SWarner Losh.if ${MACHINE} == "i386"
318e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
319f8eecc08SWarner Losh_acpi=		acpi
320f8eecc08SWarner Losh.endif
321f8eecc08SWarner Losh_arlcontrol=	arlcontrol
322f8eecc08SWarner Losh_boot0cfg=	boot0cfg
323f8eecc08SWarner Losh_wlconfig=	wlconfig
324f8eecc08SWarner Losh.elif ${MACHINE} == "pc98"
325f8eecc08SWarner Losh_boot98cfg=	boot98cfg
326f8eecc08SWarner Losh.endif
327f3bb47ccSRuslan Ermilov.endif
3283bc2f9a8SPoul-Henning Kamp
32919f2b0e8SPeter Wemm# kgzip: builds, but missing support files
33019f2b0e8SPeter Wemm# mptable: broken (not 64 bit clean)
33119f2b0e8SPeter Wemm# pnpinfo: crashes (not really useful anyway)
332a6f4ec06SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
333e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
334d10a8d6cSRuslan Ermilov_acpi=		acpi
335d10a8d6cSRuslan Ermilov.endif
336d10a8d6cSRuslan Ermilov_asf=		asf
337d10a8d6cSRuslan Ermilov_boot0cfg=	boot0cfg
338d10a8d6cSRuslan Ermilov_btxld=		btxld
339be8282baSBruce Evans_kgmon=		kgmon
340d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
341cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
342d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
343cea557adSRuslan Ermilov.endif
344d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
345d10a8d6cSRuslan Ermilov_mptable=	mptable
3464e012474SBill Paul_ndiscvt=	ndiscvt
3478af480aeSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no" || ${MK_LIBTHR} != "no"
3484543f32eSDaniel Eischen_pppctl=	pppctl
3494543f32eSDaniel Eischen.endif
35079e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
351d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
352d10a8d6cSRuslan Ermilov_zzz=		zzz
353a6f4ec06SPeter Wemm.endif
354a6f4ec06SPeter Wemm
355d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "ia64"
356e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
357d10a8d6cSRuslan Ermilov_acpi=		acpi
358c7961209SKATO Takenori.endif
359fb35b471SMarcel Moolenaar_kgmon=		kgmon
360a1800335SMarcel Moolenaar_mount_smbfs=	mount_smbfs
3618af480aeSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no" || ${MK_LIBTHR} != "no"
3624543f32eSDaniel Eischen_pppctl=	pppctl
3634543f32eSDaniel Eischen.endif
364d10a8d6cSRuslan Ermilov_zzz=		zzz
3656a70fca0SKATO Takenori.endif
366c7961209SKATO Takenori
36759fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc"
36859fa7082SR. Imura_mount_smbfs=	mount_smbfs
369e5d34218SMaxim Sobolev_nvram=		nvram
37059fa7082SR. Imura.endif
37159fa7082SR. Imura
3726f6ede92SThomas Moestl.if ${MACHINE_ARCH} == "sparc64"
373156e1decSMarius Strobl_eeprom=	eeprom
374d10a8d6cSRuslan Ermilov_ofwdump=	ofwdump
375295c5deaSRuslan Ermilov.if ${MK_LIBTHR} != "no"
3764543f32eSDaniel Eischen_pppctl=	pppctl
3774543f32eSDaniel Eischen.endif
378a8ec1b48SMaxim Sobolev.endif
379a8ec1b48SMaxim Sobolev
380dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
381