xref: /freebsd/usr.bin/Makefile (revision 123af6ec70016f5556da5972d4d63c7d175c06d3)
1#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2# $FreeBSD$
3
4.include <src.opts.mk>
5
6SUBDIR=	alias \
7	apply \
8	asa \
9	awk \
10	banner \
11	basename \
12	brandelf \
13	bsdcat \
14	bsdiff \
15	bzip2 \
16	bzip2recover \
17	cap_mkdb \
18	chat \
19	chpass \
20	cksum \
21	cmp \
22	col \
23	colldef \
24	colrm \
25	column \
26	comm \
27	compress \
28	cpuset \
29	csplit \
30	ctlstat \
31	cut \
32	diff \
33	dirname \
34	du \
35	elf2aout \
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	lastcomm \
71	ldd \
72	leave \
73	less \
74	lessecho \
75	lesskey \
76	limits \
77	locale \
78	localedef \
79	lock \
80	lockf \
81	logger \
82	login \
83	logins \
84	logname \
85	look \
86	lorder \
87	lsvfs \
88	lzmainfo \
89	m4 \
90	mandoc \
91	mesg \
92	minigzip \
93	ministat \
94	mkdep \
95	mkfifo \
96	mkimg \
97	mklocale \
98	mktemp \
99	mkuzip \
100	mt \
101	ncal \
102	netstat \
103	newgrp \
104	nfsstat \
105	nice \
106	nl \
107	nohup \
108	opieinfo \
109	opiekey \
110	opiepasswd \
111	pagesize \
112	passwd \
113	paste \
114	patch \
115	pathchk \
116	perror \
117	pr \
118	printenv \
119	printf \
120	proccontrol \
121	procstat \
122	protect \
123	rctl \
124	renice \
125	resizewin \
126	rev \
127	revoke \
128	rpcinfo \
129	rs \
130	rup \
131	ruptime \
132	rusers \
133	rwall \
134	rwho \
135	script \
136	sdiff \
137	sed \
138	seq \
139	shar \
140	showmount \
141	sockstat \
142	soelim \
143	sort \
144	split \
145	stat \
146	stdbuf \
147	strings \
148	su \
149	systat \
150	tabs \
151	tail \
152	tar \
153	tcopy \
154	tee \
155	time \
156	timeout \
157	tip \
158	top \
159	touch \
160	tput \
161	tr \
162	true \
163	truncate \
164	tset \
165	tsort \
166	tty \
167	uname \
168	unexpand \
169	uniq \
170	unzip \
171	units \
172	unvis \
173	uudecode \
174	uuencode \
175	vis \
176	vmstat \
177	w \
178	wall \
179	wc \
180	what \
181	whereis \
182	which \
183	whois \
184	write \
185	xargs \
186	xinstall \
187	xo \
188	xz \
189	xzdec \
190	yes \
191	zstd
192
193# NB: keep these sorted by MK_* knobs
194
195SUBDIR.${MK_AT}+=	at
196SUBDIR.${MK_ATM}+=	atm
197SUBDIR.${MK_BLUETOOTH}+=	bluetooth
198SUBDIR.${MK_BSD_CPIO}+=	cpio
199SUBDIR.${MK_CALENDAR}+=	calendar
200SUBDIR.${MK_CLANG}+=	clang
201SUBDIR.${MK_DIALOG}+=	dpv
202SUBDIR.${MK_EE}+=	ee
203SUBDIR.${MK_FILE}+=	file
204SUBDIR.${MK_FINGER}+=	finger
205SUBDIR.${MK_FTP}+=	ftp
206SUBDIR.${MK_GAMES}+=	caesar
207SUBDIR.${MK_GAMES}+=	factor
208SUBDIR.${MK_GAMES}+=	fortune
209SUBDIR.${MK_GAMES}+=	grdc
210SUBDIR.${MK_GAMES}+=	morse
211SUBDIR.${MK_GAMES}+=	number
212SUBDIR.${MK_GAMES}+=	pom
213SUBDIR.${MK_GAMES}+=	primes
214SUBDIR.${MK_GAMES}+=	random
215.if ${MK_GPL_DTC} != "yes"
216.if ${COMPILER_FEATURES:Mc++11}
217SUBDIR+=	dtc
218.endif
219.endif
220SUBDIR.${MK_HESIOD}+=	hesinfo
221SUBDIR.${MK_ICONV}+=	iconv
222SUBDIR.${MK_ICONV}+=	mkcsmapper
223SUBDIR.${MK_ICONV}+=	mkesdb
224SUBDIR.${MK_ISCSI}+=	iscsictl
225SUBDIR.${MK_KDUMP}+=	kdump
226SUBDIR.${MK_KDUMP}+=	truss
227SUBDIR.${MK_KERBEROS_SUPPORT}+=	compile_et
228SUBDIR.${MK_LDNS_UTILS}+=	drill
229SUBDIR.${MK_LDNS_UTILS}+=	host
230SUBDIR.${MK_LOCATE}+=	locate
231# XXX msgs?
232SUBDIR.${MK_MAIL}+=	biff
233SUBDIR.${MK_MAIL}+=	from
234SUBDIR.${MK_MAIL}+=	mail
235SUBDIR.${MK_MAIL}+=	msgs
236SUBDIR.${MK_MAKE}+=	bmake
237SUBDIR.${MK_MAN_UTILS}+=	man
238SUBDIR.${MK_NETCAT}+=	nc
239SUBDIR.${MK_NIS}+=	ypcat
240SUBDIR.${MK_NIS}+=	ypmatch
241SUBDIR.${MK_NIS}+=	ypwhich
242SUBDIR.${MK_OPENSSH}+=	ssh-copy-id
243SUBDIR.${MK_OPENSSL}+=	bc
244SUBDIR.${MK_OPENSSL}+=	chkey
245SUBDIR.${MK_OPENSSL}+=	dc
246SUBDIR.${MK_OPENSSL}+=	newkey
247SUBDIR.${MK_QUOTAS}+=	quota
248SUBDIR.${MK_SENDMAIL}+=	vacation
249SUBDIR.${MK_TALK}+=	talk
250SUBDIR.${MK_TELNET}+=	telnet
251SUBDIR.${MK_TESTS}+=	tests
252SUBDIR.${MK_TEXTPROC}+=	ul
253SUBDIR.${MK_TFTP}+=	tftp
254SUBDIR.${MK_TOOLCHAIN}+=	addr2line
255SUBDIR.${MK_TOOLCHAIN}+=	ar
256SUBDIR.${MK_TOOLCHAIN}+=	c89
257SUBDIR.${MK_TOOLCHAIN}+=	c99
258SUBDIR.${MK_TOOLCHAIN}+=	ctags
259SUBDIR.${MK_TOOLCHAIN}+=	cxxfilt
260SUBDIR.${MK_TOOLCHAIN}+=	objcopy
261SUBDIR.${MK_TOOLCHAIN}+=	file2c
262# ARM64TODO gprof does not build
263# RISCVTODO gprof does not build
264.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_CPUARCH} != "riscv"
265SUBDIR.${MK_TOOLCHAIN}+=	gprof
266.endif
267SUBDIR.${MK_TOOLCHAIN}+=	indent
268SUBDIR.${MK_TOOLCHAIN}+=	lex
269SUBDIR.${MK_TOOLCHAIN}+=	mkstr
270SUBDIR.${MK_TOOLCHAIN}+=	nm
271SUBDIR.${MK_TOOLCHAIN}+=	readelf
272SUBDIR.${MK_TOOLCHAIN}+=	rpcgen
273SUBDIR.${MK_TOOLCHAIN}+=	unifdef
274SUBDIR.${MK_TOOLCHAIN}+=	size
275SUBDIR.${MK_TOOLCHAIN}+=	xstr
276SUBDIR.${MK_TOOLCHAIN}+=	yacc
277SUBDIR.${MK_VI}+=	vi
278SUBDIR.${MK_VT}+=	vtfontcvt
279SUBDIR.${MK_USB}+=	usbhidaction
280SUBDIR.${MK_USB}+=	usbhidctl
281SUBDIR.${MK_UTMPX}+=	last
282.if ${MK_CXX} != "no"
283SUBDIR.${MK_UTMPX}+=	users
284.endif
285SUBDIR.${MK_UTMPX}+=	who
286SUBDIR.${MK_SVN}+=	svn
287SUBDIR.${MK_SVNLITE}+=	svn
288SUBDIR.${MK_OFED}+=	ofed
289
290# These are normally only handled for build-tools.
291.if make(clean*)
292SUBDIR+=	mkcsmapper_static
293SUBDIR+=	mkesdb_static
294.endif
295
296.include <bsd.arch.inc.mk>
297
298SUBDIR_PARALLEL=
299
300.include <bsd.subdir.mk>
301