xref: /freebsd/usr.sbin/Makefile (revision 8d8bfa7f9e964431a9ada22e1c1dadd2d8cefa31)
1886e832bSGarrett Wollman#	From: @(#)Makefile	5.20 (Berkeley) 6/12/93
297d92980SPeter Wemm# $FreeBSD$
3dea673e9SRodney W. Grimes
4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
5e1fe3dbaSRuslan Ermilov
6519b7eccSWarner LoshSUBDIR= adduser \
70451ac36SGary Palmer	arp \
80451ac36SGary Palmer	bootparamd \
96d73a68aSSøren Schmidt	burncd \
100451ac36SGary Palmer	cdcontrol \
110451ac36SGary Palmer	chkgrp \
120451ac36SGary Palmer	chown \
130451ac36SGary Palmer	chroot \
140451ac36SGary Palmer	ckdist \
15dfdcada3SDoug Rabson	clear_locks \
16a37f9716SJohn Baldwin	crashinfo \
170451ac36SGary Palmer	cron \
18bd06a3ecSMike Barcroft	daemon \
19869093b1SHidetoshi Shimokawa	dconschat \
200fb0f418SMike Smith	devinfo \
21ad01e0c8SBrian Somers	digictl \
22a362eb63SPoul-Henning Kamp	diskinfo \
230738c00eSWarner Losh	dumpcis \
24caefa400SPoul-Henning Kamp	extattr \
259754f5b6SRobert Watson	extattrctl \
267825a6bdSPoul-Henning Kamp	fifolog \
27a7a73b95SHidetoshi Shimokawa	fwcontrol \
285b38a427SRobert Watson	getfmac \
295b38a427SRobert Watson	getpmac \
30968ec6a6SOleksandr Tymoshenko	gpioctl \
3154a8adabSPoul-Henning Kamp	gstat \
32477f656bSRafal Jaworowski	i2c \
33123689d3SYoshinobu Inoue	ifmcstat \
340451ac36SGary Palmer	inetd \
355c9036d5SDima Ruban	iostat \
369c6f9240SPeter Wemm	kldxref \
37b3b01ff3SRuslan Ermilov	lastlogin \
38cccce27aSPeter Wemm	mailwrapper \
39efc06131SSam Leffler	makefs \
40519b7eccSWarner Losh	manctl \
410adc9d60SMike Smith	memcontrol \
4224ff9bb5SBill Fumerola	mergemaster \
43763fae79SScott Long	mfiutil \
44c7805c63SDoug Rabson	mixer \
45f6f23e2cSMike Smith	mlxcontrol \
468f40768aSGordon Tetlow	mountd \
47d10a8d6cSRuslan Ermilov	mount_portalfs \
48fc58801cSScott Long	mptutil \
490451ac36SGary Palmer	mtest \
500451ac36SGary Palmer	mtree \
510451ac36SGary Palmer	newsyslog \
5203914b0bSRick Macklem	nfscbd \
538f40768aSGordon Tetlow	nfsd \
5403914b0bSRick Macklem	nfsdumpstate \
5503914b0bSRick Macklem	nfsrevoke \
5603914b0bSRick Macklem	nfsuserd \
575de697a6SColin Percival	nologin \
584bbc5bd8SWarner Losh	pc-sysinstall \
590451ac36SGary Palmer	pciconf \
600451ac36SGary Palmer	periodic \
61c3c5f9cdSNate Lawson	powerd \
620451ac36SGary Palmer	procctl \
630451ac36SGary Palmer	pstat \
640451ac36SGary Palmer	pw \
650451ac36SGary Palmer	pwd_mkdb \
660451ac36SGary Palmer	quot \
670451ac36SGary Palmer	rarpd \
680451ac36SGary Palmer	rmt \
698360efbdSAlfred Perlstein	rpcbind \
700451ac36SGary Palmer	rpc.lockd \
710451ac36SGary Palmer	rpc.statd \
72c69a34d4SMatthew Dillon	rpc.umntall \
735c9036d5SDima Ruban	rtprio \
743d482827SDoug Barton	service \
750b25da7eSHajimu UMEMOTO	services_mkdb \
76108e8dd9SJulian Elischer	setfib \
775b38a427SRobert Watson	setfmac \
785b38a427SRobert Watson	setpmac \
7980cdf39aSJoerg Wunsch	smbmsg \
808f61cf9cSMark Santcroos	snapinfo \
810451ac36SGary Palmer	spray \
820451ac36SGary Palmer	syslogd \
838d4b20e3SMark Murray	tcpdchk \
848d4b20e3SMark Murray	tcpdmatch \
85212a79b0SMaxim Konovalov	tcpdrop \
860acc1823SDavid E. O'Brien	tcpdump \
870451ac36SGary Palmer	timed \
880451ac36SGary Palmer	traceroute \
890451ac36SGary Palmer	trpt \
900451ac36SGary Palmer	tzsetup \
9134d26f04SRobert Watson	ugidfw \
920451ac36SGary Palmer	vipw \
9358c6a70aSMartin Blapp	wake \
940451ac36SGary Palmer	watch \
95370c3cb5SSean Kelly	watchdogd \
96519b7eccSWarner Losh	zic
97d10a8d6cSRuslan Ermilov
98690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
99690f477dSSam Leffler
100690f477dSSam Leffler.if ${MK_ACCT} != "no"
101519b7eccSWarner LoshSUBDIR+=	ac
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
125519b7eccSWarner LoshSUBDIR+=	dnssec-signzone
12611d9d041SDag-Erling Smørgrav.endif
127e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
128519b7eccSWarner LoshSUBDIR+=	named
129519b7eccSWarner LoshSUBDIR+=	named-checkconf
130519b7eccSWarner LoshSUBDIR+=	named-checkzone
131519b7eccSWarner LoshSUBDIR+=	named.reload
132519b7eccSWarner LoshSUBDIR+=	rndc
133519b7eccSWarner LoshSUBDIR+=	rndc-confgen
134d10a8d6cSRuslan Ermilov.endif
135d10a8d6cSRuslan Ermilov
136e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
137519b7eccSWarner LoshSUBDIR+=	bluetooth
13823d1e148SMaksim Yevmenkin.endif
13923d1e148SMaksim Yevmenkin
140690f477dSSam Leffler.if ${MK_BSNMP} != "no"
141519b7eccSWarner LoshSUBDIR+=	bsnmpd
142d10a8d6cSRuslan Ermilov.endif
143d10a8d6cSRuslan Ermilov
144690f477dSSam Leffler.if ${MK_CTM} != "no"
145519b7eccSWarner LoshSUBDIR+=	ctm
146690f477dSSam Leffler.endif
147690f477dSSam Leffler
148690f477dSSam Leffler.if ${MK_FLOPPY} != "no"
149519b7eccSWarner LoshSUBDIR+=	fdcontrol
150519b7eccSWarner LoshSUBDIR+=	fdformat
151519b7eccSWarner LoshSUBDIR+=	fdread
152519b7eccSWarner LoshSUBDIR+=	fdwrite
153690f477dSSam Leffler.endif
154690f477dSSam Leffler
155690f477dSSam Leffler.if ${MK_FREEBSD_UPDATE} != "no"
156519b7eccSWarner LoshSUBDIR+=	freebsd-update
15760ee3847SMax Laier.endif
15860ee3847SMax Laier
159a9148abdSDoug Rabson.if ${MK_GSSAPI} != no
160519b7eccSWarner LoshSUBDIR+=	gssd
161a9148abdSDoug Rabson.endif
162a9148abdSDoug Rabson
163e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
164519b7eccSWarner LoshSUBDIR+=	faithd
165519b7eccSWarner LoshSUBDIR+=	ip6addrctl
166519b7eccSWarner LoshSUBDIR+=	mld6query
167519b7eccSWarner LoshSUBDIR+=	ndp
168519b7eccSWarner LoshSUBDIR+=	rip6query
169519b7eccSWarner LoshSUBDIR+=	route6d
170519b7eccSWarner LoshSUBDIR+=	rrenumd
171519b7eccSWarner LoshSUBDIR+=	rtadvd
172519b7eccSWarner LoshSUBDIR+=	rtsold
173519b7eccSWarner LoshSUBDIR+=	traceroute6
174d10a8d6cSRuslan Ermilov.endif
175d10a8d6cSRuslan Ermilov
176690f477dSSam Leffler.if ${MK_IPFW} != "no"
177519b7eccSWarner LoshSUBDIR+=	ipfwpcap
178690f477dSSam Leffler.endif
179690f477dSSam Leffler
180cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
181519b7eccSWarner LoshSUBDIR+=	IPXrouted
182cea557adSRuslan Ermilov.endif
183cea557adSRuslan Ermilov
184690f477dSSam Leffler.if ${MK_JAIL} != "no"
185519b7eccSWarner LoshSUBDIR+=	jail
186519b7eccSWarner LoshSUBDIR+=	jexec
187519b7eccSWarner LoshSUBDIR+=	jls
188690f477dSSam Leffler.endif
189690f477dSSam Leffler
190690f477dSSam Leffler# XXX MK_SYSCONS
191690f477dSSam Leffler.if ${MK_LEGACY_CONSOLE} != "no"
192519b7eccSWarner LoshSUBDIR+=	kbdcontrol
193519b7eccSWarner LoshSUBDIR+=	kbdmap
194519b7eccSWarner LoshSUBDIR+=	moused
195519b7eccSWarner LoshSUBDIR+=	vidcontrol
196690f477dSSam Leffler.endif
197690f477dSSam Leffler
1981272ddb2SBjoern A. Zeeb.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no"
199690f477dSSam Leffler.if ${MK_PPP} != "no"
200519b7eccSWarner LoshSUBDIR+=	pppctl
201690f477dSSam Leffler.endif
202690f477dSSam Leffler.if ${MK_NS_CACHING} != "no"
203519b7eccSWarner LoshSUBDIR+=	nscd
204690f477dSSam Leffler.endif
205690f477dSSam Leffler.endif
206690f477dSSam Leffler
207690f477dSSam Leffler.if ${MK_LPR} != "no"
208519b7eccSWarner LoshSUBDIR+=	lpr
209690f477dSSam Leffler.endif
210690f477dSSam Leffler
21107e547feSJung-uk Kim.if ${MK_MAN_UTILS} != "no"
212519b7eccSWarner LoshSUBDIR+=	manctl
21307e547feSJung-uk Kim.endif
21407e547feSJung-uk Kim
215690f477dSSam Leffler.if ${MK_NETGRAPH} != "no"
216519b7eccSWarner LoshSUBDIR+=	flowctl
217519b7eccSWarner LoshSUBDIR+=	lmcconfig
218519b7eccSWarner LoshSUBDIR+=	ngctl
219519b7eccSWarner LoshSUBDIR+=	nghook
220690f477dSSam Leffler.endif
221690f477dSSam Leffler
222e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
223519b7eccSWarner LoshSUBDIR+=	rpc.yppasswdd
224519b7eccSWarner LoshSUBDIR+=	rpc.ypupdated
225519b7eccSWarner LoshSUBDIR+=	rpc.ypxfrd
226519b7eccSWarner LoshSUBDIR+=	ypbind
227519b7eccSWarner LoshSUBDIR+=	yp_mkdb
228519b7eccSWarner LoshSUBDIR+=	yppoll
229519b7eccSWarner LoshSUBDIR+=	yppush
230519b7eccSWarner LoshSUBDIR+=	ypserv
231519b7eccSWarner LoshSUBDIR+=	ypset
2326c58990dSBjoern A. Zeeb.endif
2336c58990dSBjoern A. Zeeb
234690f477dSSam Leffler.if ${MK_NTP} != "no"
235519b7eccSWarner LoshSUBDIR+=	ntp
2368d69c48bSMax Laier.endif
2378d69c48bSMax Laier
238690f477dSSam Leffler.if ${MK_OPENSSL} != "no"
239519b7eccSWarner LoshSUBDIR+=	keyserv
240152f2a4aSRuslan Ermilov.endif
241152f2a4aSRuslan Ermilov
242690f477dSSam Leffler.if ${MK_PF} != "no"
243519b7eccSWarner LoshSUBDIR+=	ftp-proxy
2448c0e8d96STim Vanderhoek.endif
2458c0e8d96STim Vanderhoek
246690f477dSSam Leffler.if ${MK_PKGTOOLS} != "no"
247519b7eccSWarner LoshSUBDIR+=	pkg_install
2488af480aeSRuslan Ermilov.endif
249690f477dSSam Leffler
250690f477dSSam Leffler# XXX MK_TOOLCHAIN?
251690f477dSSam Leffler.if ${MK_PMC} != "no"
252519b7eccSWarner LoshSUBDIR+=	pmcannotate
253519b7eccSWarner LoshSUBDIR+=	pmccontrol
254519b7eccSWarner LoshSUBDIR+=	pmcstat
255690f477dSSam Leffler.endif
256690f477dSSam Leffler
257690f477dSSam Leffler.if ${MK_PORTSNAP} != "no"
258519b7eccSWarner LoshSUBDIR+=	portsnap
259690f477dSSam Leffler.endif
260690f477dSSam Leffler
261690f477dSSam Leffler.if ${MK_PPP} != "no"
262519b7eccSWarner LoshSUBDIR+=	ppp
263690f477dSSam Leffler.endif
264690f477dSSam Leffler
265690f477dSSam Leffler.if ${MK_QUOTAS} != "no"
266519b7eccSWarner LoshSUBDIR+=	edquota
267519b7eccSWarner LoshSUBDIR+=	quotaon
268519b7eccSWarner LoshSUBDIR+=	repquota
269690f477dSSam Leffler.endif
270690f477dSSam Leffler
271690f477dSSam Leffler.if ${MK_RCMDS} != "no"
272519b7eccSWarner LoshSUBDIR+=	rwhod
2738af480aeSRuslan Ermilov.endif
2748af480aeSRuslan Ermilov
275e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
276519b7eccSWarner LoshSUBDIR+=	editmap
277519b7eccSWarner LoshSUBDIR+=	mailstats
278519b7eccSWarner LoshSUBDIR+=	makemap
279519b7eccSWarner LoshSUBDIR+=	praliases
280519b7eccSWarner LoshSUBDIR+=	sendmail
2815a85f025SPoul-Henning Kamp.endif
2825a85f025SPoul-Henning Kamp
283519b7eccSWarner LoshSUBDIR+=	sysinstall
284690f477dSSam Leffler
285690f477dSSam Leffler.if ${MK_TOOLCHAIN} != "no"
286519b7eccSWarner LoshSUBDIR+=	config
287519b7eccSWarner LoshSUBDIR+=	crunch
288690f477dSSam Leffler.endif
289690f477dSSam Leffler
290e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
291*8d8bfa7fSAntoine BrodinSUBDIR+=	uathload
292519b7eccSWarner LoshSUBDIR+=	uhsoctl
293519b7eccSWarner LoshSUBDIR+=	usbconfig
2942b51223fSStefan Eßer.endif
2952b51223fSStefan Eßer
296690f477dSSam Leffler.if ${MK_WIRELESS} != "no"
297519b7eccSWarner LoshSUBDIR+=	ancontrol
298519b7eccSWarner LoshSUBDIR+=	wlandebug
299519b7eccSWarner LoshSUBDIR+=	wpa
300690f477dSSam Leffler.endif
301690f477dSSam Leffler
302519b7eccSWarner Losh.include <bsd.arch.inc.mk>
30357628e38SOlivier Houchard
304519b7eccSWarner LoshSUBDIR:=	${SUBDIR:O}
305a8ec1b48SMaxim Sobolev
306dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
307