xref: /freebsd/usr.sbin/Makefile (revision c6ec7d31830ab1c80edae95ad5e4b9dba10c47ac)
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 \
19130f4520SKenneth D. Merry	ctladm \
20bd06a3ecSMike Barcroft	daemon \
21869093b1SHidetoshi Shimokawa	dconschat \
220fb0f418SMike Smith	devinfo \
23ad01e0c8SBrian Somers	digictl \
24a362eb63SPoul-Henning Kamp	diskinfo \
250738c00eSWarner Losh	dumpcis \
266f9cd2a9SJohn Baldwin	etcupdate \
27caefa400SPoul-Henning Kamp	extattr \
289754f5b6SRobert Watson	extattrctl \
297825a6bdSPoul-Henning Kamp	fifolog \
30a7a73b95SHidetoshi Shimokawa	fwcontrol \
315b38a427SRobert Watson	getfmac \
325b38a427SRobert Watson	getpmac \
3354a8adabSPoul-Henning Kamp	gstat \
34477f656bSRafal Jaworowski	i2c \
35123689d3SYoshinobu Inoue	ifmcstat \
360451ac36SGary Palmer	inetd \
375c9036d5SDima Ruban	iostat \
38087d3173SBrooks Davis	isfctl \
399c6f9240SPeter Wemm	kldxref \
40cccce27aSPeter Wemm	mailwrapper \
41efc06131SSam Leffler	makefs \
42519b7eccSWarner Losh	manctl \
430adc9d60SMike Smith	memcontrol \
4424ff9bb5SBill Fumerola	mergemaster \
45763fae79SScott Long	mfiutil \
46c7805c63SDoug Rabson	mixer \
47f6f23e2cSMike Smith	mlxcontrol \
488f40768aSGordon Tetlow	mountd \
49fc58801cSScott Long	mptutil \
500451ac36SGary Palmer	mtest \
510451ac36SGary Palmer	mtree \
520451ac36SGary Palmer	newsyslog \
5303914b0bSRick Macklem	nfscbd \
548f40768aSGordon Tetlow	nfsd \
5503914b0bSRick Macklem	nfsdumpstate \
5603914b0bSRick Macklem	nfsrevoke \
5703914b0bSRick Macklem	nfsuserd \
58*c6ec7d31SBrooks Davis	nmtree \
595de697a6SColin Percival	nologin \
604bbc5bd8SWarner Losh	pc-sysinstall \
610451ac36SGary Palmer	pciconf \
620451ac36SGary Palmer	periodic \
63c3c5f9cdSNate Lawson	powerd \
640451ac36SGary Palmer	procctl \
650451ac36SGary Palmer	pstat \
660451ac36SGary Palmer	pw \
670451ac36SGary Palmer	pwd_mkdb \
680451ac36SGary Palmer	quot \
690451ac36SGary Palmer	rarpd \
700451ac36SGary Palmer	rmt \
718360efbdSAlfred Perlstein	rpcbind \
720451ac36SGary Palmer	rpc.lockd \
730451ac36SGary Palmer	rpc.statd \
74c69a34d4SMatthew Dillon	rpc.umntall \
755c9036d5SDima Ruban	rtprio \
763d482827SDoug Barton	service \
770b25da7eSHajimu UMEMOTO	services_mkdb \
78108e8dd9SJulian Elischer	setfib \
795b38a427SRobert Watson	setfmac \
805b38a427SRobert Watson	setpmac \
8180cdf39aSJoerg Wunsch	smbmsg \
828f61cf9cSMark Santcroos	snapinfo \
830451ac36SGary Palmer	spray \
840451ac36SGary Palmer	syslogd \
858d4b20e3SMark Murray	tcpdchk \
868d4b20e3SMark Murray	tcpdmatch \
87212a79b0SMaxim Konovalov	tcpdrop \
880acc1823SDavid E. O'Brien	tcpdump \
890451ac36SGary Palmer	timed \
900451ac36SGary Palmer	traceroute \
910451ac36SGary Palmer	trpt \
920451ac36SGary Palmer	tzsetup \
9334d26f04SRobert Watson	ugidfw \
940451ac36SGary Palmer	vipw \
9558c6a70aSMartin Blapp	wake \
960451ac36SGary Palmer	watch \
97370c3cb5SSean Kelly	watchdogd \
98519b7eccSWarner Losh	zic
99d10a8d6cSRuslan Ermilov
100690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
101690f477dSSam Leffler
102690f477dSSam Leffler.if ${MK_ACCT} != "no"
103519b7eccSWarner LoshSUBDIR+=	accton
104519b7eccSWarner LoshSUBDIR+=	sa
105690f477dSSam Leffler.endif
106690f477dSSam Leffler
107690f477dSSam Leffler.if ${MK_AMD} != "no"
108519b7eccSWarner LoshSUBDIR+=	amd
109d10a8d6cSRuslan Ermilov.endif
1105021f740SPeter Wemm
111e1fe3dbaSRuslan Ermilov.if ${MK_AUDIT} != "no"
112519b7eccSWarner LoshSUBDIR+=	audit
113519b7eccSWarner LoshSUBDIR+=	auditd
11416648b4fSRobert Watson.if ${MK_OPENSSL} != "no"
11516648b4fSRobert WatsonSUBDIR+=	auditdistd
11616648b4fSRobert Watson.endif
117519b7eccSWarner LoshSUBDIR+=	auditreduce
118519b7eccSWarner LoshSUBDIR+=	praudit
1196470320fSRobert Watson.endif
1206470320fSRobert Watson
121690f477dSSam Leffler.if ${MK_AUTHPF} != "no"
122519b7eccSWarner LoshSUBDIR+=	authpf
123690f477dSSam Leffler.endif
124690f477dSSam Leffler
125e1fe3dbaSRuslan Ermilov.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
126519b7eccSWarner LoshSUBDIR+=	dnssec-dsfromkey
127519b7eccSWarner LoshSUBDIR+=	dnssec-keyfromlabel
128519b7eccSWarner LoshSUBDIR+=	dnssec-keygen
12925630ba7SDoug BartonSUBDIR+=	dnssec-revoke
13025630ba7SDoug BartonSUBDIR+=	dnssec-settime
131519b7eccSWarner LoshSUBDIR+=	dnssec-signzone
13211d9d041SDag-Erling Smørgrav.endif
133e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
13425630ba7SDoug BartonSUBDIR+=	arpaname
13525630ba7SDoug BartonSUBDIR+=	ddns-confgen
13625630ba7SDoug BartonSUBDIR+=	genrandom
13725630ba7SDoug BartonSUBDIR+=	isc-hmac-fixup
138519b7eccSWarner LoshSUBDIR+=	named
139519b7eccSWarner LoshSUBDIR+=	named-checkconf
140519b7eccSWarner LoshSUBDIR+=	named-checkzone
14125630ba7SDoug BartonSUBDIR+=	named-journalprint
14225630ba7SDoug BartonSUBDIR+=	nsec3hash
143519b7eccSWarner LoshSUBDIR+=	rndc
144519b7eccSWarner LoshSUBDIR+=	rndc-confgen
145d10a8d6cSRuslan Ermilov.endif
146d10a8d6cSRuslan Ermilov
147e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
148519b7eccSWarner LoshSUBDIR+=	bluetooth
14923d1e148SMaksim Yevmenkin.endif
15023d1e148SMaksim Yevmenkin
151641a6cfbSDevin Teske.if ${MK_BSDCONFIG} != "no"
152641a6cfbSDevin TeskeSUBDIR+=	bsdconfig
1532a357efaSDevin TeskeSUBDIR+=	sysrc
154641a6cfbSDevin Teske.endif
155641a6cfbSDevin Teske
156690f477dSSam Leffler.if ${MK_BSNMP} != "no"
157519b7eccSWarner LoshSUBDIR+=	bsnmpd
158d10a8d6cSRuslan Ermilov.endif
159d10a8d6cSRuslan Ermilov
160690f477dSSam Leffler.if ${MK_CTM} != "no"
161519b7eccSWarner LoshSUBDIR+=	ctm
162690f477dSSam Leffler.endif
163690f477dSSam Leffler
164690f477dSSam Leffler.if ${MK_FLOPPY} != "no"
165519b7eccSWarner LoshSUBDIR+=	fdcontrol
166519b7eccSWarner LoshSUBDIR+=	fdformat
167519b7eccSWarner LoshSUBDIR+=	fdread
168519b7eccSWarner LoshSUBDIR+=	fdwrite
169690f477dSSam Leffler.endif
170690f477dSSam Leffler
171690f477dSSam Leffler.if ${MK_FREEBSD_UPDATE} != "no"
172519b7eccSWarner LoshSUBDIR+=	freebsd-update
17360ee3847SMax Laier.endif
17460ee3847SMax Laier
1755241f8b7SUlrich Spörlein.if ${MK_GSSAPI} != "no"
176519b7eccSWarner LoshSUBDIR+=	gssd
177a9148abdSDoug Rabson.endif
178a9148abdSDoug Rabson
179eef93d2fSOleksandr Tymoshenko.if ${MK_GPIO} != "no"
180eef93d2fSOleksandr TymoshenkoSUBDIR+=	gpioctl
181eef93d2fSOleksandr Tymoshenko.endif
182eef93d2fSOleksandr Tymoshenko
183e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
184519b7eccSWarner LoshSUBDIR+=	faithd
185519b7eccSWarner LoshSUBDIR+=	ip6addrctl
186519b7eccSWarner LoshSUBDIR+=	mld6query
187519b7eccSWarner LoshSUBDIR+=	ndp
188519b7eccSWarner LoshSUBDIR+=	rip6query
189519b7eccSWarner LoshSUBDIR+=	route6d
190519b7eccSWarner LoshSUBDIR+=	rrenumd
19137241896SHiroki SatoSUBDIR+=	rtadvctl
192519b7eccSWarner LoshSUBDIR+=	rtadvd
193519b7eccSWarner LoshSUBDIR+=	rtsold
194519b7eccSWarner LoshSUBDIR+=	traceroute6
195d10a8d6cSRuslan Ermilov.endif
196d10a8d6cSRuslan Ermilov
197690f477dSSam Leffler.if ${MK_IPFW} != "no"
198519b7eccSWarner LoshSUBDIR+=	ipfwpcap
199690f477dSSam Leffler.endif
200690f477dSSam Leffler
201cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
202519b7eccSWarner LoshSUBDIR+=	IPXrouted
203cea557adSRuslan Ermilov.endif
204cea557adSRuslan Ermilov
205690f477dSSam Leffler.if ${MK_JAIL} != "no"
206519b7eccSWarner LoshSUBDIR+=	jail
207519b7eccSWarner LoshSUBDIR+=	jexec
208519b7eccSWarner LoshSUBDIR+=	jls
209690f477dSSam Leffler.endif
210690f477dSSam Leffler
211690f477dSSam Leffler# XXX MK_SYSCONS
212690f477dSSam Leffler.if ${MK_LEGACY_CONSOLE} != "no"
213519b7eccSWarner LoshSUBDIR+=	kbdcontrol
214519b7eccSWarner LoshSUBDIR+=	kbdmap
215519b7eccSWarner LoshSUBDIR+=	moused
216519b7eccSWarner LoshSUBDIR+=	vidcontrol
217690f477dSSam Leffler.endif
218690f477dSSam Leffler
2191272ddb2SBjoern A. Zeeb.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no"
220690f477dSSam Leffler.if ${MK_PPP} != "no"
221519b7eccSWarner LoshSUBDIR+=	pppctl
222690f477dSSam Leffler.endif
223690f477dSSam Leffler.if ${MK_NS_CACHING} != "no"
224519b7eccSWarner LoshSUBDIR+=	nscd
225690f477dSSam Leffler.endif
226690f477dSSam Leffler.endif
227690f477dSSam Leffler
228690f477dSSam Leffler.if ${MK_LPR} != "no"
229519b7eccSWarner LoshSUBDIR+=	lpr
230690f477dSSam Leffler.endif
231690f477dSSam Leffler
23207e547feSJung-uk Kim.if ${MK_MAN_UTILS} != "no"
233519b7eccSWarner LoshSUBDIR+=	manctl
23407e547feSJung-uk Kim.endif
23507e547feSJung-uk Kim
2367f725bcdSGrzegorz Bernacki.if ${MK_NAND} != "no"
2377f725bcdSGrzegorz BernackiSUBDIR+=	nandsim
2387f725bcdSGrzegorz BernackiSUBDIR+=	nandtool
2397f725bcdSGrzegorz Bernacki.endif
2407f725bcdSGrzegorz Bernacki
241690f477dSSam Leffler.if ${MK_NETGRAPH} != "no"
242519b7eccSWarner LoshSUBDIR+=	flowctl
243519b7eccSWarner LoshSUBDIR+=	lmcconfig
244519b7eccSWarner LoshSUBDIR+=	ngctl
245519b7eccSWarner LoshSUBDIR+=	nghook
246690f477dSSam Leffler.endif
247690f477dSSam Leffler
248e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
249519b7eccSWarner LoshSUBDIR+=	rpc.yppasswdd
250519b7eccSWarner LoshSUBDIR+=	rpc.ypupdated
251519b7eccSWarner LoshSUBDIR+=	rpc.ypxfrd
252519b7eccSWarner LoshSUBDIR+=	ypbind
253519b7eccSWarner LoshSUBDIR+=	yp_mkdb
254519b7eccSWarner LoshSUBDIR+=	yppoll
255519b7eccSWarner LoshSUBDIR+=	yppush
256519b7eccSWarner LoshSUBDIR+=	ypserv
257519b7eccSWarner LoshSUBDIR+=	ypset
2586c58990dSBjoern A. Zeeb.endif
2596c58990dSBjoern A. Zeeb
260690f477dSSam Leffler.if ${MK_NTP} != "no"
261519b7eccSWarner LoshSUBDIR+=	ntp
2628d69c48bSMax Laier.endif
2638d69c48bSMax Laier
264690f477dSSam Leffler.if ${MK_OPENSSL} != "no"
265519b7eccSWarner LoshSUBDIR+=	keyserv
266152f2a4aSRuslan Ermilov.endif
267152f2a4aSRuslan Ermilov
268690f477dSSam Leffler.if ${MK_PF} != "no"
269519b7eccSWarner LoshSUBDIR+=	ftp-proxy
2708c0e8d96STim Vanderhoek.endif
2718c0e8d96STim Vanderhoek
272f2ed2848SGleb Smirnoff.if ${MK_PKGBOOTSTRAP} != "no"
2732f3a9ba5SBaptiste DaroussinSUBDIR+=	pkg
2742f3a9ba5SBaptiste Daroussin.endif
2752f3a9ba5SBaptiste Daroussin
276690f477dSSam Leffler.if ${MK_PKGTOOLS} != "no"
277519b7eccSWarner LoshSUBDIR+=	pkg_install
2788af480aeSRuslan Ermilov.endif
279690f477dSSam Leffler
280690f477dSSam Leffler# XXX MK_TOOLCHAIN?
281690f477dSSam Leffler.if ${MK_PMC} != "no"
282519b7eccSWarner LoshSUBDIR+=	pmcannotate
283519b7eccSWarner LoshSUBDIR+=	pmccontrol
284519b7eccSWarner LoshSUBDIR+=	pmcstat
285690f477dSSam Leffler.endif
286690f477dSSam Leffler
287690f477dSSam Leffler.if ${MK_PORTSNAP} != "no"
288519b7eccSWarner LoshSUBDIR+=	portsnap
289690f477dSSam Leffler.endif
290690f477dSSam Leffler
291690f477dSSam Leffler.if ${MK_PPP} != "no"
292519b7eccSWarner LoshSUBDIR+=	ppp
293690f477dSSam Leffler.endif
294690f477dSSam Leffler
295690f477dSSam Leffler.if ${MK_QUOTAS} != "no"
296519b7eccSWarner LoshSUBDIR+=	edquota
297519b7eccSWarner LoshSUBDIR+=	quotaon
298519b7eccSWarner LoshSUBDIR+=	repquota
299690f477dSSam Leffler.endif
300690f477dSSam Leffler
301690f477dSSam Leffler.if ${MK_RCMDS} != "no"
302519b7eccSWarner LoshSUBDIR+=	rwhod
3038af480aeSRuslan Ermilov.endif
3048af480aeSRuslan Ermilov
305e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
306519b7eccSWarner LoshSUBDIR+=	editmap
307519b7eccSWarner LoshSUBDIR+=	mailstats
308519b7eccSWarner LoshSUBDIR+=	makemap
309519b7eccSWarner LoshSUBDIR+=	praliases
310519b7eccSWarner LoshSUBDIR+=	sendmail
3115a85f025SPoul-Henning Kamp.endif
3125a85f025SPoul-Henning Kamp
313690f477dSSam Leffler.if ${MK_TOOLCHAIN} != "no"
314519b7eccSWarner LoshSUBDIR+=	config
315519b7eccSWarner LoshSUBDIR+=	crunch
316690f477dSSam Leffler.endif
317690f477dSSam Leffler
318e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
3198d8bfa7fSAntoine BrodinSUBDIR+=	uathload
320519b7eccSWarner LoshSUBDIR+=	uhsoctl
321519b7eccSWarner LoshSUBDIR+=	usbconfig
3229e7abe05SHans Petter SelaskySUBDIR+=	usbdump
3232b51223fSStefan Eßer.endif
3242b51223fSStefan Eßer
3259f0c9022SEd Schouten.if ${MK_UTMPX} != "no"
3269f0c9022SEd SchoutenSUBDIR+=	ac
3279f0c9022SEd SchoutenSUBDIR+=	lastlogin
32871d8432fSEd SchoutenSUBDIR+=	utx
3299f0c9022SEd Schouten.endif
3309f0c9022SEd Schouten
331690f477dSSam Leffler.if ${MK_WIRELESS} != "no"
332519b7eccSWarner LoshSUBDIR+=	ancontrol
333519b7eccSWarner LoshSUBDIR+=	wlandebug
334519b7eccSWarner LoshSUBDIR+=	wpa
335690f477dSSam Leffler.endif
336690f477dSSam Leffler
337519b7eccSWarner Losh.include <bsd.arch.inc.mk>
33857628e38SOlivier Houchard
339519b7eccSWarner LoshSUBDIR:=	${SUBDIR:O}
340a8ec1b48SMaxim Sobolev
341dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
342