xref: /freebsd/usr.bin/Makefile (revision b410b62c85f7fabc37e41dae74dacbc57a4cba35)
1839f16abSGarrett Wollman#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2c3aac50fSPeter Wemm# $FreeBSD$
39b50d902SRodney W. Grimes
4c6063d0dSWarner Losh.include <src.opts.mk>
5e1fe3dbaSRuslan Ermilov
60a50d08dSJordan K. Hubbard# XXX MISSING:		deroff diction graph learn plot
7861999b4SBruce Evans#			spell spline struct xsend
8023f0373SGordon Tetlow# XXX Use GNU versions: diff ld patch
973407b34SGarrett Wollman# Moved to secure: bdes
1073407b34SGarrett Wollman#
11cfad5290SMarcel Moolenaar
125cd19a3cSGarrett WollmanSUBDIR=	alias \
135cd19a3cSGarrett Wollman	apply \
14cba9c8bdSTim J. Robbins	asa \
159a1523bcSDavid E. O'Brien	awk \
16cb7f1224SGary Palmer	banner \
17cb7f1224SGary Palmer	basename \
186eea92a4SDavid E. O'Brien	brandelf \
19ba10db99SColin Percival	bsdiff \
20d6a9fd06SDavid E. O'Brien	bzip2 \
21bc366011SDavid E. O'Brien	bzip2recover \
22cb7f1224SGary Palmer	cap_mkdb \
23cb7f1224SGary Palmer	chat \
24cb7f1224SGary Palmer	chpass \
25cb7f1224SGary Palmer	cksum \
266513cfc8SRoman Divacky	${_clang} \
27cb7f1224SGary Palmer	cmp \
28cb7f1224SGary Palmer	col \
29cb7f1224SGary Palmer	colldef \
30cb7f1224SGary Palmer	colrm \
31cb7f1224SGary Palmer	column \
32cb7f1224SGary Palmer	comm \
33cb7f1224SGary Palmer	compress \
34bc72ba9cSJeff Roberson	cpuset \
35ea9e961cSTim J. Robbins	csplit \
36130f4520SKenneth D. Merry	ctlstat \
37cb7f1224SGary Palmer	cut \
38cb7f1224SGary Palmer	dirname \
39cb7f1224SGary Palmer	du \
40cb7f1224SGary Palmer	ee \
41cbb66355SDavid E. O'Brien	elf2aout \
428237286eSDavid E. O'Brien	elfdump \
43489c66feSJoerg Wunsch	enigma \
44cb7f1224SGary Palmer	env \
45cb7f1224SGary Palmer	expand \
46cb7f1224SGary Palmer	false \
47cb7f1224SGary Palmer	fetch \
48cb7f1224SGary Palmer	file \
49cb7f1224SGary Palmer	find \
50cb7f1224SGary Palmer	finger \
5107ea9a7cSXin LI	fmt \
52cb7f1224SGary Palmer	fold \
5387bc830fSDima Ruban	fstat \
544aeb1c05SPaul Saab	fsync \
55cb7f1224SGary Palmer	ftp \
56155c182aSPeter Wemm	gcore \
57cb7f1224SGary Palmer	gencat \
58298f4dc3SJake Burkholder	getconf \
59c912a3f7SMaxim Konovalov	getent \
60cb7f1224SGary Palmer	getopt \
61a23d1c70SDavid E. O'Brien	grep \
629a9ea25fSXin LI	gzip \
63cb7f1224SGary Palmer	head \
64cb7f1224SGary Palmer	hexdump \
65ad30f8e7SGabor Kovesdan	${_iconv} \
66cb7f1224SGary Palmer	id \
67cb7f1224SGary Palmer	ipcrm \
68cb7f1224SGary Palmer	ipcs \
69009ea47eSEdward Tomasz Napierala	iscsictl \
70cb7f1224SGary Palmer	join \
71cb7f1224SGary Palmer	jot \
72e5deeefeSDavid E. O'Brien	${_kdump} \
73cb7f1224SGary Palmer	keylogin \
74cb7f1224SGary Palmer	keylogout \
75cb7f1224SGary Palmer	killall \
76cb7f1224SGary Palmer	ktrace \
77ed7a104fSJake Burkholder	ktrdump \
78cb7f1224SGary Palmer	lam \
79cb7f1224SGary Palmer	lastcomm \
80aaa41712SDoug Rabson	ldd \
819106cde5SBruce Evans	leave \
826f7d2d90SPaul Saab	less \
836f7d2d90SPaul Saab	lessecho \
846f7d2d90SPaul Saab	lesskey \
85cb7f1224SGary Palmer	limits \
8693cdc37dSAlexey Zelkin	locale \
87cb7f1224SGary Palmer	lock \
88cb7f1224SGary Palmer	lockf \
89cb7f1224SGary Palmer	logger \
90cb7f1224SGary Palmer	login \
91bd43dc42SDag-Erling Smørgrav	logins \
92cb7f1224SGary Palmer	logname \
93cb7f1224SGary Palmer	look \
94cb7f1224SGary Palmer	lorder \
95cb7f1224SGary Palmer	lsvfs \
9681ad8388SMartin Matuska	lzmainfo \
97cb7f1224SGary Palmer	m4 \
9807e547feSJung-uk Kim	${_makewhatis} \
99023f0373SGordon Tetlow	${_man} \
100cc4842a1SUlrich Spörlein	mandoc \
101cb7f1224SGary Palmer	mesg \
1029106cde5SBruce Evans	minigzip \
103a2854cdfSRuslan Ermilov	ministat \
104ad30f8e7SGabor Kovesdan	${_mkcsmapper} \
105cb7f1224SGary Palmer	mkdep \
106ad30f8e7SGabor Kovesdan	${_mkesdb} \
107cb7f1224SGary Palmer	mkfifo \
10881a44173SMarcel Moolenaar	mkimg \
109cb7f1224SGary Palmer	mklocale \
110cb7f1224SGary Palmer	mktemp \
111f9b897baSJosh Paetzel	mkulzma \
1125cf3bf70SMax Khon	mkuzip \
113e4dc55c3SDoug Rabson	mt \
114cb7f1224SGary Palmer	ncal \
115cb7f1224SGary Palmer	netstat \
116776c387aSTim J. Robbins	newgrp \
117cb7f1224SGary Palmer	nfsstat \
118cb7f1224SGary Palmer	nice \
119f2155981SBrian Somers	nl \
120cb7f1224SGary Palmer	nohup \
121cb7f1224SGary Palmer	opieinfo \
122cb7f1224SGary Palmer	opiekey \
123cb7f1224SGary Palmer	opiepasswd \
124cb7f1224SGary Palmer	pagesize \
125cb7f1224SGary Palmer	passwd \
126cb7f1224SGary Palmer	paste \
1272dd076b8SGabor Kovesdan	patch \
128b9f63041STim J. Robbins	pathchk \
1299a3009b8SGeorge V. Neville-Neil	perror \
130cb7f1224SGary Palmer	pr \
131cb7f1224SGary Palmer	printenv \
132cb7f1224SGary Palmer	printf \
133b59f38b5SRobert Watson	procstat \
13455648840SJohn Baldwin	protect \
1356ec54a57SEdward Tomasz Napierala	rctl \
136cb7f1224SGary Palmer	renice \
137cb7f1224SGary Palmer	rev \
1387c7cef72SEd Schouten	revoke \
139cb7f1224SGary Palmer	rpcinfo \
140cb7f1224SGary Palmer	rs \
141cb7f1224SGary Palmer	rup \
142cb7f1224SGary Palmer	rusers \
143cb7f1224SGary Palmer	rwall \
144cb7f1224SGary Palmer	script \
145cb7f1224SGary Palmer	sed \
146208987a5SXin LI	seq \
147cb7f1224SGary Palmer	shar \
148cb7f1224SGary Palmer	showmount \
14928bfda34SDag-Erling Smørgrav	sockstat \
15085d7de10SGabor Kovesdan	sort \
151cb7f1224SGary Palmer	split \
152d4d239aeSDoug Barton	stat \
1536486b015SJeremie Le Hen	stdbuf \
154cb7f1224SGary Palmer	su \
1558df85cf6SDima Ruban	systat \
156743f138eSTim J. Robbins	tabs \
157cb7f1224SGary Palmer	tail \
158cb7f1224SGary Palmer	talk \
159e813a37fSTim Kientzle	tar \
160cb7f1224SGary Palmer	tcopy \
161cb7f1224SGary Palmer	tee \
162fba3cde9SJulio Merino	${_tests} \
163cb7f1224SGary Palmer	tftp \
164cb7f1224SGary Palmer	time \
165afb5951fSMark Murray	tip \
166cb7f1224SGary Palmer	top \
167cb7f1224SGary Palmer	touch \
168cb7f1224SGary Palmer	tput \
169cb7f1224SGary Palmer	tr \
170cb7f1224SGary Palmer	true \
171edeb84a1SSheldon Hearn	truncate \
172e5deeefeSDavid E. O'Brien	${_truss} \
173cb7f1224SGary Palmer	tset \
174cb7f1224SGary Palmer	tsort \
175cb7f1224SGary Palmer	tty \
176cb7f1224SGary Palmer	uname \
177cb7f1224SGary Palmer	unexpand \
178cb7f1224SGary Palmer	uniq \
1794c0191c5SRoman Divacky	unzip \
180cb7f1224SGary Palmer	units \
181cb7f1224SGary Palmer	unvis \
182cb7f1224SGary Palmer	uudecode \
183cb7f1224SGary Palmer	uuencode \
184cb7f1224SGary Palmer	vis \
1850600c890SBruce Evans	vmstat \
186cb7f1224SGary Palmer	w \
187cb7f1224SGary Palmer	wall \
188cb7f1224SGary Palmer	wc \
189cb7f1224SGary Palmer	what \
190e9a55423SJohan Karlsson	whereis \
191cb7f1224SGary Palmer	which \
192cb7f1224SGary Palmer	whois \
193cb7f1224SGary Palmer	write \
194cb7f1224SGary Palmer	xargs \
195cb7f1224SGary Palmer	xinstall \
196cfad5290SMarcel Moolenaar	${_xlint} \
197690f477dSSam Leffler	${_xstr} \
19881ad8388SMartin Matuska	xz \
19981ad8388SMartin Matuska	xzdec \
2003bc2f9a8SPoul-Henning Kamp	${_yacc} \
201cb7f1224SGary Palmer	yes \
2026c58990dSBjoern A. Zeeb	${_ypcat} \
2036c58990dSBjoern A. Zeeb	${_ypmatch} \
2046c58990dSBjoern A. Zeeb	${_ypwhich}
2055c931089SJohn Birrell
206690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
207690f477dSSam Leffler
208690f477dSSam Leffler.if ${MK_AT} != "no"
2098cfc8258SWarner LoshSUBDIR+=	at
210690f477dSSam Leffler.endif
211690f477dSSam Leffler
212e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no"
2138cfc8258SWarner LoshSUBDIR+=	atm
214d10a8d6cSRuslan Ermilov.endif
215d10a8d6cSRuslan Ermilov
216e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
2178cfc8258SWarner LoshSUBDIR+=	bluetooth
21823d1e148SMaksim Yevmenkin.endif
21923d1e148SMaksim Yevmenkin
2206973701aSDoug Barton.if ${MK_BSD_CPIO} != "no"
2218cfc8258SWarner LoshSUBDIR+=	cpio
2226973701aSDoug Barton.endif
2236973701aSDoug Barton
224e1fe3dbaSRuslan Ermilov.if ${MK_CALENDAR} != "no"
2258cfc8258SWarner LoshSUBDIR+=	calendar
226642268f4SPoul-Henning Kamp.endif
227642268f4SPoul-Henning Kamp
2286513cfc8SRoman Divacky.if ${MK_CLANG} != "no"
2296513cfc8SRoman Divacky_clang=		clang
2306513cfc8SRoman Divacky.endif
2316513cfc8SRoman Divacky
232f510ecf0SWarner Losh.if ${MK_FMAKE} != "no"
233f510ecf0SWarner LoshSUBDIR+=	make
234f510ecf0SWarner Losh.endif
235f510ecf0SWarner Losh
2368e6ee5a9SWarner Losh.if ${MK_GPL_DTC} != "yes"
2378e6ee5a9SWarner LoshSUBDIR+=	dtc
2388e6ee5a9SWarner Losh.endif
2398e6ee5a9SWarner Losh
240bd51eebfSDavid E. O'Brien.if ${MK_GROFF} != "no"
241bd51eebfSDavid E. O'BrienSUBDIR+=	vgrind
242bd51eebfSDavid E. O'Brien.endif
243bd51eebfSDavid E. O'Brien
244690f477dSSam Leffler.if ${MK_HESIOD} != "no"
2458cfc8258SWarner LoshSUBDIR+=	hesinfo
246690f477dSSam Leffler.endif
247690f477dSSam Leffler
248ad30f8e7SGabor Kovesdan.if ${MK_ICONV} != "no"
249ad30f8e7SGabor Kovesdan_iconv=		iconv
250ad30f8e7SGabor Kovesdan_mkcsmapper=	mkcsmapper
251ad30f8e7SGabor Kovesdan_mkesdb=	mkesdb
252ad30f8e7SGabor Kovesdan.endif
253ad30f8e7SGabor Kovesdan
254e5deeefeSDavid E. O'Brien.if ${MK_KDUMP} != "no"
255e5deeefeSDavid E. O'BrienSUBDIR+=        kdump
256e5deeefeSDavid E. O'BrienSUBDIR+=        truss
257e5deeefeSDavid E. O'Brien.endif
258e5deeefeSDavid E. O'Brien
259bd51eebfSDavid E. O'Brien.if ${MK_KERBEROS_SUPPORT} != "no"
260bd51eebfSDavid E. O'BrienSUBDIR+=	compile_et
26178dbe843SMarius Strobl.endif
26278dbe843SMarius Strobl
2639aad2c48SDag-Erling Smørgrav.if ${MK_LDNS_UTILS} != "no"
264fdde88bcSDag-Erling SmørgravSUBDIR+=	drill
2659aad2c48SDag-Erling SmørgravSUBDIR+=	host
2669aad2c48SDag-Erling Smørgrav.endif
2679aad2c48SDag-Erling Smørgrav
268dbdb679cSRuslan Ermilov.if ${MK_LIBTHR} != "no"
2698cfc8258SWarner LoshSUBDIR+=	csup
270a50767ebSRuslan Ermilov.endif
271d10a8d6cSRuslan Ermilov
272690f477dSSam Leffler.if ${MK_LOCATE} != "no"
2738cfc8258SWarner LoshSUBDIR+=	locate
274690f477dSSam Leffler.endif
275690f477dSSam Leffler
276690f477dSSam Leffler# XXX msgs?
277690f477dSSam Leffler.if ${MK_MAIL} != "no"
2788cfc8258SWarner LoshSUBDIR+=	biff
2798cfc8258SWarner LoshSUBDIR+=	from
2808cfc8258SWarner LoshSUBDIR+=	mail
2818cfc8258SWarner LoshSUBDIR+=	msgs
282690f477dSSam Leffler.endif
283690f477dSSam Leffler
284690f477dSSam Leffler.if ${MK_MAKE} != "no"
285d4d90f10SMarcel MoolenaarSUBDIR+=	bmake
286d4d90f10SMarcel Moolenaar.endif
287f7ab1209SPoul-Henning Kamp
28807e547feSJung-uk Kim.if ${MK_MAN_UTILS} != "no"
289bd51eebfSDavid E. O'BrienSUBDIR+=	catman
29007e547feSJung-uk Kim_makewhatis=	makewhatis
291023f0373SGordon Tetlow_man=		man
29207e547feSJung-uk Kim.endif
29307e547feSJung-uk Kim
294e1fe3dbaSRuslan Ermilov.if ${MK_NETCAT} != "no"
2958cfc8258SWarner LoshSUBDIR+=	nc
2964457bf03SXin LI.endif
2974457bf03SXin LI
298e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
2998cfc8258SWarner LoshSUBDIR+=	ypcat
3008cfc8258SWarner LoshSUBDIR+=	ypmatch
3018cfc8258SWarner LoshSUBDIR+=	ypwhich
3026c58990dSBjoern A. Zeeb.endif
3036c58990dSBjoern A. Zeeb
304b4634967SEitan Adler.if ${MK_OPENSSH} != "no"
305b4634967SEitan AdlerSUBDIR+=	ssh-copy-id
306b4634967SEitan Adler.endif
307b4634967SEitan Adler
308bd51eebfSDavid E. O'Brien.if ${MK_OPENSSL} != "no"
309bd51eebfSDavid E. O'BrienSUBDIR+=	bc
310bd51eebfSDavid E. O'BrienSUBDIR+=	chkey
311bd51eebfSDavid E. O'BrienSUBDIR+=	dc
312bd51eebfSDavid E. O'BrienSUBDIR+=	newkey
313bd51eebfSDavid E. O'Brien.endif
314bd51eebfSDavid E. O'Brien
315690f477dSSam Leffler.if ${MK_QUOTAS} != "no"
3168cfc8258SWarner LoshSUBDIR+=	quota
317690f477dSSam Leffler.endif
318690f477dSSam Leffler
319e1fe3dbaSRuslan Ermilov.if ${MK_RCMDS} != "no"
3208cfc8258SWarner LoshSUBDIR+=	rlogin
3218cfc8258SWarner LoshSUBDIR+=	rsh
3228cfc8258SWarner LoshSUBDIR+=	ruptime
3238cfc8258SWarner LoshSUBDIR+=	rwho
324c71158d4STom Rhodes.endif
325c71158d4STom Rhodes
326e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
3278cfc8258SWarner LoshSUBDIR+=	vacation
328d10a8d6cSRuslan Ermilov.endif
329d10a8d6cSRuslan Ermilov
330690f477dSSam Leffler.if ${MK_TELNET} != "no"
3318cfc8258SWarner LoshSUBDIR+=	telnet
332690f477dSSam Leffler.endif
333690f477dSSam Leffler
334e01d128aSJulio Merino.if ${MK_TESTS} != "no"
335fba3cde9SJulio Merino_tests=		tests
336e01d128aSJulio Merino.endif
337e01d128aSJulio Merino
338690f477dSSam Leffler.if ${MK_TEXTPROC} != "no"
3398cfc8258SWarner LoshSUBDIR+=	checknr
3408cfc8258SWarner LoshSUBDIR+=	colcrt
3418cfc8258SWarner LoshSUBDIR+=	ul
342690f477dSSam Leffler.endif
343690f477dSSam Leffler
344e1fe3dbaSRuslan Ermilov.if ${MK_TOOLCHAIN} != "no"
3458cfc8258SWarner LoshSUBDIR+=	ar
3468cfc8258SWarner LoshSUBDIR+=	c89
3478cfc8258SWarner LoshSUBDIR+=	c99
3488cfc8258SWarner LoshSUBDIR+=	ctags
3498cfc8258SWarner LoshSUBDIR+=	file2c
3508cfc8258SWarner LoshSUBDIR+=	gprof
3518cfc8258SWarner LoshSUBDIR+=	indent
3528cfc8258SWarner LoshSUBDIR+=	lex
3538cfc8258SWarner LoshSUBDIR+=	mkstr
3548cfc8258SWarner LoshSUBDIR+=	rpcgen
3558cfc8258SWarner LoshSUBDIR+=	unifdef
3568cfc8258SWarner LoshSUBDIR+=	xlint
3578cfc8258SWarner LoshSUBDIR+=	xstr
3588cfc8258SWarner LoshSUBDIR+=	yacc
359d10a8d6cSRuslan Ermilov.endif
360d10a8d6cSRuslan Ermilov
361d6d1ee21SWarner Losh.if ${MK_VI} != "no"
362d6d1ee21SWarner LoshSUBDIR+=	vi
363d6d1ee21SWarner Losh.endif
364d6d1ee21SWarner Losh
365*b410b62cSEd Maste.if ${MK_VT_SUPPORT} != "no"
366*b410b62cSEd MasteSUBDIR+=	vtfontcvt
367*b410b62cSEd Maste.endif
368*b410b62cSEd Maste
369e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
3708cfc8258SWarner LoshSUBDIR+=	usbhidaction
3718cfc8258SWarner LoshSUBDIR+=	usbhidctl
372d10a8d6cSRuslan Ermilov.endif
373d10a8d6cSRuslan Ermilov
3749f0c9022SEd Schouten.if ${MK_UTMPX} != "no"
3759f0c9022SEd SchoutenSUBDIR+=	last
3769f0c9022SEd SchoutenSUBDIR+=	users
3779f0c9022SEd SchoutenSUBDIR+=	who
3789f0c9022SEd Schouten.endif
3799f0c9022SEd Schouten
380937a2000SPeter Wemm.if ${MK_SVN} == "yes" || ${MK_SVNLITE} == "yes"
381937a2000SPeter WemmSUBDIR+=	svn
382937a2000SPeter Wemm.endif
383937a2000SPeter Wemm
3848cfc8258SWarner Losh.include <bsd.arch.inc.mk>
385d10a8d6cSRuslan Ermilov
3868cfc8258SWarner LoshSUBDIR:=	${SUBDIR:O}
38769618fcfSPyun YongHyeon
38854ff5d73SDimitry AndricSUBDIR_PARALLEL=
38954ff5d73SDimitry Andric
3909b50d902SRodney W. Grimes.include <bsd.subdir.mk>
391