xref: /freebsd/usr.bin/Makefile (revision f6a3b357e9be4c6423c85eff9a847163a0d307c8)
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	posixshmcontrol \
118	pr \
119	printenv \
120	printf \
121	proccontrol \
122	procstat \
123	protect \
124	rctl \
125	renice \
126	resizewin \
127	rev \
128	revoke \
129	rpcinfo \
130	rs \
131	rup \
132	ruptime \
133	rusers \
134	rwall \
135	rwho \
136	script \
137	sdiff \
138	sed \
139	seq \
140	shar \
141	showmount \
142	sockstat \
143	soelim \
144	sort \
145	split \
146	stat \
147	stdbuf \
148	strings \
149	su \
150	systat \
151	tabs \
152	tail \
153	tar \
154	tcopy \
155	tee \
156	time \
157	timeout \
158	tip \
159	top \
160	touch \
161	tput \
162	tr \
163	true \
164	truncate \
165	tset \
166	tsort \
167	tty \
168	uname \
169	unexpand \
170	uniq \
171	unzip \
172	units \
173	unvis \
174	uudecode \
175	uuencode \
176	vis \
177	vmstat \
178	w \
179	wall \
180	wc \
181	what \
182	whereis \
183	which \
184	whois \
185	write \
186	xargs \
187	xinstall \
188	xo \
189	xz \
190	xzdec \
191	yes \
192	zstd
193
194# NB: keep these sorted by MK_* knobs
195
196SUBDIR.${MK_AT}+=	at
197SUBDIR.${MK_ATM}+=	atm
198SUBDIR.${MK_BLUETOOTH}+=	bluetooth
199SUBDIR.${MK_BSD_CPIO}+=	cpio
200SUBDIR.${MK_CALENDAR}+=	calendar
201SUBDIR.${MK_CLANG}+=	clang
202SUBDIR.${MK_DIALOG}+=	dpv
203SUBDIR.${MK_EE}+=	ee
204SUBDIR.${MK_FILE}+=	file
205SUBDIR.${MK_FINGER}+=	finger
206SUBDIR.${MK_FTP}+=	ftp
207SUBDIR.${MK_GAMES}+=	caesar
208SUBDIR.${MK_GAMES}+=	factor
209SUBDIR.${MK_GAMES}+=	fortune
210SUBDIR.${MK_GAMES}+=	grdc
211SUBDIR.${MK_GAMES}+=	morse
212SUBDIR.${MK_GAMES}+=	number
213SUBDIR.${MK_GAMES}+=	pom
214SUBDIR.${MK_GAMES}+=	primes
215SUBDIR.${MK_GAMES}+=	random
216.if ${MK_GPL_DTC} != "yes"
217.if ${COMPILER_FEATURES:Mc++11}
218SUBDIR+=	dtc
219.endif
220.endif
221SUBDIR.${MK_HESIOD}+=	hesinfo
222SUBDIR.${MK_ICONV}+=	iconv
223SUBDIR.${MK_ICONV}+=	mkcsmapper
224SUBDIR.${MK_ICONV}+=	mkesdb
225SUBDIR.${MK_ISCSI}+=	iscsictl
226SUBDIR.${MK_KDUMP}+=	kdump
227SUBDIR.${MK_KDUMP}+=	truss
228SUBDIR.${MK_KERBEROS_SUPPORT}+=	compile_et
229SUBDIR.${MK_LDNS_UTILS}+=	drill
230SUBDIR.${MK_LDNS_UTILS}+=	host
231SUBDIR.${MK_LOCATE}+=	locate
232# XXX msgs?
233SUBDIR.${MK_MAIL}+=	biff
234SUBDIR.${MK_MAIL}+=	from
235SUBDIR.${MK_MAIL}+=	mail
236SUBDIR.${MK_MAIL}+=	msgs
237SUBDIR.${MK_MAKE}+=	bmake
238SUBDIR.${MK_MAN_UTILS}+=	man
239SUBDIR.${MK_NETCAT}+=	nc
240SUBDIR.${MK_NIS}+=	ypcat
241SUBDIR.${MK_NIS}+=	ypmatch
242SUBDIR.${MK_NIS}+=	ypwhich
243SUBDIR.${MK_OPENSSH}+=	ssh-copy-id
244SUBDIR.${MK_OPENSSL}+=	bc
245SUBDIR.${MK_OPENSSL}+=	chkey
246SUBDIR.${MK_OPENSSL}+=	dc
247SUBDIR.${MK_OPENSSL}+=	newkey
248SUBDIR.${MK_QUOTAS}+=	quota
249SUBDIR.${MK_SENDMAIL}+=	vacation
250SUBDIR.${MK_TALK}+=	talk
251SUBDIR.${MK_TELNET}+=	telnet
252SUBDIR.${MK_TESTS}+=	tests
253SUBDIR.${MK_TEXTPROC}+=	ul
254SUBDIR.${MK_TFTP}+=	tftp
255SUBDIR.${MK_TOOLCHAIN}+=	addr2line
256SUBDIR.${MK_TOOLCHAIN}+=	ar
257SUBDIR.${MK_TOOLCHAIN}+=	c89
258SUBDIR.${MK_TOOLCHAIN}+=	c99
259SUBDIR.${MK_TOOLCHAIN}+=	ctags
260SUBDIR.${MK_TOOLCHAIN}+=	cxxfilt
261SUBDIR.${MK_TOOLCHAIN}+=	objcopy
262SUBDIR.${MK_TOOLCHAIN}+=	file2c
263# ARM64TODO gprof does not build
264# RISCVTODO gprof does not build
265.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_CPUARCH} != "riscv"
266SUBDIR.${MK_TOOLCHAIN}+=	gprof
267.endif
268SUBDIR.${MK_TOOLCHAIN}+=	indent
269SUBDIR.${MK_TOOLCHAIN}+=	lex
270SUBDIR.${MK_TOOLCHAIN}+=	mkstr
271SUBDIR.${MK_TOOLCHAIN}+=	nm
272SUBDIR.${MK_TOOLCHAIN}+=	readelf
273SUBDIR.${MK_TOOLCHAIN}+=	rpcgen
274SUBDIR.${MK_TOOLCHAIN}+=	unifdef
275SUBDIR.${MK_TOOLCHAIN}+=	size
276SUBDIR.${MK_TOOLCHAIN}+=	xstr
277SUBDIR.${MK_TOOLCHAIN}+=	yacc
278SUBDIR.${MK_VI}+=	vi
279SUBDIR.${MK_VT}+=	vtfontcvt
280SUBDIR.${MK_USB}+=	usbhidaction
281SUBDIR.${MK_USB}+=	usbhidctl
282SUBDIR.${MK_UTMPX}+=	last
283.if ${MK_CXX} != "no"
284SUBDIR.${MK_UTMPX}+=	users
285.endif
286SUBDIR.${MK_UTMPX}+=	who
287SUBDIR.${MK_SVN}+=	svn
288SUBDIR.${MK_SVNLITE}+=	svn
289SUBDIR.${MK_OFED}+=	ofed
290
291# These are normally only handled for build-tools.
292.if make(clean*)
293SUBDIR+=	mkcsmapper_static
294SUBDIR+=	mkesdb_static
295.endif
296
297.include <bsd.arch.inc.mk>
298
299SUBDIR_PARALLEL=
300
301.include <bsd.subdir.mk>
302