xref: /freebsd/usr.bin/Makefile (revision de7df74b4855cd9bdd01583a12409d5b1e6da354)
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	demandoc \
41	dirname \
42	dpv \
43	du \
44	elf2aout \
45	${_elfcopy} \
46	elfdump \
47	enigma \
48	env \
49	expand \
50	false \
51	fetch \
52	find \
53	fmt \
54	fold \
55	fstat \
56	fsync \
57	gcore \
58	gencat \
59	getconf \
60	getent \
61	getopt \
62	grep \
63	gzip \
64	head \
65	hexdump \
66	${_iconv} \
67	id \
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	lock \
88	lockf \
89	logger \
90	login \
91	logins \
92	logname \
93	look \
94	lorder \
95	lsvfs \
96	lzmainfo \
97	m4 \
98	${_makewhatis} \
99	${_man} \
100	mandoc \
101	mesg \
102	minigzip \
103	ministat \
104	${_mkcsmapper} \
105	mkdep \
106	${_mkesdb} \
107	mkfifo \
108	mkimg \
109	mklocale \
110	mktemp \
111	mkulzma \
112	mkuzip \
113	mt \
114	ncal \
115	netstat \
116	newgrp \
117	nfsstat \
118	nice \
119	nl \
120	${_nm} \
121	nohup \
122	opieinfo \
123	opiekey \
124	opiepasswd \
125	pagesize \
126	passwd \
127	paste \
128	patch \
129	pathchk \
130	perror \
131	pr \
132	printenv \
133	printf \
134	procstat \
135	protect \
136	rctl \
137	${_readelf} \
138	renice \
139	rev \
140	revoke \
141	rpcinfo \
142	rs \
143	rup \
144	rusers \
145	rwall \
146	script \
147	sed \
148	send-pr \
149	seq \
150	shar \
151	showmount \
152	${_size} \
153	sockstat \
154	soeliminate \
155	sort \
156	split \
157	stat \
158	stdbuf \
159	${_strings} \
160	su \
161	systat \
162	tabs \
163	tail \
164	tar \
165	tcopy \
166	tee \
167	${_tests} \
168	time \
169	timeout \
170	tip \
171	top \
172	touch \
173	tput \
174	tr \
175	true \
176	truncate \
177	${_truss} \
178	tset \
179	tsort \
180	tty \
181	uname \
182	unexpand \
183	uniq \
184	unzip \
185	units \
186	unvis \
187	uudecode \
188	uuencode \
189	vis \
190	vmstat \
191	w \
192	wall \
193	wc \
194	what \
195	whereis \
196	which \
197	whois \
198	write \
199	xargs \
200	xinstall \
201	xo \
202	xz \
203	xzdec \
204	yes \
205	${_ypcat} \
206	${_ypmatch} \
207	${_ypwhich}
208
209# NB: keep these sorted by MK_* knobs
210
211.if ${MK_AT} != "no"
212SUBDIR+=	at
213.endif
214
215.if ${MK_ATM} != "no"
216SUBDIR+=	atm
217.endif
218
219.if ${MK_BLUETOOTH} != "no"
220SUBDIR+=	bluetooth
221.endif
222
223.if ${MK_BSD_CPIO} != "no"
224SUBDIR+=	cpio
225.endif
226
227.if ${MK_CALENDAR} != "no"
228SUBDIR+=	calendar
229.endif
230
231.if ${MK_CLANG} != "no"
232_clang=		clang
233.endif
234
235.if ${MK_EE} != "no"
236SUBDIR+=	ee
237.endif
238
239.if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
240_addr2line=	addr2line
241_cxxfilt=	cxxfilt
242_elfcopy=	elfcopy
243_nm=		nm
244_readelf=	readelf
245_size=		size
246_strings=	strings
247.endif
248
249.if ${MK_FILE} != "no"
250SUBDIR+=	file
251.endif
252
253.if ${MK_FINGER} != "no"
254SUBDIR+=	finger
255.endif
256
257.if ${MK_FMAKE} != "no"
258SUBDIR+=	make
259.endif
260
261.if ${MK_FTP} != "no"
262SUBDIR+=	ftp
263.endif
264
265.if ${MK_GPL_DTC} != "yes"
266SUBDIR+=	dtc
267.endif
268
269.if ${MK_GROFF} != "no"
270SUBDIR+=	vgrind
271.endif
272
273.if ${MK_HESIOD} != "no"
274SUBDIR+=	hesinfo
275.endif
276
277.if ${MK_ICONV} != "no"
278_iconv=		iconv
279_mkcsmapper=	mkcsmapper
280_mkesdb=	mkesdb
281.endif
282
283.if ${MK_ISCSI} != "no"
284SUBDIR+=	iscsictl
285.endif
286
287.if ${MK_KDUMP} != "no"
288SUBDIR+=        kdump
289.if ${MACHINE_ARCH} != "aarch64" # ARM64TODO truss does not build
290SUBDIR+=        truss
291.endif
292.endif
293
294.if ${MK_KERBEROS_SUPPORT} != "no"
295SUBDIR+=	compile_et
296.endif
297
298.if ${MK_LDNS_UTILS} != "no"
299SUBDIR+=	drill
300SUBDIR+=	host
301.endif
302
303.if ${MK_LOCATE} != "no"
304SUBDIR+=	locate
305.endif
306
307# XXX msgs?
308.if ${MK_MAIL} != "no"
309SUBDIR+=	biff
310SUBDIR+=	from
311SUBDIR+=	mail
312SUBDIR+=	msgs
313.endif
314
315.if ${MK_MAKE} != "no"
316SUBDIR+=	bmake
317.endif
318
319.if ${MK_MAN_UTILS} != "no"
320SUBDIR+=	catman
321_makewhatis=	makewhatis
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