xref: /freebsd/usr.bin/Makefile (revision 59f5f100b774de8824fb2fc1a8a11a93bbc2dafd)
1.include <src.opts.mk>
2
3SUBDIR=	alias \
4	apply \
5	asa \
6	awk \
7	backlight \
8	banner \
9	basename \
10	beep \
11	bintrans \
12	brandelf \
13	bsdcat \
14	bsddialog \
15	bsdiff \
16	bzip2 \
17	bzip2recover \
18	cap_mkdb \
19	chat \
20	chpass \
21	cksum \
22	cmp \
23	col \
24	colrm \
25	column \
26	comm \
27	compress \
28	csplit \
29	ctlstat \
30	cut \
31	diff \
32	dirname \
33	dtc \
34	du \
35	elfctl \
36	elfdump \
37	enigma \
38	env \
39	etdump \
40	expand \
41	false \
42	fetch \
43	find \
44	fmt \
45	fold \
46	fstat \
47	fsync \
48	gcore \
49	gencat \
50	getaddrinfo \
51	getconf \
52	getent \
53	getopt \
54	grep \
55	gzip \
56	head \
57	hexdump \
58	id \
59	ident \
60	ipcrm \
61	ipcs \
62	join \
63	jot \
64	keylogin \
65	keylogout \
66	killall \
67	ktrace \
68	ktrdump \
69	lam \
70	ldd \
71	leave \
72	less \
73	lessecho \
74	lesskey \
75	limits \
76	locale \
77	localedef \
78	lock \
79	lockf \
80	logger \
81	login \
82	logins \
83	logname \
84	look \
85	lsvfs \
86	lzmainfo \
87	m4 \
88	mandoc \
89	mdo \
90	mesg \
91	ministat \
92	mkdep \
93	mkfifo \
94	mkimg \
95	mktemp \
96	mkuzip \
97	mt \
98	ncal \
99	ncurses \
100	netstat \
101	newgrp \
102	nfsstat \
103	nice \
104	nl \
105	nohup \
106	pagesize \
107	passwd \
108	paste \
109	patch \
110	pathchk \
111	perror \
112	posixmqcontrol \
113	posixshmcontrol \
114	pr \
115	printenv \
116	printf \
117	proccontrol \
118	procstat \
119	protect \
120	rctl \
121	renice \
122	resizewin \
123	rev \
124	revoke \
125	rpcinfo \
126	rs \
127	rup \
128	ruptime \
129	rusers \
130	rwall \
131	rwho \
132	script \
133	sdiff \
134	sed \
135	seq \
136	shar \
137	showmount \
138	sockstat \
139	soelim \
140	sort \
141	split \
142	stat \
143	stdbuf \
144	su \
145	systat \
146	tail \
147	tar \
148	tcopy \
149	tee \
150	time \
151	tip \
152	top \
153	touch \
154	tr \
155	true \
156	truncate \
157	tsort \
158	tty \
159	uname \
160	unexpand \
161	uniq \
162	unzip \
163	units \
164	unvis \
165	vis \
166	vmstat \
167	w \
168	wall \
169	wc \
170	wg \
171	what \
172	whereis \
173	which \
174	whois \
175	write \
176	xargs \
177	xinstall \
178	xo \
179	xz \
180	xzdec \
181	yes \
182	zstd
183
184# NB: keep these sorted by MK_* knobs
185
186SUBDIR.${MK_ACCT}+=	lastcomm
187SUBDIR.${MK_AT}+=	at
188SUBDIR.${MK_BLUETOOTH}+=	bluetooth
189SUBDIR.${MK_BSD_CPIO}+=	cpio
190SUBDIR.${MK_CALENDAR}+=	calendar
191.if ${MK_CLANG} != "no" || ${MK_LLVM_BINUTILS} != "no" || \
192    ${MK_LLD} != "no" || ${MK_LLDB} != "no"
193SUBDIR+=	clang
194.endif
195SUBDIR.${MK_DIALOG}+=	dpv
196SUBDIR.${MK_EE}+=	ee
197SUBDIR.${MK_FILE}+=	file
198SUBDIR.${MK_FINGER}+=	finger
199SUBDIR.${MK_FTP}+=	ftp
200SUBDIR.${MK_GAMES}+=	caesar
201SUBDIR.${MK_GAMES}+=	factor
202SUBDIR.${MK_GAMES}+=	fortune
203SUBDIR.${MK_GAMES}+=	grdc
204SUBDIR.${MK_GAMES}+=	morse
205SUBDIR.${MK_GAMES}+=	number
206SUBDIR.${MK_GAMES}+=	pom
207SUBDIR.${MK_GAMES}+=	primes
208SUBDIR.${MK_GAMES}+=	random
209.if ${MK_GH_BC} == "yes"
210SUBDIR+=		gh-bc
211.else
212SUBDIR.${MK_OPENSSL}+=	bc
213SUBDIR.${MK_OPENSSL}+=	dc
214.endif
215.if ${MK_GNU_DIFF} == "no"
216SUBDIR+=		diff3
217.endif
218SUBDIR.${MK_HESIOD}+=	hesinfo
219SUBDIR.${MK_ICONV}+=	iconv
220SUBDIR.${MK_ICONV}+=	mkcsmapper
221SUBDIR.${MK_ICONV}+=	mkesdb
222SUBDIR.${MK_ISCSI}+=	iscsictl
223SUBDIR.${MK_KDUMP}+=	kdump
224SUBDIR.${MK_KDUMP}+=	truss
225SUBDIR.${MK_KERBEROS_SUPPORT}+=	compile_et
226SUBDIR.${MK_LDNS_UTILS}+=	drill
227SUBDIR.${MK_LDNS_UTILS}+=	host
228SUBDIR.${MK_LIB32}+=	ldd32
229SUBDIR.${MK_LOCATE}+=	locate
230# XXX msgs?
231SUBDIR.${MK_MAIL}+=	biff
232SUBDIR.${MK_MAIL}+=	from
233SUBDIR.${MK_MAIL}+=	mail
234SUBDIR.${MK_MAIL}+=	msgs
235SUBDIR.${MK_MAKE}+=	bmake
236SUBDIR.${MK_MAN_UTILS}+=	man
237SUBDIR.${MK_NETCAT}+=	nc
238SUBDIR.${MK_NETLINK}+=	genl
239SUBDIR.${MK_NIS}+=	ypcat
240SUBDIR.${MK_NIS}+=	ypmatch
241SUBDIR.${MK_NIS}+=	ypwhich
242SUBDIR.${MK_OPENSSH}+=	ssh-copy-id
243SUBDIR.${MK_OPENSSL}+=	chkey
244SUBDIR.${MK_OPENSSL}+=	newkey
245SUBDIR.${MK_QUOTAS}+=	quota
246SUBDIR.${MK_SENDMAIL}+=	vacation
247SUBDIR.${MK_TALK}+=	talk
248SUBDIR.${MK_TELNET}+=	telnet
249SUBDIR.${MK_TESTS_SUPPORT}+=	kyua
250SUBDIR.${MK_TESTS}+=	tests
251SUBDIR.${MK_TEXTPROC}+=	ul
252SUBDIR.${MK_TFTP}+=	tftp
253.if ${MK_LLVM_BINUTILS} == "no"
254# Only build the elftoolchain tools if we aren't using the LLVM ones.
255SUBDIR.${MK_TOOLCHAIN}+=	addr2line
256SUBDIR.${MK_TOOLCHAIN}+=	ar
257SUBDIR.${MK_TOOLCHAIN}+=	nm
258SUBDIR.${MK_TOOLCHAIN}+=	objcopy
259SUBDIR.${MK_TOOLCHAIN}+=	readelf
260SUBDIR.${MK_TOOLCHAIN}+=	size
261SUBDIR+=			strings
262.endif
263SUBDIR.${MK_TOOLCHAIN}+=	c89
264SUBDIR.${MK_TOOLCHAIN}+=	c99
265SUBDIR.${MK_TOOLCHAIN}+=	ctags
266.if ${MK_LLVM_CXXFILT} == "no"
267SUBDIR.${MK_TOOLCHAIN}+=	cxxfilt
268.endif
269SUBDIR.${MK_TOOLCHAIN}+=	file2c
270SUBDIR.${MK_TOOLCHAIN}+=	gprof
271SUBDIR.${MK_TOOLCHAIN}+=	indent
272SUBDIR.${MK_TOOLCHAIN}+=	lex
273SUBDIR.${MK_TOOLCHAIN}+=	lorder
274SUBDIR.${MK_TOOLCHAIN}+=	mkstr
275SUBDIR.${MK_TOOLCHAIN}+=	rpcgen
276SUBDIR.${MK_TOOLCHAIN}+=	unifdef
277SUBDIR.${MK_TOOLCHAIN}+=	xstr
278SUBDIR.${MK_TOOLCHAIN}+=	yacc
279SUBDIR.${MK_VI}+=	vi
280SUBDIR.${MK_VT}+=	vtfontcvt
281SUBDIR.${MK_USB}+=	usbhidaction
282SUBDIR.${MK_USB}+=	usbhidctl
283SUBDIR.${MK_UTMPX}+=	last
284SUBDIR.${MK_UTMPX}+=	users
285SUBDIR.${MK_UTMPX}+=	who
286SUBDIR.${MK_OFED}+=	ofed
287
288.include <bsd.arch.inc.mk>
289
290SUBDIR_PARALLEL=
291
292.include <bsd.subdir.mk>
293