xref: /freebsd/usr.bin/Makefile (revision 641a6cfb86023499caafe26a4d821a0b885cf00b)
1#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2# $FreeBSD$
3
4.include <bsd.own.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=	alias \
13	apply \
14	asa \
15	awk \
16	banner \
17	basename \
18	brandelf \
19	bsdiff \
20	bzip2 \
21	bzip2recover \
22	cap_mkdb \
23	chat \
24	chpass \
25	cksum \
26	${_clang} \
27	cmp \
28	col \
29	colldef \
30	colrm \
31	column \
32	comm \
33	compress \
34	cpuset \
35	csplit \
36	ctlstat \
37	cut \
38	dirname \
39	du \
40	ee \
41	elf2aout \
42	elfdump \
43	enigma \
44	env \
45	expand \
46	false \
47	fetch \
48	file \
49	find \
50	finger \
51	fmt \
52	fold \
53	fstat \
54	fsync \
55	ftp \
56	gcore \
57	gencat \
58	getconf \
59	getent \
60	getopt \
61	grep \
62	gzip \
63	head \
64	hexdump \
65	${_iconv} \
66	id \
67	ipcrm \
68	ipcs \
69	join \
70	jot \
71	kdump \
72	keylogin \
73	keylogout \
74	killall \
75	ktrace \
76	ktrdump \
77	lam \
78	lastcomm \
79	ldd \
80	leave \
81	less \
82	lessecho \
83	lesskey \
84	limits \
85	locale \
86	lock \
87	lockf \
88	logger \
89	login \
90	logins \
91	logname \
92	look \
93	lorder \
94	lsvfs \
95	lzmainfo \
96	m4 \
97	${_makewhatis} \
98	${_man} \
99	mesg \
100	minigzip \
101	ministat \
102	${_mkcsmapper} \
103	mkdep \
104	${_mkesdb} \
105	mkfifo \
106	mklocale \
107	mktemp \
108	mkulzma \
109	mkuzip \
110	mt \
111	ncal \
112	netstat \
113	newgrp \
114	nfsstat \
115	nice \
116	nl \
117	nohup \
118	opieinfo \
119	opiekey \
120	opiepasswd \
121	pagesize \
122	passwd \
123	paste \
124	pathchk \
125	perror \
126	pr \
127	printenv \
128	printf \
129	procstat \
130	rctl \
131	renice \
132	rev \
133	revoke \
134	rpcinfo \
135	rs \
136	rup \
137	rusers \
138	rwall \
139	script \
140	sed \
141	seq \
142	shar \
143	showmount \
144	sockstat \
145	sort \
146	split \
147	stat \
148	stdbuf \
149	su \
150	systat \
151	tabs \
152	tail \
153	talk \
154	tar \
155	tcopy \
156	tee \
157	tftp \
158	time \
159	tip \
160	top \
161	touch \
162	tput \
163	tr \
164	true \
165	truncate \
166	truss \
167	tset \
168	tsort \
169	tty \
170	uname \
171	unexpand \
172	uniq \
173	unzip \
174	units \
175	unvis \
176	uudecode \
177	uuencode \
178	vi \
179	vis \
180	vmstat \
181	w \
182	wall \
183	wc \
184	what \
185	whereis \
186	which \
187	whois \
188	write \
189	xargs \
190	xinstall \
191	${_xlint} \
192	${_xstr} \
193	xz \
194	xzdec \
195	${_yacc} \
196	yes \
197	${_ypcat} \
198	${_ypmatch} \
199	${_ypwhich}
200
201# NB: keep these sorted by MK_* knobs
202
203.if ${MK_AT} != "no"
204SUBDIR+=	at
205.endif
206
207.if ${MK_ATM} != "no"
208SUBDIR+=	atm
209.endif
210
211.if ${MK_MAN_UTILS} != "no"
212SUBDIR+=	catman
213.endif
214
215.if ${MK_BIND_UTILS} != "no"
216SUBDIR+=	dig
217SUBDIR+=	host
218SUBDIR+=	nslookup
219SUBDIR+=	nsupdate
220.endif
221
222.if ${MK_BLUETOOTH} != "no"
223SUBDIR+=	bluetooth
224.endif
225
226.if ${MK_BSD_CPIO} != "no"
227SUBDIR+=	cpio
228.endif
229
230.if ${MK_CALENDAR} != "no"
231SUBDIR+=	calendar
232.endif
233
234.if ${MK_CLANG} != "no"
235_clang=		clang
236.endif
237
238.if ${MK_HESIOD} != "no"
239SUBDIR+=	hesinfo
240.endif
241
242.if ${MK_ICONV} != "no"
243_iconv=		iconv
244_mkcsmapper=	mkcsmapper
245_mkesdb=	mkesdb
246.endif
247
248.if ${MK_GROFF} != "no"
249SUBDIR+=	vgrind
250.endif
251
252.if ${MK_OPENSSL} != "no"
253SUBDIR+=	bc
254SUBDIR+=	chkey
255SUBDIR+=	dc
256SUBDIR+=	newkey
257.endif
258
259.if ${MK_LIBTHR} != "no"
260SUBDIR+=	csup
261.endif
262
263.if ${MK_LOCATE} != "no"
264SUBDIR+=	locate
265.endif
266
267.if ${MK_KERBEROS_SUPPORT} != "no"
268SUBDIR+=	compile_et
269.endif
270
271# XXX msgs?
272.if ${MK_MAIL} != "no"
273SUBDIR+=	biff
274SUBDIR+=	from
275SUBDIR+=	mail
276SUBDIR+=	msgs
277.endif
278
279.if ${MK_MAKE} != "no"
280SUBDIR+=	make
281.endif
282
283.if ${MK_MAN_UTILS} != "no"
284_makewhatis=	makewhatis
285_man=		man
286.endif
287
288.if ${MK_NETCAT} != "no"
289SUBDIR+=	nc
290.endif
291
292.if ${MK_NIS} != "no"
293SUBDIR+=	ypcat
294SUBDIR+=	ypmatch
295SUBDIR+=	ypwhich
296.endif
297
298.if ${MK_QUOTAS} != "no"
299SUBDIR+=	quota
300.endif
301
302.if ${MK_RCMDS} != "no"
303SUBDIR+=	rlogin
304SUBDIR+=	rsh
305SUBDIR+=	ruptime
306SUBDIR+=	rwho
307.endif
308
309.if ${MK_SENDMAIL} != "no"
310SUBDIR+=	vacation
311.endif
312
313.if ${MK_TELNET} != "no"
314SUBDIR+=	telnet
315.endif
316
317.if ${MK_TEXTPROC} != "no"
318SUBDIR+=	checknr
319SUBDIR+=	colcrt
320SUBDIR+=	ul
321.endif
322
323.if ${MK_TOOLCHAIN} != "no"
324SUBDIR+=	ar
325SUBDIR+=	c89
326SUBDIR+=	c99
327SUBDIR+=	ctags
328SUBDIR+=	file2c
329SUBDIR+=	gprof
330SUBDIR+=	indent
331SUBDIR+=	lex
332SUBDIR+=	mkstr
333SUBDIR+=	rpcgen
334SUBDIR+=	unifdef
335SUBDIR+=	xlint
336SUBDIR+=	xstr
337SUBDIR+=	yacc
338.endif
339
340.if ${MK_USB} != "no"
341SUBDIR+=	usbhidaction
342SUBDIR+=	usbhidctl
343.endif
344
345.if ${MK_UTMPX} != "no"
346SUBDIR+=	last
347SUBDIR+=	users
348SUBDIR+=	who
349.endif
350
351.include <bsd.arch.inc.mk>
352
353SUBDIR:=	${SUBDIR:O}
354
355.include <bsd.subdir.mk>
356