xref: /freebsd/usr.sbin/Makefile (revision 641a6cfb86023499caafe26a4d821a0b885cf00b)
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 \
389c6f9240SPeter Wemm	kldxref \
39cccce27aSPeter Wemm	mailwrapper \
40efc06131SSam Leffler	makefs \
41519b7eccSWarner Losh	manctl \
420adc9d60SMike Smith	memcontrol \
4324ff9bb5SBill Fumerola	mergemaster \
44763fae79SScott Long	mfiutil \
45c7805c63SDoug Rabson	mixer \
46f6f23e2cSMike Smith	mlxcontrol \
478f40768aSGordon Tetlow	mountd \
48d10a8d6cSRuslan Ermilov	mount_portalfs \
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 \
585de697a6SColin Percival	nologin \
594bbc5bd8SWarner Losh	pc-sysinstall \
600451ac36SGary Palmer	pciconf \
610451ac36SGary Palmer	periodic \
62c3c5f9cdSNate Lawson	powerd \
630451ac36SGary Palmer	procctl \
640451ac36SGary Palmer	pstat \
650451ac36SGary Palmer	pw \
660451ac36SGary Palmer	pwd_mkdb \
670451ac36SGary Palmer	quot \
680451ac36SGary Palmer	rarpd \
690451ac36SGary Palmer	rmt \
708360efbdSAlfred Perlstein	rpcbind \
710451ac36SGary Palmer	rpc.lockd \
720451ac36SGary Palmer	rpc.statd \
73c69a34d4SMatthew Dillon	rpc.umntall \
745c9036d5SDima Ruban	rtprio \
753d482827SDoug Barton	service \
760b25da7eSHajimu UMEMOTO	services_mkdb \
77108e8dd9SJulian Elischer	setfib \
785b38a427SRobert Watson	setfmac \
795b38a427SRobert Watson	setpmac \
8080cdf39aSJoerg Wunsch	smbmsg \
818f61cf9cSMark Santcroos	snapinfo \
820451ac36SGary Palmer	spray \
830451ac36SGary Palmer	syslogd \
848d4b20e3SMark Murray	tcpdchk \
858d4b20e3SMark Murray	tcpdmatch \
86212a79b0SMaxim Konovalov	tcpdrop \
870acc1823SDavid E. O'Brien	tcpdump \
880451ac36SGary Palmer	timed \
890451ac36SGary Palmer	traceroute \
900451ac36SGary Palmer	trpt \
910451ac36SGary Palmer	tzsetup \
9234d26f04SRobert Watson	ugidfw \
930451ac36SGary Palmer	vipw \
9458c6a70aSMartin Blapp	wake \
950451ac36SGary Palmer	watch \
96370c3cb5SSean Kelly	watchdogd \
97519b7eccSWarner Losh	zic
98d10a8d6cSRuslan Ermilov
99690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
100690f477dSSam Leffler
101690f477dSSam Leffler.if ${MK_ACCT} != "no"
102519b7eccSWarner LoshSUBDIR+=	accton
103519b7eccSWarner LoshSUBDIR+=	sa
104690f477dSSam Leffler.endif
105690f477dSSam Leffler
106690f477dSSam Leffler.if ${MK_AMD} != "no"
107519b7eccSWarner LoshSUBDIR+=	amd
108d10a8d6cSRuslan Ermilov.endif
1095021f740SPeter Wemm
110e1fe3dbaSRuslan Ermilov.if ${MK_AUDIT} != "no"
111519b7eccSWarner LoshSUBDIR+=	audit
112519b7eccSWarner LoshSUBDIR+=	auditd
113519b7eccSWarner LoshSUBDIR+=	auditreduce
114519b7eccSWarner LoshSUBDIR+=	praudit
1156470320fSRobert Watson.endif
1166470320fSRobert Watson
117690f477dSSam Leffler.if ${MK_AUTHPF} != "no"
118519b7eccSWarner LoshSUBDIR+=	authpf
119690f477dSSam Leffler.endif
120690f477dSSam Leffler
121e1fe3dbaSRuslan Ermilov.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
122519b7eccSWarner LoshSUBDIR+=	dnssec-dsfromkey
123519b7eccSWarner LoshSUBDIR+=	dnssec-keyfromlabel
124519b7eccSWarner LoshSUBDIR+=	dnssec-keygen
12525630ba7SDoug BartonSUBDIR+=	dnssec-revoke
12625630ba7SDoug BartonSUBDIR+=	dnssec-settime
127519b7eccSWarner LoshSUBDIR+=	dnssec-signzone
12811d9d041SDag-Erling Smørgrav.endif
129e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
13025630ba7SDoug BartonSUBDIR+=	arpaname
13125630ba7SDoug BartonSUBDIR+=	ddns-confgen
13225630ba7SDoug BartonSUBDIR+=	genrandom
13325630ba7SDoug BartonSUBDIR+=	isc-hmac-fixup
134519b7eccSWarner LoshSUBDIR+=	named
135519b7eccSWarner LoshSUBDIR+=	named-checkconf
136519b7eccSWarner LoshSUBDIR+=	named-checkzone
13725630ba7SDoug BartonSUBDIR+=	named-journalprint
13825630ba7SDoug BartonSUBDIR+=	nsec3hash
139519b7eccSWarner LoshSUBDIR+=	rndc
140519b7eccSWarner LoshSUBDIR+=	rndc-confgen
141d10a8d6cSRuslan Ermilov.endif
142d10a8d6cSRuslan Ermilov
143e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
144519b7eccSWarner LoshSUBDIR+=	bluetooth
14523d1e148SMaksim Yevmenkin.endif
14623d1e148SMaksim Yevmenkin
147*641a6cfbSDevin Teske.if ${MK_BSDCONFIG} != "no"
148*641a6cfbSDevin TeskeSUBDIR+=	bsdconfig
149*641a6cfbSDevin Teske.endif
150*641a6cfbSDevin Teske
151690f477dSSam Leffler.if ${MK_BSNMP} != "no"
152519b7eccSWarner LoshSUBDIR+=	bsnmpd
153d10a8d6cSRuslan Ermilov.endif
154d10a8d6cSRuslan Ermilov
155690f477dSSam Leffler.if ${MK_CTM} != "no"
156519b7eccSWarner LoshSUBDIR+=	ctm
157690f477dSSam Leffler.endif
158690f477dSSam Leffler
159690f477dSSam Leffler.if ${MK_FLOPPY} != "no"
160519b7eccSWarner LoshSUBDIR+=	fdcontrol
161519b7eccSWarner LoshSUBDIR+=	fdformat
162519b7eccSWarner LoshSUBDIR+=	fdread
163519b7eccSWarner LoshSUBDIR+=	fdwrite
164690f477dSSam Leffler.endif
165690f477dSSam Leffler
166690f477dSSam Leffler.if ${MK_FREEBSD_UPDATE} != "no"
167519b7eccSWarner LoshSUBDIR+=	freebsd-update
16860ee3847SMax Laier.endif
16960ee3847SMax Laier
1705241f8b7SUlrich Spörlein.if ${MK_GSSAPI} != "no"
171519b7eccSWarner LoshSUBDIR+=	gssd
172a9148abdSDoug Rabson.endif
173a9148abdSDoug Rabson
174eef93d2fSOleksandr Tymoshenko.if ${MK_GPIO} != "no"
175eef93d2fSOleksandr TymoshenkoSUBDIR+=	gpioctl
176eef93d2fSOleksandr Tymoshenko.endif
177eef93d2fSOleksandr Tymoshenko
178e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
179519b7eccSWarner LoshSUBDIR+=	faithd
180519b7eccSWarner LoshSUBDIR+=	ip6addrctl
181519b7eccSWarner LoshSUBDIR+=	mld6query
182519b7eccSWarner LoshSUBDIR+=	ndp
183519b7eccSWarner LoshSUBDIR+=	rip6query
184519b7eccSWarner LoshSUBDIR+=	route6d
185519b7eccSWarner LoshSUBDIR+=	rrenumd
18637241896SHiroki SatoSUBDIR+=	rtadvctl
187519b7eccSWarner LoshSUBDIR+=	rtadvd
188519b7eccSWarner LoshSUBDIR+=	rtsold
189519b7eccSWarner LoshSUBDIR+=	traceroute6
190d10a8d6cSRuslan Ermilov.endif
191d10a8d6cSRuslan Ermilov
192690f477dSSam Leffler.if ${MK_IPFW} != "no"
193519b7eccSWarner LoshSUBDIR+=	ipfwpcap
194690f477dSSam Leffler.endif
195690f477dSSam Leffler
196cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
197519b7eccSWarner LoshSUBDIR+=	IPXrouted
198cea557adSRuslan Ermilov.endif
199cea557adSRuslan Ermilov
200690f477dSSam Leffler.if ${MK_JAIL} != "no"
201519b7eccSWarner LoshSUBDIR+=	jail
202519b7eccSWarner LoshSUBDIR+=	jexec
203519b7eccSWarner LoshSUBDIR+=	jls
204690f477dSSam Leffler.endif
205690f477dSSam Leffler
206690f477dSSam Leffler# XXX MK_SYSCONS
207690f477dSSam Leffler.if ${MK_LEGACY_CONSOLE} != "no"
208519b7eccSWarner LoshSUBDIR+=	kbdcontrol
209519b7eccSWarner LoshSUBDIR+=	kbdmap
210519b7eccSWarner LoshSUBDIR+=	moused
211519b7eccSWarner LoshSUBDIR+=	vidcontrol
212690f477dSSam Leffler.endif
213690f477dSSam Leffler
2141272ddb2SBjoern A. Zeeb.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no"
215690f477dSSam Leffler.if ${MK_PPP} != "no"
216519b7eccSWarner LoshSUBDIR+=	pppctl
217690f477dSSam Leffler.endif
218690f477dSSam Leffler.if ${MK_NS_CACHING} != "no"
219519b7eccSWarner LoshSUBDIR+=	nscd
220690f477dSSam Leffler.endif
221690f477dSSam Leffler.endif
222690f477dSSam Leffler
223690f477dSSam Leffler.if ${MK_LPR} != "no"
224519b7eccSWarner LoshSUBDIR+=	lpr
225690f477dSSam Leffler.endif
226690f477dSSam Leffler
22707e547feSJung-uk Kim.if ${MK_MAN_UTILS} != "no"
228519b7eccSWarner LoshSUBDIR+=	manctl
22907e547feSJung-uk Kim.endif
23007e547feSJung-uk Kim
2317f725bcdSGrzegorz Bernacki.if ${MK_NAND} != "no"
2327f725bcdSGrzegorz BernackiSUBDIR+=	nandsim
2337f725bcdSGrzegorz BernackiSUBDIR+=	nandtool
2347f725bcdSGrzegorz Bernacki.endif
2357f725bcdSGrzegorz Bernacki
236690f477dSSam Leffler.if ${MK_NETGRAPH} != "no"
237519b7eccSWarner LoshSUBDIR+=	flowctl
238519b7eccSWarner LoshSUBDIR+=	lmcconfig
239519b7eccSWarner LoshSUBDIR+=	ngctl
240519b7eccSWarner LoshSUBDIR+=	nghook
241690f477dSSam Leffler.endif
242690f477dSSam Leffler
243e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
244519b7eccSWarner LoshSUBDIR+=	rpc.yppasswdd
245519b7eccSWarner LoshSUBDIR+=	rpc.ypupdated
246519b7eccSWarner LoshSUBDIR+=	rpc.ypxfrd
247519b7eccSWarner LoshSUBDIR+=	ypbind
248519b7eccSWarner LoshSUBDIR+=	yp_mkdb
249519b7eccSWarner LoshSUBDIR+=	yppoll
250519b7eccSWarner LoshSUBDIR+=	yppush
251519b7eccSWarner LoshSUBDIR+=	ypserv
252519b7eccSWarner LoshSUBDIR+=	ypset
2536c58990dSBjoern A. Zeeb.endif
2546c58990dSBjoern A. Zeeb
255690f477dSSam Leffler.if ${MK_NTP} != "no"
256519b7eccSWarner LoshSUBDIR+=	ntp
2578d69c48bSMax Laier.endif
2588d69c48bSMax Laier
259690f477dSSam Leffler.if ${MK_OPENSSL} != "no"
260519b7eccSWarner LoshSUBDIR+=	keyserv
261152f2a4aSRuslan Ermilov.endif
262152f2a4aSRuslan Ermilov
263690f477dSSam Leffler.if ${MK_PF} != "no"
264519b7eccSWarner LoshSUBDIR+=	ftp-proxy
2658c0e8d96STim Vanderhoek.endif
2668c0e8d96STim Vanderhoek
267f2ed2848SGleb Smirnoff.if ${MK_PKGBOOTSTRAP} != "no"
2682f3a9ba5SBaptiste DaroussinSUBDIR+=	pkg
2692f3a9ba5SBaptiste Daroussin.endif
2702f3a9ba5SBaptiste Daroussin
271690f477dSSam Leffler.if ${MK_PKGTOOLS} != "no"
272519b7eccSWarner LoshSUBDIR+=	pkg_install
2738af480aeSRuslan Ermilov.endif
274690f477dSSam Leffler
275690f477dSSam Leffler# XXX MK_TOOLCHAIN?
276690f477dSSam Leffler.if ${MK_PMC} != "no"
277519b7eccSWarner LoshSUBDIR+=	pmcannotate
278519b7eccSWarner LoshSUBDIR+=	pmccontrol
279519b7eccSWarner LoshSUBDIR+=	pmcstat
280690f477dSSam Leffler.endif
281690f477dSSam Leffler
282690f477dSSam Leffler.if ${MK_PORTSNAP} != "no"
283519b7eccSWarner LoshSUBDIR+=	portsnap
284690f477dSSam Leffler.endif
285690f477dSSam Leffler
286690f477dSSam Leffler.if ${MK_PPP} != "no"
287519b7eccSWarner LoshSUBDIR+=	ppp
288690f477dSSam Leffler.endif
289690f477dSSam Leffler
290690f477dSSam Leffler.if ${MK_QUOTAS} != "no"
291519b7eccSWarner LoshSUBDIR+=	edquota
292519b7eccSWarner LoshSUBDIR+=	quotaon
293519b7eccSWarner LoshSUBDIR+=	repquota
294690f477dSSam Leffler.endif
295690f477dSSam Leffler
296690f477dSSam Leffler.if ${MK_RCMDS} != "no"
297519b7eccSWarner LoshSUBDIR+=	rwhod
2988af480aeSRuslan Ermilov.endif
2998af480aeSRuslan Ermilov
300e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
301519b7eccSWarner LoshSUBDIR+=	editmap
302519b7eccSWarner LoshSUBDIR+=	mailstats
303519b7eccSWarner LoshSUBDIR+=	makemap
304519b7eccSWarner LoshSUBDIR+=	praliases
305519b7eccSWarner LoshSUBDIR+=	sendmail
3065a85f025SPoul-Henning Kamp.endif
3075a85f025SPoul-Henning Kamp
308690f477dSSam Leffler.if ${MK_TOOLCHAIN} != "no"
309519b7eccSWarner LoshSUBDIR+=	config
310519b7eccSWarner LoshSUBDIR+=	crunch
311690f477dSSam Leffler.endif
312690f477dSSam Leffler
313e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
3148d8bfa7fSAntoine BrodinSUBDIR+=	uathload
315519b7eccSWarner LoshSUBDIR+=	uhsoctl
316519b7eccSWarner LoshSUBDIR+=	usbconfig
3179e7abe05SHans Petter SelaskySUBDIR+=	usbdump
3182b51223fSStefan Eßer.endif
3192b51223fSStefan Eßer
3209f0c9022SEd Schouten.if ${MK_UTMPX} != "no"
3219f0c9022SEd SchoutenSUBDIR+=	ac
3229f0c9022SEd SchoutenSUBDIR+=	lastlogin
32371d8432fSEd SchoutenSUBDIR+=	utx
3249f0c9022SEd Schouten.endif
3259f0c9022SEd Schouten
326690f477dSSam Leffler.if ${MK_WIRELESS} != "no"
327519b7eccSWarner LoshSUBDIR+=	ancontrol
328519b7eccSWarner LoshSUBDIR+=	wlandebug
329519b7eccSWarner LoshSUBDIR+=	wpa
330690f477dSSam Leffler.endif
331690f477dSSam Leffler
332519b7eccSWarner Losh.include <bsd.arch.inc.mk>
33357628e38SOlivier Houchard
334519b7eccSWarner LoshSUBDIR:=	${SUBDIR:O}
335a8ec1b48SMaxim Sobolev
336dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
337