xref: /freebsd/usr.bin/Makefile (revision 057ca2d4372f94cc0911c140cd4d8f117fe9b26a)
1#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2# $FreeBSD$
3
4.include <src.opts.mk>
5
6# XXX MISSING:		deroff diction graph learn plot
7#			spell spline struct xsend
8# XXX Use GNU versions: diff ld patch
9# Moved to secure: bdes
10#
11
12SUBDIR=	${_addr2line} \
13	alias \
14	apply \
15	asa \
16	awk \
17	banner \
18	basename \
19	brandelf \
20	bsdiff \
21	bzip2 \
22	bzip2recover \
23	cap_mkdb \
24	chat \
25	chpass \
26	cksum \
27	${_clang} \
28	cmp \
29	col \
30	colldef \
31	colrm \
32	column \
33	comm \
34	compress \
35	cpuset \
36	csplit \
37	ctlstat \
38	cut \
39	${_cxxfilt} \
40	dirname \
41	dpv \
42	du \
43	elf2aout \
44	${_elfcopy} \
45	elfdump \
46	enigma \
47	env \
48	expand \
49	false \
50	fetch \
51	find \
52	fmt \
53	fold \
54	fstat \
55	fsync \
56	gcore \
57	gencat \
58	getconf \
59	getent \
60	getopt \
61	grep \
62	gzip \
63	head \
64	hexdump \
65	${_iconv} \
66	id \
67	ident \
68	ipcrm \
69	ipcs \
70	join \
71	jot \
72	${_kdump} \
73	keylogin \
74	keylogout \
75	killall \
76	ktrace \
77	ktrdump \
78	lam \
79	lastcomm \
80	ldd \
81	leave \
82	less \
83	lessecho \
84	lesskey \
85	limits \
86	locale \
87	localedef \
88	lock \
89	lockf \
90	logger \
91	login \
92	logins \
93	logname \
94	look \
95	lorder \
96	lsvfs \
97	lzmainfo \
98	m4 \
99	${_makewhatis} \
100	${_man} \
101	mandoc \
102	mesg \
103	minigzip \
104	ministat \
105	${_mkcsmapper} \
106	mkdep \
107	${_mkesdb} \
108	mkfifo \
109	mkimg \
110	mklocale \
111	mktemp \
112	mkulzma \
113	mkuzip \
114	mt \
115	ncal \
116	netstat \
117	newgrp \
118	nfsstat \
119	nice \
120	nl \
121	${_nm} \
122	numactl \
123	nohup \
124	opieinfo \
125	opiekey \
126	opiepasswd \
127	pagesize \
128	passwd \
129	paste \
130	patch \
131	pathchk \
132	perror \
133	pr \
134	printenv \
135	printf \
136	procstat \
137	protect \
138	rctl \
139	${_readelf} \
140	renice \
141	rev \
142	revoke \
143	rpcinfo \
144	rs \
145	rup \
146	rusers \
147	rwall \
148	script \
149	sed \
150	send-pr \
151	seq \
152	shar \
153	showmount \
154	${_size} \
155	sockstat \
156	soelim \
157	sort \
158	split \
159	stat \
160	stdbuf \
161	${_strings} \
162	su \
163	systat \
164	tabs \
165	tail \
166	tar \
167	tcopy \
168	tee \
169	${_tests} \
170	time \
171	timeout \
172	tip \
173	top \
174	touch \
175	tput \
176	tr \
177	true \
178	truncate \
179	${_truss} \
180	tset \
181	tsort \
182	tty \
183	uname \
184	unexpand \
185	uniq \
186	unzip \
187	units \
188	unvis \
189	uudecode \
190	uuencode \
191	vis \
192	vmstat \
193	w \
194	wall \
195	wc \
196	what \
197	whereis \
198	which \
199	whois \
200	write \
201	xargs \
202	xinstall \
203	xo \
204	xz \
205	xzdec \
206	yes \
207	${_ypcat} \
208	${_ypmatch} \
209	${_ypwhich}
210
211# NB: keep these sorted by MK_* knobs
212
213.if ${MK_AT} != "no"
214SUBDIR+=	at
215.endif
216
217.if ${MK_ATM} != "no"
218SUBDIR+=	atm
219.endif
220
221.if ${MK_BLUETOOTH} != "no"
222SUBDIR+=	bluetooth
223.endif
224
225.if ${MK_BSD_CPIO} != "no"
226SUBDIR+=	cpio
227.endif
228
229.if ${MK_CALENDAR} != "no"
230SUBDIR+=	calendar
231.endif
232
233.if ${MK_CLANG} != "no"
234_clang=		clang
235.endif
236
237.if ${MK_EE} != "no"
238SUBDIR+=	ee
239.endif
240
241.if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
242_addr2line=	addr2line
243_cxxfilt=	cxxfilt
244_elfcopy=	elfcopy
245_nm=		nm
246_readelf=	readelf
247_size=		size
248_strings=	strings
249.endif
250
251.if ${MK_FILE} != "no"
252SUBDIR+=	file
253.endif
254
255.if ${MK_FINGER} != "no"
256SUBDIR+=	finger
257.endif
258
259.if ${MK_FTP} != "no"
260SUBDIR+=	ftp
261.endif
262
263.if ${MK_GPL_DTC} != "yes"
264SUBDIR+=	dtc
265.endif
266
267.if ${MK_GROFF} != "no"
268SUBDIR+=	vgrind
269.endif
270
271.if ${MK_HESIOD} != "no"
272SUBDIR+=	hesinfo
273.endif
274
275.if ${MK_ICONV} != "no"
276_iconv=		iconv
277_mkcsmapper=	mkcsmapper
278_mkesdb=	mkesdb
279.endif
280
281.if ${MK_ISCSI} != "no"
282SUBDIR+=	iscsictl
283.endif
284
285.if ${MK_KDUMP} != "no"
286SUBDIR+=        kdump
287.if ${MACHINE_ARCH} != "aarch64" # ARM64TODO truss does not build
288SUBDIR+=        truss
289.endif
290.endif
291
292.if ${MK_KERBEROS_SUPPORT} != "no"
293SUBDIR+=	compile_et
294.endif
295
296.if ${MK_LDNS_UTILS} != "no"
297SUBDIR+=	drill
298SUBDIR+=	host
299.endif
300
301.if ${MK_LOCATE} != "no"
302SUBDIR+=	locate
303.endif
304
305# XXX msgs?
306.if ${MK_MAIL} != "no"
307SUBDIR+=	biff
308SUBDIR+=	from
309SUBDIR+=	mail
310SUBDIR+=	msgs
311.endif
312
313.if ${MK_MAKE} != "no"
314SUBDIR+=	bmake
315.endif
316
317.if ${MK_MAN_UTILS} != "no"
318SUBDIR+=	catman
319.if ${MK_MANDOCDB} == "no"
320_makewhatis=	makewhatis
321.endif
322_man=		man
323.endif
324
325.if ${MK_NETCAT} != "no"
326SUBDIR+=	nc
327.endif
328
329.if ${MK_NIS} != "no"
330SUBDIR+=	ypcat
331SUBDIR+=	ypmatch
332SUBDIR+=	ypwhich
333.endif
334
335.if ${MK_OPENSSH} != "no"
336SUBDIR+=	ssh-copy-id
337.endif
338
339.if ${MK_OPENSSL} != "no"
340SUBDIR+=	bc
341SUBDIR+=	chkey
342SUBDIR+=	dc
343SUBDIR+=	newkey
344.endif
345
346.if ${MK_QUOTAS} != "no"
347SUBDIR+=	quota
348.endif
349
350.if ${MK_RCMDS} != "no"
351SUBDIR+=	rlogin
352SUBDIR+=	rsh
353SUBDIR+=	ruptime
354SUBDIR+=	rwho
355.endif
356
357.if ${MK_SENDMAIL} != "no"
358SUBDIR+=	vacation
359.endif
360
361.if ${MK_TALK} != "no"
362SUBDIR+=	talk
363.endif
364
365.if ${MK_TELNET} != "no"
366SUBDIR+=	telnet
367.endif
368
369.if ${MK_TESTS} != "no"
370_tests=		tests
371.endif
372
373.if ${MK_TEXTPROC} != "no"
374SUBDIR+=	checknr
375SUBDIR+=	colcrt
376SUBDIR+=	ul
377.endif
378
379.if ${MK_TFTP} != "no"
380SUBDIR+=	tftp
381.endif
382
383.if ${MK_TOOLCHAIN} != "no"
384SUBDIR+=	ar
385SUBDIR+=	c89
386SUBDIR+=	c99
387SUBDIR+=	ctags
388SUBDIR+=	file2c
389.if ${MACHINE_ARCH} != "aarch64" # ARM64TODO gprof does not build
390SUBDIR+=	gprof
391.endif
392SUBDIR+=	indent
393SUBDIR+=	lex
394SUBDIR+=	mkstr
395SUBDIR+=	rpcgen
396SUBDIR+=	unifdef
397.if ${MACHINE_ARCH} != "aarch64" # ARM64TODO xlint does not build
398SUBDIR+=	xlint
399.endif
400SUBDIR+=	xstr
401SUBDIR+=	yacc
402.endif
403
404.if ${MK_VI} != "no"
405SUBDIR+=	vi
406.endif
407
408.if ${MK_VT} != "no"
409SUBDIR+=	vtfontcvt
410.endif
411
412.if ${MK_USB} != "no"
413SUBDIR+=	usbhidaction
414SUBDIR+=	usbhidctl
415.endif
416
417.if ${MK_UTMPX} != "no"
418SUBDIR+=	last
419SUBDIR+=	users
420SUBDIR+=	who
421.endif
422
423.if ${MK_SVN} == "yes" || ${MK_SVNLITE} == "yes"
424SUBDIR+=	svn
425.endif
426
427.include <bsd.arch.inc.mk>
428
429SUBDIR:=	${SUBDIR:O}
430
431SUBDIR_PARALLEL=
432
433.include <bsd.subdir.mk>
434