xref: /freebsd/usr.sbin/Makefile (revision 3724189620aaf6e91ee1fbad9d3b58289c6bde5b)
1886e832bSGarrett Wollman#	From: @(#)Makefile	5.20 (Berkeley) 6/12/93
297d92980SPeter Wemm# $FreeBSD$
3dea673e9SRodney W. Grimes
4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
5e1fe3dbaSRuslan Ermilov
69f0c9022SEd SchoutenSUBDIR=	adduser \
70451ac36SGary Palmer	arp \
80451ac36SGary Palmer	bootparamd \
96d73a68aSSøren Schmidt	burncd \
102118f387SNathan Whitehorn	bsdinstall \
110451ac36SGary Palmer	cdcontrol \
120451ac36SGary Palmer	chkgrp \
130451ac36SGary Palmer	chown \
140451ac36SGary Palmer	chroot \
150451ac36SGary Palmer	ckdist \
16dfdcada3SDoug Rabson	clear_locks \
17a37f9716SJohn Baldwin	crashinfo \
180451ac36SGary Palmer	cron \
19bd06a3ecSMike Barcroft	daemon \
20869093b1SHidetoshi Shimokawa	dconschat \
210fb0f418SMike Smith	devinfo \
22ad01e0c8SBrian Somers	digictl \
23a362eb63SPoul-Henning Kamp	diskinfo \
240738c00eSWarner Losh	dumpcis \
25caefa400SPoul-Henning Kamp	extattr \
269754f5b6SRobert Watson	extattrctl \
277825a6bdSPoul-Henning Kamp	fifolog \
28a7a73b95SHidetoshi Shimokawa	fwcontrol \
295b38a427SRobert Watson	getfmac \
305b38a427SRobert Watson	getpmac \
3154a8adabSPoul-Henning Kamp	gstat \
32477f656bSRafal Jaworowski	i2c \
33123689d3SYoshinobu Inoue	ifmcstat \
340451ac36SGary Palmer	inetd \
355c9036d5SDima Ruban	iostat \
369c6f9240SPeter Wemm	kldxref \
37cccce27aSPeter Wemm	mailwrapper \
38efc06131SSam Leffler	makefs \
39519b7eccSWarner Losh	manctl \
400adc9d60SMike Smith	memcontrol \
4124ff9bb5SBill Fumerola	mergemaster \
42763fae79SScott Long	mfiutil \
43c7805c63SDoug Rabson	mixer \
44f6f23e2cSMike Smith	mlxcontrol \
458f40768aSGordon Tetlow	mountd \
46d10a8d6cSRuslan Ermilov	mount_portalfs \
47fc58801cSScott Long	mptutil \
480451ac36SGary Palmer	mtest \
490451ac36SGary Palmer	mtree \
500451ac36SGary Palmer	newsyslog \
5103914b0bSRick Macklem	nfscbd \
528f40768aSGordon Tetlow	nfsd \
5303914b0bSRick Macklem	nfsdumpstate \
5403914b0bSRick Macklem	nfsrevoke \
5503914b0bSRick Macklem	nfsuserd \
565de697a6SColin Percival	nologin \
574bbc5bd8SWarner Losh	pc-sysinstall \
580451ac36SGary Palmer	pciconf \
590451ac36SGary Palmer	periodic \
60c3c5f9cdSNate Lawson	powerd \
610451ac36SGary Palmer	procctl \
620451ac36SGary Palmer	pstat \
630451ac36SGary Palmer	pw \
640451ac36SGary Palmer	pwd_mkdb \
650451ac36SGary Palmer	quot \
660451ac36SGary Palmer	rarpd \
670451ac36SGary Palmer	rmt \
688360efbdSAlfred Perlstein	rpcbind \
690451ac36SGary Palmer	rpc.lockd \
700451ac36SGary Palmer	rpc.statd \
71c69a34d4SMatthew Dillon	rpc.umntall \
725c9036d5SDima Ruban	rtprio \
733d482827SDoug Barton	service \
740b25da7eSHajimu UMEMOTO	services_mkdb \
75108e8dd9SJulian Elischer	setfib \
765b38a427SRobert Watson	setfmac \
775b38a427SRobert Watson	setpmac \
7880cdf39aSJoerg Wunsch	smbmsg \
798f61cf9cSMark Santcroos	snapinfo \
800451ac36SGary Palmer	spray \
810451ac36SGary Palmer	syslogd \
828d4b20e3SMark Murray	tcpdchk \
838d4b20e3SMark Murray	tcpdmatch \
84212a79b0SMaxim Konovalov	tcpdrop \
850acc1823SDavid E. O'Brien	tcpdump \
860451ac36SGary Palmer	timed \
870451ac36SGary Palmer	traceroute \
880451ac36SGary Palmer	trpt \
890451ac36SGary Palmer	tzsetup \
9034d26f04SRobert Watson	ugidfw \
910451ac36SGary Palmer	vipw \
9258c6a70aSMartin Blapp	wake \
930451ac36SGary Palmer	watch \
94370c3cb5SSean Kelly	watchdogd \
95519b7eccSWarner Losh	zic
96d10a8d6cSRuslan Ermilov
97690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
98690f477dSSam Leffler
99690f477dSSam Leffler.if ${MK_ACCT} != "no"
100519b7eccSWarner LoshSUBDIR+=	accton
101519b7eccSWarner LoshSUBDIR+=	sa
102690f477dSSam Leffler.endif
103690f477dSSam Leffler
104690f477dSSam Leffler.if ${MK_AMD} != "no"
105519b7eccSWarner LoshSUBDIR+=	amd
106d10a8d6cSRuslan Ermilov.endif
1075021f740SPeter Wemm
108e1fe3dbaSRuslan Ermilov.if ${MK_AUDIT} != "no"
109519b7eccSWarner LoshSUBDIR+=	audit
110519b7eccSWarner LoshSUBDIR+=	auditd
111519b7eccSWarner LoshSUBDIR+=	auditreduce
112519b7eccSWarner LoshSUBDIR+=	praudit
1136470320fSRobert Watson.endif
1146470320fSRobert Watson
115690f477dSSam Leffler.if ${MK_AUTHPF} != "no"
116519b7eccSWarner LoshSUBDIR+=	authpf
117690f477dSSam Leffler.endif
118690f477dSSam Leffler
119e1fe3dbaSRuslan Ermilov.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
120519b7eccSWarner LoshSUBDIR+=	dnssec-dsfromkey
121519b7eccSWarner LoshSUBDIR+=	dnssec-keyfromlabel
122519b7eccSWarner LoshSUBDIR+=	dnssec-keygen
12325630ba7SDoug BartonSUBDIR+=	dnssec-revoke
12425630ba7SDoug BartonSUBDIR+=	dnssec-settime
125519b7eccSWarner LoshSUBDIR+=	dnssec-signzone
12611d9d041SDag-Erling Smørgrav.endif
127e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
12825630ba7SDoug BartonSUBDIR+=	arpaname
12925630ba7SDoug BartonSUBDIR+=	ddns-confgen
13025630ba7SDoug BartonSUBDIR+=	genrandom
13125630ba7SDoug BartonSUBDIR+=	isc-hmac-fixup
132519b7eccSWarner LoshSUBDIR+=	named
133519b7eccSWarner LoshSUBDIR+=	named-checkconf
134519b7eccSWarner LoshSUBDIR+=	named-checkzone
13525630ba7SDoug BartonSUBDIR+=	named-journalprint
136519b7eccSWarner LoshSUBDIR+=	named.reload
13725630ba7SDoug BartonSUBDIR+=	nsec3hash
138519b7eccSWarner LoshSUBDIR+=	rndc
139519b7eccSWarner LoshSUBDIR+=	rndc-confgen
140d10a8d6cSRuslan Ermilov.endif
141d10a8d6cSRuslan Ermilov
142e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
143519b7eccSWarner LoshSUBDIR+=	bluetooth
14423d1e148SMaksim Yevmenkin.endif
14523d1e148SMaksim Yevmenkin
146690f477dSSam Leffler.if ${MK_BSNMP} != "no"
147519b7eccSWarner LoshSUBDIR+=	bsnmpd
148d10a8d6cSRuslan Ermilov.endif
149d10a8d6cSRuslan Ermilov
150690f477dSSam Leffler.if ${MK_CTM} != "no"
151519b7eccSWarner LoshSUBDIR+=	ctm
152690f477dSSam Leffler.endif
153690f477dSSam Leffler
154690f477dSSam Leffler.if ${MK_FLOPPY} != "no"
155519b7eccSWarner LoshSUBDIR+=	fdcontrol
156519b7eccSWarner LoshSUBDIR+=	fdformat
157519b7eccSWarner LoshSUBDIR+=	fdread
158519b7eccSWarner LoshSUBDIR+=	fdwrite
159690f477dSSam Leffler.endif
160690f477dSSam Leffler
161690f477dSSam Leffler.if ${MK_FREEBSD_UPDATE} != "no"
162519b7eccSWarner LoshSUBDIR+=	freebsd-update
16360ee3847SMax Laier.endif
16460ee3847SMax Laier
1655241f8b7SUlrich Spörlein.if ${MK_GSSAPI} != "no"
166519b7eccSWarner LoshSUBDIR+=	gssd
167a9148abdSDoug Rabson.endif
168a9148abdSDoug Rabson
169eef93d2fSOleksandr Tymoshenko.if ${MK_GPIO} != "no"
170eef93d2fSOleksandr TymoshenkoSUBDIR+=	gpioctl
171eef93d2fSOleksandr Tymoshenko.endif
172eef93d2fSOleksandr Tymoshenko
173e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
174519b7eccSWarner LoshSUBDIR+=	faithd
175519b7eccSWarner LoshSUBDIR+=	ip6addrctl
176519b7eccSWarner LoshSUBDIR+=	mld6query
177519b7eccSWarner LoshSUBDIR+=	ndp
178519b7eccSWarner LoshSUBDIR+=	rip6query
179519b7eccSWarner LoshSUBDIR+=	route6d
180519b7eccSWarner LoshSUBDIR+=	rrenumd
181*37241896SHiroki SatoSUBDIR+=	rtadvctl
182519b7eccSWarner LoshSUBDIR+=	rtadvd
183519b7eccSWarner LoshSUBDIR+=	rtsold
184519b7eccSWarner LoshSUBDIR+=	traceroute6
185d10a8d6cSRuslan Ermilov.endif
186d10a8d6cSRuslan Ermilov
187690f477dSSam Leffler.if ${MK_IPFW} != "no"
188519b7eccSWarner LoshSUBDIR+=	ipfwpcap
189690f477dSSam Leffler.endif
190690f477dSSam Leffler
191cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
192519b7eccSWarner LoshSUBDIR+=	IPXrouted
193cea557adSRuslan Ermilov.endif
194cea557adSRuslan Ermilov
195690f477dSSam Leffler.if ${MK_JAIL} != "no"
196519b7eccSWarner LoshSUBDIR+=	jail
197519b7eccSWarner LoshSUBDIR+=	jexec
198519b7eccSWarner LoshSUBDIR+=	jls
199690f477dSSam Leffler.endif
200690f477dSSam Leffler
201690f477dSSam Leffler# XXX MK_SYSCONS
202690f477dSSam Leffler.if ${MK_LEGACY_CONSOLE} != "no"
203519b7eccSWarner LoshSUBDIR+=	kbdcontrol
204519b7eccSWarner LoshSUBDIR+=	kbdmap
205519b7eccSWarner LoshSUBDIR+=	moused
206519b7eccSWarner LoshSUBDIR+=	vidcontrol
207690f477dSSam Leffler.endif
208690f477dSSam Leffler
2091272ddb2SBjoern A. Zeeb.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no"
210690f477dSSam Leffler.if ${MK_PPP} != "no"
211519b7eccSWarner LoshSUBDIR+=	pppctl
212690f477dSSam Leffler.endif
213690f477dSSam Leffler.if ${MK_NS_CACHING} != "no"
214519b7eccSWarner LoshSUBDIR+=	nscd
215690f477dSSam Leffler.endif
216690f477dSSam Leffler.endif
217690f477dSSam Leffler
218690f477dSSam Leffler.if ${MK_LPR} != "no"
219519b7eccSWarner LoshSUBDIR+=	lpr
220690f477dSSam Leffler.endif
221690f477dSSam Leffler
22207e547feSJung-uk Kim.if ${MK_MAN_UTILS} != "no"
223519b7eccSWarner LoshSUBDIR+=	manctl
22407e547feSJung-uk Kim.endif
22507e547feSJung-uk Kim
226690f477dSSam Leffler.if ${MK_NETGRAPH} != "no"
227519b7eccSWarner LoshSUBDIR+=	flowctl
228519b7eccSWarner LoshSUBDIR+=	lmcconfig
229519b7eccSWarner LoshSUBDIR+=	ngctl
230519b7eccSWarner LoshSUBDIR+=	nghook
231690f477dSSam Leffler.endif
232690f477dSSam Leffler
233e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
234519b7eccSWarner LoshSUBDIR+=	rpc.yppasswdd
235519b7eccSWarner LoshSUBDIR+=	rpc.ypupdated
236519b7eccSWarner LoshSUBDIR+=	rpc.ypxfrd
237519b7eccSWarner LoshSUBDIR+=	ypbind
238519b7eccSWarner LoshSUBDIR+=	yp_mkdb
239519b7eccSWarner LoshSUBDIR+=	yppoll
240519b7eccSWarner LoshSUBDIR+=	yppush
241519b7eccSWarner LoshSUBDIR+=	ypserv
242519b7eccSWarner LoshSUBDIR+=	ypset
2436c58990dSBjoern A. Zeeb.endif
2446c58990dSBjoern A. Zeeb
245690f477dSSam Leffler.if ${MK_NTP} != "no"
246519b7eccSWarner LoshSUBDIR+=	ntp
2478d69c48bSMax Laier.endif
2488d69c48bSMax Laier
249690f477dSSam Leffler.if ${MK_OPENSSL} != "no"
250519b7eccSWarner LoshSUBDIR+=	keyserv
251152f2a4aSRuslan Ermilov.endif
252152f2a4aSRuslan Ermilov
253690f477dSSam Leffler.if ${MK_PF} != "no"
254519b7eccSWarner LoshSUBDIR+=	ftp-proxy
2558c0e8d96STim Vanderhoek.endif
2568c0e8d96STim Vanderhoek
257690f477dSSam Leffler.if ${MK_PKGTOOLS} != "no"
258519b7eccSWarner LoshSUBDIR+=	pkg_install
2598af480aeSRuslan Ermilov.endif
260690f477dSSam Leffler
261690f477dSSam Leffler# XXX MK_TOOLCHAIN?
262690f477dSSam Leffler.if ${MK_PMC} != "no"
263519b7eccSWarner LoshSUBDIR+=	pmcannotate
264519b7eccSWarner LoshSUBDIR+=	pmccontrol
265519b7eccSWarner LoshSUBDIR+=	pmcstat
266690f477dSSam Leffler.endif
267690f477dSSam Leffler
268690f477dSSam Leffler.if ${MK_PORTSNAP} != "no"
269519b7eccSWarner LoshSUBDIR+=	portsnap
270690f477dSSam Leffler.endif
271690f477dSSam Leffler
272690f477dSSam Leffler.if ${MK_PPP} != "no"
273519b7eccSWarner LoshSUBDIR+=	ppp
274690f477dSSam Leffler.endif
275690f477dSSam Leffler
276690f477dSSam Leffler.if ${MK_QUOTAS} != "no"
277519b7eccSWarner LoshSUBDIR+=	edquota
278519b7eccSWarner LoshSUBDIR+=	quotaon
279519b7eccSWarner LoshSUBDIR+=	repquota
280690f477dSSam Leffler.endif
281690f477dSSam Leffler
282690f477dSSam Leffler.if ${MK_RCMDS} != "no"
283519b7eccSWarner LoshSUBDIR+=	rwhod
2848af480aeSRuslan Ermilov.endif
2858af480aeSRuslan Ermilov
286e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
287519b7eccSWarner LoshSUBDIR+=	editmap
288519b7eccSWarner LoshSUBDIR+=	mailstats
289519b7eccSWarner LoshSUBDIR+=	makemap
290519b7eccSWarner LoshSUBDIR+=	praliases
291519b7eccSWarner LoshSUBDIR+=	sendmail
2925a85f025SPoul-Henning Kamp.endif
2935a85f025SPoul-Henning Kamp
294519b7eccSWarner LoshSUBDIR+=	sysinstall
295690f477dSSam Leffler
296690f477dSSam Leffler.if ${MK_TOOLCHAIN} != "no"
297519b7eccSWarner LoshSUBDIR+=	config
298519b7eccSWarner LoshSUBDIR+=	crunch
299690f477dSSam Leffler.endif
300690f477dSSam Leffler
301e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
3028d8bfa7fSAntoine BrodinSUBDIR+=	uathload
303519b7eccSWarner LoshSUBDIR+=	uhsoctl
304519b7eccSWarner LoshSUBDIR+=	usbconfig
3059e7abe05SHans Petter SelaskySUBDIR+=	usbdump
3062b51223fSStefan Eßer.endif
3072b51223fSStefan Eßer
3089f0c9022SEd Schouten.if ${MK_UTMPX} != "no"
3099f0c9022SEd SchoutenSUBDIR+=	ac
3109f0c9022SEd SchoutenSUBDIR+=	lastlogin
3119f0c9022SEd SchoutenSUBDIR+=	utxrm
3129f0c9022SEd Schouten.endif
3139f0c9022SEd Schouten
314690f477dSSam Leffler.if ${MK_WIRELESS} != "no"
315519b7eccSWarner LoshSUBDIR+=	ancontrol
316519b7eccSWarner LoshSUBDIR+=	wlandebug
317519b7eccSWarner LoshSUBDIR+=	wpa
318690f477dSSam Leffler.endif
319690f477dSSam Leffler
320519b7eccSWarner Losh.include <bsd.arch.inc.mk>
32157628e38SOlivier Houchard
322519b7eccSWarner LoshSUBDIR:=	${SUBDIR:O}
323a8ec1b48SMaxim Sobolev
324dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
325