xref: /freebsd/usr.sbin/Makefile (revision e5d34218fb8e249657a8bebe19061c57215dc3e5)
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 \
176470320fSRobert Watson	${_audit} \
186470320fSRobert Watson	${_auditd} \
196470320fSRobert Watson	${_auditreduce} \
20d10a8d6cSRuslan Ermilov	${_asf} \
21d10a8d6cSRuslan Ermilov	${_atm} \
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} \
50d10a8d6cSRuslan Ermilov	${_elf2exe} \
51caefa400SPoul-Henning Kamp	extattr \
529754f5b6SRobert Watson	extattrctl \
534dd8b5abSYoshinobu Inoue	faithd \
5418443fbdSMatt Jacob	fdcontrol \
5518443fbdSMatt Jacob	fdformat \
56146e5df7SJoerg Wunsch	fdread \
5718443fbdSMatt Jacob	fdwrite \
585f99200fSGleb Smirnoff	flowctl \
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 \
80d10a8d6cSRuslan Ermilov	${_lpr} \
81d10a8d6cSRuslan Ermilov	${_lptcontrol} \
826fa40729SScott Long	lmcconfig \
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	mrouted \
990451ac36SGary Palmer	mtest \
1000451ac36SGary Palmer	mtree \
101d10a8d6cSRuslan Ermilov	${_named} \
102cd3ee173SDag-Erling Smørgrav	${_named-checkconf} \
103cd3ee173SDag-Erling Smørgrav	${_named-checkzone} \
104161a5ba8SRuslan Ermilov	${_named.reload} \
105d10a8d6cSRuslan Ermilov	${_ndiscvt} \
106bc34ace3SYaroslav Tykhiy	${_ndp} \
1070451ac36SGary Palmer	newsyslog \
1088f40768aSGordon Tetlow	nfsd \
1094cf49a43SJulian Elischer	ngctl \
1104cf49a43SJulian Elischer	nghook \
1115de697a6SColin Percival	nologin \
112d10a8d6cSRuslan Ermilov	ntp \
113e5d34218SMaxim Sobolev	${_nvram} \
114d10a8d6cSRuslan Ermilov	${_ofwdump} \
115d10a8d6cSRuslan Ermilov	${_pccard} \
1160451ac36SGary Palmer	pciconf \
1170451ac36SGary Palmer	periodic \
1180451ac36SGary Palmer	pkg_install \
119cf7152abSMarcel Moolenaar	pmccontrol \
120cf7152abSMarcel Moolenaar	pmcstat \
121d10a8d6cSRuslan Ermilov	${_pnpinfo} \
1226fb01948SColin Percival	portsnap \
123c3c5f9cdSNate Lawson	powerd \
1247dd68385SPeter Wemm	ppp \
125d10a8d6cSRuslan Ermilov	${_pppctl} \
126ec480a97SPeter Wemm	pppd \
1270451ac36SGary Palmer	pppstats \
128d10a8d6cSRuslan Ermilov	${_praliases} \
1296470320fSRobert Watson	${_praudit} \
1300451ac36SGary Palmer	procctl \
1310451ac36SGary Palmer	pstat \
1320451ac36SGary Palmer	pw \
1330451ac36SGary Palmer	pwd_mkdb \
1340451ac36SGary Palmer	quot \
1350451ac36SGary Palmer	quotaon \
1360451ac36SGary Palmer	rarpd \
1374e1921abSWarner Losh	raycontrol \
1380451ac36SGary Palmer	repquota \
139d10a8d6cSRuslan Ermilov	${_rip6query} \
1400451ac36SGary Palmer	rmt \
141cd3ee173SDag-Erling Smørgrav	${_rndc} \
142cd3ee173SDag-Erling Smørgrav	${_rndc-confgen} \
143d10a8d6cSRuslan Ermilov	${_route6d} \
1448360efbdSAlfred Perlstein	rpcbind \
1450451ac36SGary Palmer	rpc.lockd \
1460451ac36SGary Palmer	rpc.statd \
147c69a34d4SMatthew Dillon	rpc.umntall \
1486c58990dSBjoern A. Zeeb	${_rpc.yppasswdd} \
1496c58990dSBjoern A. Zeeb	${_rpc.ypupdated} \
1506c58990dSBjoern A. Zeeb	${_rpc.ypxfrd} \
151bc34ace3SYaroslav Tykhiy	${_rrenumd} \
152bc34ace3SYaroslav Tykhiy	${_rtadvd} \
1535c9036d5SDima Ruban	rtprio \
154bc34ace3SYaroslav Tykhiy	${_rtsold} \
1550451ac36SGary Palmer	rwhod \
1560451ac36SGary Palmer	sa \
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"
238ad4c6857SYaroslav Tykhiy_ip6addrctl=	ip6addrctl
239d10a8d6cSRuslan Ermilov_mld6query=	mld6query
240bc34ace3SYaroslav Tykhiy_ndp=		ndp
241d10a8d6cSRuslan Ermilov_rip6query=	rip6query
242d10a8d6cSRuslan Ermilov_route6d=	route6d
243bc34ace3SYaroslav Tykhiy_rrenumd=	rrenumd
244bc34ace3SYaroslav Tykhiy_rtadvd=	rtadvd
245bc34ace3SYaroslav Tykhiy_rtsold=	rtsold
246d10a8d6cSRuslan Ermilov_traceroute6=	traceroute6
247d10a8d6cSRuslan Ermilov.endif
248d10a8d6cSRuslan Ermilov
249cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
250cea557adSRuslan Ermilov_IPXrouted=	IPXrouted
251cea557adSRuslan Ermilov.endif
252cea557adSRuslan Ermilov
253e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
2546c58990dSBjoern A. Zeeb_rpc.yppasswdd=	rpc.yppasswdd
2556c58990dSBjoern A. Zeeb_rpc.ypupdated=	rpc.ypupdated
2566c58990dSBjoern A. Zeeb_rpc.ypxfrd=	rpc.ypxfrd
2576c58990dSBjoern A. Zeeb_ypbind=	ypbind
2586c58990dSBjoern A. Zeeb_yp_mkdb=	yp_mkdb
2596c58990dSBjoern A. Zeeb_yppoll=	yppoll
2606c58990dSBjoern A. Zeeb_yppush=	yppush
2616c58990dSBjoern A. Zeeb_ypserv=	ypserv
2626c58990dSBjoern A. Zeeb_ypset=		ypset
2636c58990dSBjoern A. Zeeb.endif
2646c58990dSBjoern A. Zeeb
265e1fe3dbaSRuslan Ermilov.if ${MK_AUTHPF} != "no"
2668d69c48bSMax Laier_authpf=	authpf
2678d69c48bSMax Laier.endif
2688d69c48bSMax Laier
269e1fe3dbaSRuslan Ermilov.if ${MK_LPR} != "no"
270d10a8d6cSRuslan Ermilov_lpr=		lpr
2718c0e8d96STim Vanderhoek.endif
2728c0e8d96STim Vanderhoek
273e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
274d10a8d6cSRuslan Ermilov_editmap=	editmap
275d10a8d6cSRuslan Ermilov_mailstats=	mailstats
276d10a8d6cSRuslan Ermilov_makemap=	makemap
277d10a8d6cSRuslan Ermilov_praliases=	praliases
278d10a8d6cSRuslan Ermilov_sendmail=	sendmail
2795a85f025SPoul-Henning Kamp.endif
2805a85f025SPoul-Henning Kamp
281e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
282d10a8d6cSRuslan Ermilov_usbdevs=	usbdevs
2832b51223fSStefan Eßer.endif
2842b51223fSStefan Eßer
28557628e38SOlivier Houchard.if ${MACHINE_ARCH} == "arm"
28657628e38SOlivier Houchard_kgmon=		kgmon
28757628e38SOlivier Houchard.endif
28857628e38SOlivier Houchard
2891a1536c1SJohn Birrell.if ${MACHINE_ARCH} == "i386"
290d10a8d6cSRuslan Ermilov_apm=		apm
291d10a8d6cSRuslan Ermilov_apmd=		apmd
292d10a8d6cSRuslan Ermilov_asf=		asf
293d10a8d6cSRuslan Ermilov_btxld=		btxld
294e1fe3dbaSRuslan Ermilov.if ${MK_I4B} != "no"
295d10a8d6cSRuslan Ermilov_i4b=		i4b
296d10a8d6cSRuslan Ermilov.endif
297d10a8d6cSRuslan Ermilov_kgmon=		kgmon
298d10a8d6cSRuslan Ermilov_kgzip=		kgzip
299d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
300cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
301d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
302cea557adSRuslan Ermilov.endif
303d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
304d10a8d6cSRuslan Ermilov_mptable=	mptable
305d10a8d6cSRuslan Ermilov_ndiscvt=	ndiscvt
306d10a8d6cSRuslan Ermilov_pccard=	pccard
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
326d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "alpha"
327d10a8d6cSRuslan Ermilov_elf2exe=	elf2exe
328d10a8d6cSRuslan Ermilov_pnpinfo=	pnpinfo
329295c5deaSRuslan Ermilov.if ${MK_LIBTHR} != "no"
3304543f32eSDaniel Eischen_pppctl=	pppctl
3314543f32eSDaniel Eischen.endif
3320346a1deSMarcel Moolenaar.endif
3330346a1deSMarcel Moolenaar
33419f2b0e8SPeter Wemm# kgzip: builds, but missing support files
33519f2b0e8SPeter Wemm# mptable: broken (not 64 bit clean)
33619f2b0e8SPeter Wemm# pnpinfo: crashes (not really useful anyway)
337a6f4ec06SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
338e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
339d10a8d6cSRuslan Ermilov_acpi=		acpi
340d10a8d6cSRuslan Ermilov.endif
341d10a8d6cSRuslan Ermilov_asf=		asf
342d10a8d6cSRuslan Ermilov_boot0cfg=	boot0cfg
343d10a8d6cSRuslan Ermilov_btxld=		btxld
344be8282baSBruce Evans_kgmon=		kgmon
345d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
346cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
347d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
348cea557adSRuslan Ermilov.endif
349d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
350d10a8d6cSRuslan Ermilov_mptable=	mptable
3514e012474SBill Paul_ndiscvt=	ndiscvt
352e1fe3dbaSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no"
3534543f32eSDaniel Eischen_pppctl=	pppctl
3544543f32eSDaniel Eischen.endif
35579e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
356d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
357d10a8d6cSRuslan Ermilov_zzz=		zzz
358a6f4ec06SPeter Wemm.endif
359a6f4ec06SPeter Wemm
360d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "ia64"
361e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
362d10a8d6cSRuslan Ermilov_acpi=		acpi
363c7961209SKATO Takenori.endif
364fb35b471SMarcel Moolenaar_kgmon=		kgmon
365e1fe3dbaSRuslan Ermilov.if ${MK_LIBPTHREAD} != "no"
3664543f32eSDaniel Eischen_pppctl=	pppctl
3674543f32eSDaniel Eischen.endif
368d10a8d6cSRuslan Ermilov_zzz=		zzz
3696a70fca0SKATO Takenori.endif
370c7961209SKATO Takenori
37159fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc"
37259fa7082SR. Imura_mount_smbfs=	mount_smbfs
373e5d34218SMaxim Sobolev_nvram=		nvram
37459fa7082SR. Imura.endif
37559fa7082SR. Imura
3766f6ede92SThomas Moestl.if ${MACHINE_ARCH} == "sparc64"
377156e1decSMarius Strobl_eeprom=	eeprom
378d10a8d6cSRuslan Ermilov_ofwdump=	ofwdump
379295c5deaSRuslan Ermilov.if ${MK_LIBTHR} != "no"
3804543f32eSDaniel Eischen_pppctl=	pppctl
3814543f32eSDaniel Eischen.endif
382a8ec1b48SMaxim Sobolev.endif
383a8ec1b48SMaxim Sobolev
384dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
385