Makefile revision 255570
1196212Sscottl#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2196212Sscottl# $FreeBSD: head/usr.bin/Makefile 255570 2013-09-14 15:29:06Z trasz $
3196212Sscottl
4196212Sscottl.include <bsd.own.mk>
5196212Sscottl
6196212Sscottl# XXX MISSING:		deroff diction graph learn plot
7196212Sscottl#			spell spline struct xsend
8196212Sscottl# XXX Use GNU versions: diff ld patch
9196212Sscottl# Moved to secure: bdes
10196212Sscottl#
11196212Sscottl
12196212SscottlSUBDIR=	alias \
13196212Sscottl	apply \
14196212Sscottl	asa \
15196212Sscottl	${_atf} \
16196212Sscottl	awk \
17196212Sscottl	banner \
18196212Sscottl	basename \
19196212Sscottl	brandelf \
20196212Sscottl	bsdiff \
21196212Sscottl	bzip2 \
22196212Sscottl	bzip2recover \
23196212Sscottl	cap_mkdb \
24196212Sscottl	chat \
25196212Sscottl	chpass \
26196212Sscottl	cksum \
27196212Sscottl	${_clang} \
28196212Sscottl	cmp \
29196212Sscottl	col \
30196212Sscottl	colldef \
31196212Sscottl	colrm \
32196212Sscottl	column \
33196212Sscottl	comm \
34196212Sscottl	compress \
35196212Sscottl	cpuset \
36196212Sscottl	csplit \
37196212Sscottl	ctlstat \
38196212Sscottl	cut \
39196212Sscottl	dirname \
40196212Sscottl	dtc \
41196212Sscottl	du \
42196212Sscottl	ee \
43196212Sscottl	elf2aout \
44196212Sscottl	elfdump \
45196212Sscottl	enigma \
46196212Sscottl	env \
47196212Sscottl	expand \
48196212Sscottl	false \
49196212Sscottl	fetch \
50196212Sscottl	file \
51196212Sscottl	find \
52196212Sscottl	finger \
53196212Sscottl	fmt \
54196212Sscottl	fold \
55196212Sscottl	fstat \
56196212Sscottl	fsync \
57196212Sscottl	ftp \
58196212Sscottl	gcore \
59196212Sscottl	gencat \
60196212Sscottl	getconf \
61196212Sscottl	getent \
62196212Sscottl	getopt \
63196212Sscottl	grep \
64196212Sscottl	gzip \
65196212Sscottl	head \
66196212Sscottl	hexdump \
67196212Sscottl	${_iconv} \
68196212Sscottl	id \
69196212Sscottl	ipcrm \
70196212Sscottl	ipcs \
71196212Sscottl	iscsictl \
72215046Sjhb	join \
73196212Sscottl	jot \
74196212Sscottl	${_kdump} \
75196212Sscottl	keylogin \
76196212Sscottl	keylogout \
77196212Sscottl	killall \
78196212Sscottl	ktrace \
79196212Sscottl	ktrdump \
80196212Sscottl	lam \
81196212Sscottl	lastcomm \
82196212Sscottl	ldd \
83196212Sscottl	leave \
84196212Sscottl	less \
85196212Sscottl	lessecho \
86215046Sjhb	lesskey \
87196212Sscottl	limits \
88215046Sjhb	locale \
89196212Sscottl	lock \
90196212Sscottl	lockf \
91215046Sjhb	logger \
92215046Sjhb	login \
93215046Sjhb	logins \
94215046Sjhb	logname \
95196212Sscottl	look \
96196212Sscottl	lorder \
97196212Sscottl	lsvfs \
98196212Sscottl	lzmainfo \
99215046Sjhb	m4 \
100196212Sscottl	${_makewhatis} \
101215046Sjhb	${_man} \
102196212Sscottl	mandoc \
103196212Sscottl	mesg \
104196212Sscottl	minigzip \
105196212Sscottl	ministat \
106196212Sscottl	${_mkcsmapper} \
107196212Sscottl	mkdep \
108196212Sscottl	${_mkesdb} \
109196212Sscottl	mkfifo \
110196212Sscottl	mklocale \
111196212Sscottl	mktemp \
112196212Sscottl	mkulzma \
113196212Sscottl	mkuzip \
114196212Sscottl	mt \
115215046Sjhb	ncal \
116196212Sscottl	netstat \
117215046Sjhb	newgrp \
118196212Sscottl	nfsstat \
119196212Sscottl	nice \
120196212Sscottl	nl \
121196212Sscottl	nohup \
122196212Sscottl	opieinfo \
123196212Sscottl	opiekey \
124196212Sscottl	opiepasswd \
125196212Sscottl	pagesize \
126196212Sscottl	passwd \
127196212Sscottl	paste \
128196212Sscottl	patch \
129196212Sscottl	pathchk \
130196212Sscottl	perror \
131196212Sscottl	pr \
132196212Sscottl	printenv \
133196212Sscottl	printf \
134196212Sscottl	procstat \
135215046Sjhb	rctl \
136196212Sscottl	renice \
137196212Sscottl	rev \
138196212Sscottl	revoke \
139196212Sscottl	rpcinfo \
140196212Sscottl	rs \
141196212Sscottl	rup \
142196212Sscottl	rusers \
143196212Sscottl	rwall \
144196212Sscottl	script \
145215046Sjhb	sed \
146196212Sscottl	seq \
147215046Sjhb	shar \
148196212Sscottl	showmount \
149196212Sscottl	sockstat \
150215046Sjhb	sort \
151215046Sjhb	split \
152215046Sjhb	stat \
153215046Sjhb	stdbuf \
154196212Sscottl	su \
155196212Sscottl	systat \
156215046Sjhb	tabs \
157196212Sscottl	tail \
158215046Sjhb	talk \
159215046Sjhb	tar \
160215046Sjhb	tcopy \
161215046Sjhb	tee \
162196212Sscottl	tftp \
163196212Sscottl	time \
164196212Sscottl	tip \
165196212Sscottl	top \
166196212Sscottl	touch \
167196212Sscottl	tput \
168196212Sscottl	tr \
169196212Sscottl	true \
170196212Sscottl	truncate \
171196212Sscottl	${_truss} \
172196212Sscottl	tset \
173196212Sscottl	tsort \
174196212Sscottl	tty \
175196212Sscottl	uname \
176196212Sscottl	unexpand \
177196212Sscottl	uniq \
178196212Sscottl	unzip \
179196212Sscottl	units \
180196212Sscottl	unvis \
181196212Sscottl	uudecode \
182196212Sscottl	uuencode \
183196212Sscottl	vi \
184196212Sscottl	vis \
185196212Sscottl	vmstat \
186196212Sscottl	w \
187196212Sscottl	wall \
188196212Sscottl	wc \
189196212Sscottl	what \
190196212Sscottl	whereis \
191196212Sscottl	which \
192196212Sscottl	whois \
193196212Sscottl	write \
194196212Sscottl	xargs \
195196212Sscottl	xinstall \
196196212Sscottl	${_xlint} \
197196212Sscottl	${_xstr} \
198196212Sscottl	xz \
199196212Sscottl	xzdec \
200196212Sscottl	${_yacc} \
201215046Sjhb	yes \
202196212Sscottl	${_ypcat} \
203196212Sscottl	${_ypmatch} \
204196212Sscottl	${_ypwhich}
205215046Sjhb
206196212Sscottl# NB: keep these sorted by MK_* knobs
207196212Sscottl
208196212Sscottl.if ${MK_AT} != "no"
209196212SscottlSUBDIR+=	at
210196212Sscottl.endif
211196212Sscottl
212196212Sscottl.if ${MK_ATF} != "no"
213196212Sscottl_atf=		atf
214196212Sscottl.endif
215196212Sscottl
216196212Sscottl.if ${MK_ATM} != "no"
217196212SscottlSUBDIR+=	atm
218196212Sscottl.endif
219215046Sjhb
220196212Sscottl.if ${MK_BIND_UTILS} != "no"
221215046SjhbSUBDIR+=	dig
222196212SscottlSUBDIR+=	host
223196212SscottlSUBDIR+=	nslookup
224215046SjhbSUBDIR+=	nsupdate
225215046Sjhb.endif
226215046Sjhb
227215046Sjhb.if ${MK_BLUETOOTH} != "no"
228196212SscottlSUBDIR+=	bluetooth
229196212Sscottl.endif
230196212Sscottl
231196212Sscottl.if ${MK_BSD_CPIO} != "no"
232215046SjhbSUBDIR+=	cpio
233196212Sscottl.endif
234196212Sscottl
235196212Sscottl.if ${MK_CALENDAR} != "no"
236196212SscottlSUBDIR+=	calendar
237196212Sscottl.endif
238196212Sscottl
239196212Sscottl.if ${MK_CLANG} != "no"
240196212Sscottl_clang=		clang
241196212Sscottl.endif
242196212Sscottl
243215046Sjhb.if ${MK_GROFF} != "no"
244196212SscottlSUBDIR+=	vgrind
245196212Sscottl.endif
246196212Sscottl
247196212Sscottl.if ${MK_HESIOD} != "no"
248196212SscottlSUBDIR+=	hesinfo
249215046Sjhb.endif
250196212Sscottl
251215046Sjhb.if ${MK_ICONV} != "no"
252215046Sjhb_iconv=		iconv
253215046Sjhb_mkcsmapper=	mkcsmapper
254196212Sscottl_mkesdb=	mkesdb
255196212Sscottl.endif
256215046Sjhb
257196212Sscottl.if ${MK_KDUMP} != "no"
258196212SscottlSUBDIR+=        kdump
259SUBDIR+=        truss
260.endif
261
262.if ${MK_KERBEROS_SUPPORT} != "no"
263SUBDIR+=	compile_et
264.endif
265
266.if ${MK_LDNS_UTILS} != "no"
267SUBDIR+=	host
268.endif
269
270.if ${MK_LIBTHR} != "no"
271SUBDIR+=	csup
272.endif
273
274.if ${MK_LOCATE} != "no"
275SUBDIR+=	locate
276.endif
277
278# XXX msgs?
279.if ${MK_MAIL} != "no"
280SUBDIR+=	biff
281SUBDIR+=	from
282SUBDIR+=	mail
283SUBDIR+=	msgs
284.endif
285
286.if ${MK_MAKE} != "no"
287.if ${MK_BMAKE} != "no"
288SUBDIR+=	bmake
289.else
290SUBDIR+=	make
291.endif
292.endif
293
294.if ${MK_MAN_UTILS} != "no"
295SUBDIR+=	catman
296_makewhatis=	makewhatis
297_man=		man
298.endif
299
300.if ${MK_NETCAT} != "no"
301SUBDIR+=	nc
302.endif
303
304.if ${MK_NIS} != "no"
305SUBDIR+=	ypcat
306SUBDIR+=	ypmatch
307SUBDIR+=	ypwhich
308.endif
309
310.if ${MK_OPENSSH} != "no"
311SUBDIR+=	ssh-copy-id
312.endif
313
314.if ${MK_OPENSSL} != "no"
315SUBDIR+=	bc
316SUBDIR+=	chkey
317SUBDIR+=	dc
318SUBDIR+=	newkey
319.endif
320
321.if ${MK_QUOTAS} != "no"
322SUBDIR+=	quota
323.endif
324
325.if ${MK_RCMDS} != "no"
326SUBDIR+=	rlogin
327SUBDIR+=	rsh
328SUBDIR+=	ruptime
329SUBDIR+=	rwho
330.endif
331
332.if ${MK_SENDMAIL} != "no"
333SUBDIR+=	vacation
334.endif
335
336.if ${MK_TELNET} != "no"
337SUBDIR+=	telnet
338.endif
339
340.if ${MK_TEXTPROC} != "no"
341SUBDIR+=	checknr
342SUBDIR+=	colcrt
343SUBDIR+=	ul
344.endif
345
346.if ${MK_TOOLCHAIN} != "no"
347SUBDIR+=	ar
348SUBDIR+=	c89
349SUBDIR+=	c99
350SUBDIR+=	ctags
351SUBDIR+=	file2c
352SUBDIR+=	gprof
353SUBDIR+=	indent
354SUBDIR+=	lex
355SUBDIR+=	mkstr
356SUBDIR+=	rpcgen
357SUBDIR+=	unifdef
358SUBDIR+=	xlint
359SUBDIR+=	xstr
360SUBDIR+=	yacc
361.endif
362
363.if ${MK_USB} != "no"
364SUBDIR+=	usbhidaction
365SUBDIR+=	usbhidctl
366.endif
367
368.if ${MK_UTMPX} != "no"
369SUBDIR+=	last
370SUBDIR+=	users
371SUBDIR+=	who
372.endif
373
374.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || \
375    ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "i386" || \
376    (${MACHINE_ARCH} == "armv6" && ${COMPILER_TYPE} == "clang")
377.if ${MK_SVN} == "yes" || ${MK_SVNLITE} == "yes"
378SUBDIR+=	svn
379.endif
380.endif
381
382.include <bsd.arch.inc.mk>
383
384SUBDIR:=	${SUBDIR:O}
385
386.include <bsd.subdir.mk>
387