xref: /freebsd/usr.bin/Makefile (revision 6966ac055c3b7a39266fb982493330df7a097997)
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	colrm \
24	column \
25	comm \
26	compress \
27	cpuset \
28	csplit \
29	ctlstat \
30	cut \
31	diff \
32	dirname \
33	du \
34	elf2aout \
35	elfdump \
36	enigma \
37	env \
38	etdump \
39	expand \
40	false \
41	fetch \
42	find \
43	fmt \
44	fold \
45	fstat \
46	fsync \
47	gcore \
48	gencat \
49	getaddrinfo \
50	getconf \
51	getent \
52	getopt \
53	grep \
54	gzip \
55	head \
56	hexdump \
57	id \
58	ident \
59	ipcrm \
60	ipcs \
61	join \
62	jot \
63	keylogin \
64	keylogout \
65	killall \
66	ktrace \
67	ktrdump \
68	lam \
69	lastcomm \
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	lorder \
86	lsvfs \
87	lzmainfo \
88	m4 \
89	mandoc \
90	mesg \
91	minigzip \
92	ministat \
93	mkdep \
94	mkfifo \
95	mkimg \
96	mktemp \
97	mkuzip \
98	mt \
99	ncal \
100	netstat \
101	newgrp \
102	nfsstat \
103	nice \
104	nl \
105	nohup \
106	opieinfo \
107	opiekey \
108	opiepasswd \
109	pagesize \
110	passwd \
111	paste \
112	patch \
113	pathchk \
114	perror \
115	posixshmcontrol \
116	pr \
117	printenv \
118	printf \
119	proccontrol \
120	procstat \
121	protect \
122	rctl \
123	renice \
124	resizewin \
125	rev \
126	revoke \
127	rpcinfo \
128	rs \
129	rup \
130	ruptime \
131	rusers \
132	rwall \
133	rwho \
134	script \
135	sdiff \
136	sed \
137	seq \
138	shar \
139	showmount \
140	sockstat \
141	soelim \
142	sort \
143	split \
144	stat \
145	stdbuf \
146	strings \
147	su \
148	systat \
149	tabs \
150	tail \
151	tar \
152	tcopy \
153	tee \
154	time \
155	timeout \
156	tip \
157	top \
158	touch \
159	tput \
160	tr \
161	true \
162	truncate \
163	tset \
164	tsort \
165	tty \
166	uname \
167	unexpand \
168	uniq \
169	unzip \
170	units \
171	unvis \
172	uudecode \
173	uuencode \
174	vis \
175	vmstat \
176	w \
177	wall \
178	wc \
179	what \
180	whereis \
181	which \
182	whois \
183	write \
184	xargs \
185	xinstall \
186	xo \
187	xz \
188	xzdec \
189	yes \
190	zstd
191
192# NB: keep these sorted by MK_* knobs
193
194SUBDIR.${MK_AT}+=	at
195SUBDIR.${MK_ATM}+=	atm
196SUBDIR.${MK_BLUETOOTH}+=	bluetooth
197SUBDIR.${MK_BSD_CPIO}+=	cpio
198SUBDIR.${MK_CALENDAR}+=	calendar
199SUBDIR.${MK_CLANG}+=	clang
200SUBDIR.${MK_DIALOG}+=	dpv
201SUBDIR.${MK_EE}+=	ee
202SUBDIR.${MK_FILE}+=	file
203SUBDIR.${MK_FINGER}+=	finger
204SUBDIR.${MK_FTP}+=	ftp
205SUBDIR.${MK_GAMES}+=	caesar
206SUBDIR.${MK_GAMES}+=	factor
207SUBDIR.${MK_GAMES}+=	fortune
208SUBDIR.${MK_GAMES}+=	grdc
209SUBDIR.${MK_GAMES}+=	morse
210SUBDIR.${MK_GAMES}+=	number
211SUBDIR.${MK_GAMES}+=	pom
212SUBDIR.${MK_GAMES}+=	primes
213SUBDIR.${MK_GAMES}+=	random
214.if ${MK_GPL_DTC} != "yes"
215.if ${COMPILER_FEATURES:Mc++11}
216SUBDIR+=	dtc
217.endif
218.endif
219SUBDIR.${MK_HESIOD}+=	hesinfo
220SUBDIR.${MK_ICONV}+=	iconv
221SUBDIR.${MK_ICONV}+=	mkcsmapper
222SUBDIR.${MK_ICONV}+=	mkesdb
223SUBDIR.${MK_ISCSI}+=	iscsictl
224SUBDIR.${MK_KDUMP}+=	kdump
225SUBDIR.${MK_KDUMP}+=	truss
226SUBDIR.${MK_KERBEROS_SUPPORT}+=	compile_et
227SUBDIR.${MK_LDNS_UTILS}+=	drill
228SUBDIR.${MK_LDNS_UTILS}+=	host
229SUBDIR.${MK_LIB32}+=	ldd32
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"
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