xref: /freebsd/usr.sbin/Makefile (revision c42d8ce5f6a515ce7a225454c1fd5b549c9f5dbf)
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 \
1084cf49a43SJulian Elischer	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
22906a99fe3SHajimu UMEMOTO.if ${MK_NS_CACHING} != "no"
23006a99fe3SHajimu UMEMOTO_cached=       cached
23106a99fe3SHajimu UMEMOTO.endif
23206a99fe3SHajimu UMEMOTO
233e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no"
234d10a8d6cSRuslan Ermilov_keyserv=	keyserv
235d10a8d6cSRuslan Ermilov.endif
236d10a8d6cSRuslan Ermilov
237e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
238c42d8ce5SYaroslav Tykhiy_faithd=	faithd
239ad4c6857SYaroslav Tykhiy_ip6addrctl=	ip6addrctl
240d10a8d6cSRuslan Ermilov_mld6query=	mld6query
241bc34ace3SYaroslav Tykhiy_ndp=		ndp
242d10a8d6cSRuslan Ermilov_rip6query=	rip6query
243d10a8d6cSRuslan Ermilov_route6d=	route6d
244bc34ace3SYaroslav Tykhiy_rrenumd=	rrenumd
245bc34ace3SYaroslav Tykhiy_rtadvd=	rtadvd
246bc34ace3SYaroslav Tykhiy_rtsold=	rtsold
247d10a8d6cSRuslan Ermilov_traceroute6=	traceroute6
248d10a8d6cSRuslan Ermilov.endif
249d10a8d6cSRuslan Ermilov
250cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
251cea557adSRuslan Ermilov_IPXrouted=	IPXrouted
252cea557adSRuslan Ermilov.endif
253cea557adSRuslan Ermilov
254e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
2556c58990dSBjoern A. Zeeb_rpc.yppasswdd=	rpc.yppasswdd
2566c58990dSBjoern A. Zeeb_rpc.ypupdated=	rpc.ypupdated
2576c58990dSBjoern A. Zeeb_rpc.ypxfrd=	rpc.ypxfrd
2586c58990dSBjoern A. Zeeb_ypbind=	ypbind
2596c58990dSBjoern A. Zeeb_yp_mkdb=	yp_mkdb
2606c58990dSBjoern A. Zeeb_yppoll=	yppoll
2616c58990dSBjoern A. Zeeb_yppush=	yppush
2626c58990dSBjoern A. Zeeb_ypserv=	ypserv
2636c58990dSBjoern A. Zeeb_ypset=		ypset
2646c58990dSBjoern A. Zeeb.endif
2656c58990dSBjoern A. Zeeb
266e1fe3dbaSRuslan Ermilov.if ${MK_AUTHPF} != "no"
2678d69c48bSMax Laier_authpf=	authpf
2688d69c48bSMax Laier.endif
2698d69c48bSMax Laier
270e1fe3dbaSRuslan Ermilov.if ${MK_LPR} != "no"
271d10a8d6cSRuslan Ermilov_lpr=		lpr
2728c0e8d96STim Vanderhoek.endif
2738c0e8d96STim Vanderhoek
274e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
275d10a8d6cSRuslan Ermilov_editmap=	editmap
276d10a8d6cSRuslan Ermilov_mailstats=	mailstats
277d10a8d6cSRuslan Ermilov_makemap=	makemap
278d10a8d6cSRuslan Ermilov_praliases=	praliases
279d10a8d6cSRuslan Ermilov_sendmail=	sendmail
2805a85f025SPoul-Henning Kamp.endif
2815a85f025SPoul-Henning Kamp
282e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
283d10a8d6cSRuslan Ermilov_usbdevs=	usbdevs
2842b51223fSStefan Eßer.endif
2852b51223fSStefan Eßer
28657628e38SOlivier Houchard.if ${MACHINE_ARCH} == "arm"
28757628e38SOlivier Houchard_kgmon=		kgmon
28857628e38SOlivier Houchard.endif
28957628e38SOlivier Houchard
2901a1536c1SJohn Birrell.if ${MACHINE_ARCH} == "i386"
291d10a8d6cSRuslan Ermilov_apm=		apm
292d10a8d6cSRuslan Ermilov_apmd=		apmd
293d10a8d6cSRuslan Ermilov_asf=		asf
294d10a8d6cSRuslan Ermilov_btxld=		btxld
295e1fe3dbaSRuslan Ermilov.if ${MK_I4B} != "no"
296d10a8d6cSRuslan Ermilov_i4b=		i4b
297d10a8d6cSRuslan Ermilov.endif
298d10a8d6cSRuslan Ermilov_kgmon=		kgmon
299d10a8d6cSRuslan Ermilov_kgzip=		kgzip
300d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
301cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
302d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
303cea557adSRuslan Ermilov.endif
304d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
305d10a8d6cSRuslan Ermilov_mptable=	mptable
306d10a8d6cSRuslan Ermilov_ndiscvt=	ndiscvt
307d10a8d6cSRuslan Ermilov_pnpinfo=	pnpinfo
308e1fe3dbaSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no"
3094543f32eSDaniel Eischen_pppctl=	pppctl
3104543f32eSDaniel Eischen.endif
31179e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
312d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
313d10a8d6cSRuslan Ermilov_zzz=		zzz
314f8eecc08SWarner Losh.if ${MACHINE} == "i386"
315e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
316f8eecc08SWarner Losh_acpi=		acpi
317f8eecc08SWarner Losh.endif
318f8eecc08SWarner Losh_arlcontrol=	arlcontrol
319f8eecc08SWarner Losh_boot0cfg=	boot0cfg
320f8eecc08SWarner Losh_wlconfig=	wlconfig
321f8eecc08SWarner Losh.elif ${MACHINE} == "pc98"
322f8eecc08SWarner Losh_boot98cfg=	boot98cfg
323f8eecc08SWarner Losh.endif
324f3bb47ccSRuslan Ermilov.endif
3253bc2f9a8SPoul-Henning Kamp
32619f2b0e8SPeter Wemm# kgzip: builds, but missing support files
32719f2b0e8SPeter Wemm# mptable: broken (not 64 bit clean)
32819f2b0e8SPeter Wemm# pnpinfo: crashes (not really useful anyway)
329a6f4ec06SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
330e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
331d10a8d6cSRuslan Ermilov_acpi=		acpi
332d10a8d6cSRuslan Ermilov.endif
333d10a8d6cSRuslan Ermilov_asf=		asf
334d10a8d6cSRuslan Ermilov_boot0cfg=	boot0cfg
335d10a8d6cSRuslan Ermilov_btxld=		btxld
336be8282baSBruce Evans_kgmon=		kgmon
337d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
338cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
339d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
340cea557adSRuslan Ermilov.endif
341d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
342d10a8d6cSRuslan Ermilov_mptable=	mptable
3434e012474SBill Paul_ndiscvt=	ndiscvt
344e1fe3dbaSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no"
3454543f32eSDaniel Eischen_pppctl=	pppctl
3464543f32eSDaniel Eischen.endif
34779e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
348d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
349d10a8d6cSRuslan Ermilov_zzz=		zzz
350a6f4ec06SPeter Wemm.endif
351a6f4ec06SPeter Wemm
352d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "ia64"
353e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
354d10a8d6cSRuslan Ermilov_acpi=		acpi
355c7961209SKATO Takenori.endif
356fb35b471SMarcel Moolenaar_kgmon=		kgmon
357a1800335SMarcel Moolenaar_mount_smbfs=	mount_smbfs
358e1fe3dbaSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no"
3594543f32eSDaniel Eischen_pppctl=	pppctl
3604543f32eSDaniel Eischen.endif
361d10a8d6cSRuslan Ermilov_zzz=		zzz
3626a70fca0SKATO Takenori.endif
363c7961209SKATO Takenori
36459fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc"
36559fa7082SR. Imura_mount_smbfs=	mount_smbfs
366e5d34218SMaxim Sobolev_nvram=		nvram
36759fa7082SR. Imura.endif
36859fa7082SR. Imura
3696f6ede92SThomas Moestl.if ${MACHINE_ARCH} == "sparc64"
370156e1decSMarius Strobl_eeprom=	eeprom
371d10a8d6cSRuslan Ermilov_ofwdump=	ofwdump
372295c5deaSRuslan Ermilov.if ${MK_LIBTHR} != "no"
3734543f32eSDaniel Eischen_pppctl=	pppctl
3744543f32eSDaniel Eischen.endif
375a8ec1b48SMaxim Sobolev.endif
376a8ec1b48SMaxim Sobolev
377dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
378