xref: /freebsd/usr.sbin/Makefile (revision e085f869d5c6ce0f8ea4ada858eac4b7ec2176ea)
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} \
150451ac36SGary Palmer	arp \
16c0f20e27SRuslan Ermilov	${_asf} \
17c0f20e27SRuslan Ermilov	${_atm} \
186470320fSRobert Watson	${_audit} \
196470320fSRobert Watson	${_auditd} \
206470320fSRobert Watson	${_auditreduce} \
218d69c48bSMax Laier	${_authpf} \
22d10a8d6cSRuslan Ermilov	${_bluetooth} \
23d10a8d6cSRuslan Ermilov	${_boot0cfg} \
24d10a8d6cSRuslan Ermilov	${_boot98cfg} \
250451ac36SGary Palmer	bootparamd \
2673fd2d1eSHartmut Brandt	bsnmpd \
27d10a8d6cSRuslan Ermilov	${_btxld} \
286d73a68aSSøren Schmidt	burncd \
290451ac36SGary Palmer	cdcontrol \
300451ac36SGary Palmer	chkgrp \
310451ac36SGary Palmer	chown \
320451ac36SGary Palmer	chroot \
330451ac36SGary Palmer	ckdist \
34dfdcada3SDoug Rabson	clear_locks \
350451ac36SGary Palmer	config \
36e085f869SStanislav Sedov	${_cpucontrol} \
37a37f9716SJohn Baldwin	crashinfo \
380451ac36SGary Palmer	cron \
393c817e2cSBruce Evans	crunch \
400451ac36SGary Palmer	ctm \
41bd06a3ecSMike Barcroft	daemon \
42869093b1SHidetoshi Shimokawa	dconschat \
430fb0f418SMike Smith	devinfo \
44ad01e0c8SBrian Somers	digictl \
45a362eb63SPoul-Henning Kamp	diskinfo \
46cd3ee173SDag-Erling Smørgrav	${_dnssec-keygen} \
47cd3ee173SDag-Erling Smørgrav	${_dnssec-signzone} \
48d10a8d6cSRuslan Ermilov	${_editmap} \
490451ac36SGary Palmer	edquota \
50156e1decSMarius Strobl	${_eeprom} \
51caefa400SPoul-Henning Kamp	extattr \
529754f5b6SRobert Watson	extattrctl \
53c42d8ce5SYaroslav Tykhiy	${_faithd} \
5418443fbdSMatt Jacob	fdcontrol \
5518443fbdSMatt Jacob	fdformat \
56146e5df7SJoerg Wunsch	fdread \
5718443fbdSMatt Jacob	fdwrite \
587825a6bdSPoul-Henning Kamp	fifolog \
595f99200fSGleb Smirnoff	flowctl \
6048ffe56aSColin Percival	freebsd-update \
6160ee3847SMax Laier	${_ftp-proxy} \
62a7a73b95SHidetoshi Shimokawa	fwcontrol \
635b38a427SRobert Watson	getfmac \
645b38a427SRobert Watson	getpmac \
6554a8adabSPoul-Henning Kamp	gstat \
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 \
15942f17e8cSMarcel Moolenaar	${_sade} \
160d10a8d6cSRuslan Ermilov	${_sendmail} \
161108e8dd9SJulian Elischer	setfib \
1625b38a427SRobert Watson	setfmac \
1635b38a427SRobert Watson	setpmac \
164d10a8d6cSRuslan Ermilov	${_sicontrol} \
1650451ac36SGary Palmer	sliplogin \
1660451ac36SGary Palmer	slstat \
16780cdf39aSJoerg Wunsch	smbmsg \
1688f61cf9cSMark Santcroos	snapinfo \
169d10a8d6cSRuslan Ermilov	${_spkrtest} \
1700451ac36SGary Palmer	spray \
1710bc81187SDavid E. O'Brien	${_sysinstall} \
1720451ac36SGary Palmer	syslogd \
1738d4b20e3SMark Murray	tcpdchk \
1748d4b20e3SMark Murray	tcpdmatch \
175212a79b0SMaxim Konovalov	tcpdrop \
1760acc1823SDavid E. O'Brien	tcpdump \
1770451ac36SGary Palmer	timed \
1780451ac36SGary Palmer	traceroute \
179d10a8d6cSRuslan Ermilov	${_traceroute6} \
1800451ac36SGary Palmer	trpt \
1810451ac36SGary Palmer	tzsetup \
18234d26f04SRobert Watson	ugidfw \
183d10a8d6cSRuslan Ermilov	${_usbdevs} \
1845c9036d5SDima Ruban	vidcontrol \
1850451ac36SGary Palmer	vipw \
1860451ac36SGary Palmer	watch \
187370c3cb5SSean Kelly	watchdogd \
1889143cbe8SAndrew Thompson	wlandebug \
189d10a8d6cSRuslan Ermilov	${_wlconfig} \
190161a5ba8SRuslan Ermilov	wpa \
1916c58990dSBjoern A. Zeeb	${_ypbind} \
1926c58990dSBjoern A. Zeeb	${_yp_mkdb} \
1936c58990dSBjoern A. Zeeb	${_yppoll} \
1946c58990dSBjoern A. Zeeb	${_yppush} \
1956c58990dSBjoern A. Zeeb	${_ypserv} \
1966c58990dSBjoern A. Zeeb	${_ypset} \
197d10a8d6cSRuslan Ermilov	zic \
198d10a8d6cSRuslan Ermilov	${_zzz}
199d10a8d6cSRuslan Ermilov
2007a08579aSPeter Grehan.if ${MACHINE_ARCH} != "arm"
201d10a8d6cSRuslan Ermilov_sysinstall=	sysinstall
202d10a8d6cSRuslan Ermilov.endif
2035021f740SPeter Wemm
204e1fe3dbaSRuslan Ermilov.if ${MK_AUDIT} != "no"
2056470320fSRobert Watson_audit= 	audit
2066470320fSRobert Watson_auditd=	auditd
2076470320fSRobert Watson_auditreduce=	auditreduce
2086470320fSRobert Watson_praudit=	praudit
2096470320fSRobert Watson.endif
2106470320fSRobert Watson
211e1fe3dbaSRuslan Ermilov.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
21211d9d041SDag-Erling Smørgrav_dnssec-keygen=		dnssec-keygen
21311d9d041SDag-Erling Smørgrav_dnssec-signzone=	dnssec-signzone
21411d9d041SDag-Erling Smørgrav.endif
215e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
216d10a8d6cSRuslan Ermilov_named=			named
217cd3ee173SDag-Erling Smørgrav_named-checkconf=	named-checkconf
218cd3ee173SDag-Erling Smørgrav_named-checkzone=	named-checkzone
219161a5ba8SRuslan Ermilov_named.reload=		named.reload
220cd3ee173SDag-Erling Smørgrav_rndc=			rndc
221cd3ee173SDag-Erling Smørgrav_rndc-confgen=		rndc-confgen
222d10a8d6cSRuslan Ermilov.endif
223d10a8d6cSRuslan Ermilov
224e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
22523d1e148SMaksim Yevmenkin_bluetooth=	bluetooth
22623d1e148SMaksim Yevmenkin.endif
22723d1e148SMaksim Yevmenkin
228e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no"
229d10a8d6cSRuslan Ermilov_keyserv=	keyserv
230d10a8d6cSRuslan Ermilov.endif
231d10a8d6cSRuslan Ermilov
23260ee3847SMax Laier.if ${MK_PF} != "no"
23360ee3847SMax Laier_ftp-proxy=	ftp-proxy
23460ee3847SMax Laier.endif
23560ee3847SMax Laier
236e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
237c42d8ce5SYaroslav Tykhiy_faithd=	faithd
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
269dbdb679cSRuslan Ermilov.if ${MK_LIBTHR} != "no"
270152f2a4aSRuslan Ermilov_pppctl=	pppctl
271152f2a4aSRuslan Ermilov.endif
272152f2a4aSRuslan Ermilov
273e1fe3dbaSRuslan Ermilov.if ${MK_LPR} != "no"
274d10a8d6cSRuslan Ermilov_lpr=		lpr
2758c0e8d96STim Vanderhoek.endif
2768c0e8d96STim Vanderhoek
2778af480aeSRuslan Ermilov.if ${MK_NS_CACHING} != "no"
278dbdb679cSRuslan Ermilov.if ${MK_LIBTHR} != "no"
279c97fe77dSMichael Bushkov_nscd=		nscd
2808af480aeSRuslan Ermilov.endif
2818af480aeSRuslan Ermilov.endif
2828af480aeSRuslan Ermilov
283e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
284d10a8d6cSRuslan Ermilov_editmap=	editmap
285d10a8d6cSRuslan Ermilov_mailstats=	mailstats
286d10a8d6cSRuslan Ermilov_makemap=	makemap
287d10a8d6cSRuslan Ermilov_praliases=	praliases
288d10a8d6cSRuslan Ermilov_sendmail=	sendmail
2895a85f025SPoul-Henning Kamp.endif
2905a85f025SPoul-Henning Kamp
291e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
292d10a8d6cSRuslan Ermilov_usbdevs=	usbdevs
2932b51223fSStefan Eßer.endif
2942b51223fSStefan Eßer
29557628e38SOlivier Houchard.if ${MACHINE_ARCH} == "arm"
29657628e38SOlivier Houchard_kgmon=		kgmon
29757628e38SOlivier Houchard.endif
29857628e38SOlivier Houchard
2991a1536c1SJohn Birrell.if ${MACHINE_ARCH} == "i386"
300d10a8d6cSRuslan Ermilov_apm=		apm
301d10a8d6cSRuslan Ermilov_apmd=		apmd
302d10a8d6cSRuslan Ermilov_asf=		asf
303d10a8d6cSRuslan Ermilov_btxld=		btxld
304e085f869SStanislav Sedov_cpucontrol=	cpucontrol
305d10a8d6cSRuslan Ermilov_kgmon=		kgmon
306d10a8d6cSRuslan Ermilov_kgzip=		kgzip
307d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
308cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
309d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
310cea557adSRuslan Ermilov.endif
311d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
312d10a8d6cSRuslan Ermilov_mptable=	mptable
313d10a8d6cSRuslan Ermilov_ndiscvt=	ndiscvt
314d10a8d6cSRuslan Ermilov_pnpinfo=	pnpinfo
31542f17e8cSMarcel Moolenaar_sade=		sade
31679e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
317d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
318d10a8d6cSRuslan Ermilov_zzz=		zzz
319f8eecc08SWarner Losh.if ${MACHINE} == "i386"
320e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
321f8eecc08SWarner Losh_acpi=		acpi
322f8eecc08SWarner Losh.endif
323f8eecc08SWarner Losh_boot0cfg=	boot0cfg
324f8eecc08SWarner Losh_wlconfig=	wlconfig
325f8eecc08SWarner Losh.elif ${MACHINE} == "pc98"
326f8eecc08SWarner Losh_boot98cfg=	boot98cfg
327f8eecc08SWarner Losh.endif
328f3bb47ccSRuslan Ermilov.endif
3293bc2f9a8SPoul-Henning Kamp
33019f2b0e8SPeter Wemm# kgzip: builds, but missing support files
33119f2b0e8SPeter Wemm# mptable: broken (not 64 bit clean)
33219f2b0e8SPeter Wemm# pnpinfo: crashes (not really useful anyway)
333a6f4ec06SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
334e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
335d10a8d6cSRuslan Ermilov_acpi=		acpi
336d10a8d6cSRuslan Ermilov.endif
337d10a8d6cSRuslan Ermilov_asf=		asf
338d10a8d6cSRuslan Ermilov_boot0cfg=	boot0cfg
339d10a8d6cSRuslan Ermilov_btxld=		btxld
340e085f869SStanislav Sedov_cpucontrol=	cpucontrol
341be8282baSBruce Evans_kgmon=		kgmon
342d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
343cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
344d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
345cea557adSRuslan Ermilov.endif
346d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
347d10a8d6cSRuslan Ermilov_mptable=	mptable
3484e012474SBill Paul_ndiscvt=	ndiscvt
34942f17e8cSMarcel Moolenaar_sade=		sade
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
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
367104954feSPeter Grehan_ofwdump=	ofwdump
36859fa7082SR. Imura.endif
36959fa7082SR. Imura
3706f6ede92SThomas Moestl.if ${MACHINE_ARCH} == "sparc64"
371156e1decSMarius Strobl_eeprom=	eeprom
372d10a8d6cSRuslan Ermilov_ofwdump=	ofwdump
37342f17e8cSMarcel Moolenaar_sade=		sade
374a8ec1b48SMaxim Sobolev.endif
375a8ec1b48SMaxim Sobolev
376dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
377