xref: /freebsd/usr.bin/Makefile (revision 0aa2700123e22c2b0a977375e087dc2759b8e980)
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	backlight \
11	banner \
12	basename \
13	beep \
14	bintrans \
15	brandelf \
16	bsdcat \
17	bsddialog \
18	bsdiff \
19	bzip2 \
20	bzip2recover \
21	cap_mkdb \
22	chat \
23	chpass \
24	cksum \
25	cmp \
26	col \
27	colrm \
28	column \
29	comm \
30	compress \
31	cpuset \
32	csplit \
33	ctlstat \
34	cut \
35	diff \
36	dirname \
37	du \
38	elfctl \
39	elfdump \
40	enigma \
41	env \
42	etdump \
43	expand \
44	false \
45	fetch \
46	find \
47	fmt \
48	fold \
49	fstat \
50	fsync \
51	gcore \
52	gencat \
53	getaddrinfo \
54	getconf \
55	getent \
56	getopt \
57	grep \
58	gzip \
59	head \
60	hexdump \
61	id \
62	ident \
63	ipcrm \
64	ipcs \
65	join \
66	jot \
67	keylogin \
68	keylogout \
69	killall \
70	ktrace \
71	ktrdump \
72	lam \
73	ldd \
74	leave \
75	less \
76	lessecho \
77	lesskey \
78	limits \
79	locale \
80	localedef \
81	lock \
82	lockf \
83	logger \
84	login \
85	logins \
86	logname \
87	look \
88	lorder \
89	lsvfs \
90	lzmainfo \
91	m4 \
92	mandoc \
93	mesg \
94	ministat \
95	mkdep \
96	mkfifo \
97	mkimg \
98	mktemp \
99	mkuzip \
100	mt \
101	ncal \
102	ncurses \
103	netstat \
104	newgrp \
105	nfsstat \
106	nice \
107	nl \
108	nohup \
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	tail \
150	tar \
151	tcopy \
152	tee \
153	time \
154	timeout \
155	tip \
156	top \
157	touch \
158	tr \
159	true \
160	truncate \
161	tsort \
162	tty \
163	uname \
164	unexpand \
165	uniq \
166	unzip \
167	units \
168	unvis \
169	vis \
170	vmstat \
171	w \
172	wall \
173	wc \
174	what \
175	whereis \
176	which \
177	whois \
178	write \
179	xargs \
180	xinstall \
181	xo \
182	xz \
183	xzdec \
184	yes \
185	zstd
186
187# NB: keep these sorted by MK_* knobs
188
189SUBDIR.${MK_ACCT}+=	lastcomm
190SUBDIR.${MK_AT}+=	at
191SUBDIR.${MK_ATM}+=	atm
192SUBDIR.${MK_BLUETOOTH}+=	bluetooth
193SUBDIR.${MK_BSD_CPIO}+=	cpio
194SUBDIR.${MK_CALENDAR}+=	calendar
195.if ${MK_CLANG} != "no" || ${MK_LLVM_BINUTILS} != "no" || \
196    ${MK_LLD} != "no" || ${MK_LLDB} != "no"
197SUBDIR+=	clang
198.endif
199SUBDIR.${MK_DIALOG}+=	dpv
200SUBDIR.${MK_EE}+=	ee
201SUBDIR.${MK_FILE}+=	file
202SUBDIR.${MK_FINGER}+=	finger
203SUBDIR.${MK_FTP}+=	ftp
204SUBDIR.${MK_GAMES}+=	caesar
205SUBDIR.${MK_GAMES}+=	factor
206SUBDIR.${MK_GAMES}+=	fortune
207SUBDIR.${MK_GAMES}+=	grdc
208SUBDIR.${MK_GAMES}+=	morse
209SUBDIR.${MK_GAMES}+=	number
210SUBDIR.${MK_GAMES}+=	pom
211SUBDIR.${MK_GAMES}+=	primes
212SUBDIR.${MK_GAMES}+=	random
213SUBDIR.${MK_CXX}+=	dtc
214.if ${MK_GH_BC} == "yes"
215SUBDIR+=		gh-bc
216.else
217SUBDIR.${MK_OPENSSL}+=	bc
218SUBDIR.${MK_OPENSSL}+=	dc
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_LIB32}+=	ldd32
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}+=	chkey
245SUBDIR.${MK_OPENSSL}+=	newkey
246SUBDIR.${MK_QUOTAS}+=	quota
247SUBDIR.${MK_SENDMAIL}+=	vacation
248SUBDIR.${MK_TALK}+=	talk
249SUBDIR.${MK_TELNET}+=	telnet
250SUBDIR.${MK_TESTS_SUPPORT}.${MK_CXX}+=	kyua
251SUBDIR.${MK_TESTS}+=	tests
252SUBDIR.${MK_TEXTPROC}+=	ul
253SUBDIR.${MK_TFTP}+=	tftp
254.if ${MK_LLVM_BINUTILS} == "no"
255# Only build the elftoolchain tools if we aren't using the LLVM ones.
256SUBDIR.${MK_TOOLCHAIN}+=	addr2line
257SUBDIR.${MK_TOOLCHAIN}+=	ar
258SUBDIR.${MK_TOOLCHAIN}+=	nm
259SUBDIR.${MK_TOOLCHAIN}+=	objcopy
260SUBDIR.${MK_TOOLCHAIN}+=	readelf
261SUBDIR.${MK_TOOLCHAIN}+=	size
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}+=	mkstr
274SUBDIR.${MK_TOOLCHAIN}+=	rpcgen
275SUBDIR.${MK_TOOLCHAIN}+=	unifdef
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_OFED}+=	ofed
288
289.include <bsd.arch.inc.mk>
290
291SUBDIR_PARALLEL=
292
293.include <bsd.subdir.mk>
294