xref: /freebsd-13.1/usr.bin/Makefile (revision a5186406)
1839f16abSGarrett Wollman#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2c3aac50fSPeter Wemm# $FreeBSD$
39b50d902SRodney W. Grimes
4c501e7deSBaptiste Daroussin.include <src.opts.mk>
5e1fe3dbaSRuslan Ermilov
6728fb54dSEd MasteSUBDIR=	alias \
75cd19a3cSGarrett Wollman	apply \
8cba9c8bdSTim J. Robbins	asa \
99a1523bcSDavid E. O'Brien	awk \
109ddaa99dSEmmanuel Vadot	backlight \
11cb7f1224SGary Palmer	banner \
12cb7f1224SGary Palmer	basename \
13af21e005SHans Petter Selasky	beep \
146eea92a4SDavid E. O'Brien	brandelf \
15cdf63a70SMartin Matuska	bsdcat \
16ba10db99SColin Percival	bsdiff \
17d6a9fd06SDavid E. O'Brien	bzip2 \
18bc366011SDavid E. O'Brien	bzip2recover \
19cb7f1224SGary Palmer	cap_mkdb \
20cb7f1224SGary Palmer	chat \
21cb7f1224SGary Palmer	chpass \
22cb7f1224SGary Palmer	cksum \
23cb7f1224SGary Palmer	cmp \
24cb7f1224SGary Palmer	col \
25cb7f1224SGary Palmer	colrm \
26cb7f1224SGary Palmer	column \
27cb7f1224SGary Palmer	comm \
28cb7f1224SGary Palmer	compress \
29bc72ba9cSJeff Roberson	cpuset \
30ea9e961cSTim J. Robbins	csplit \
31130f4520SKenneth D. Merry	ctlstat \
32cb7f1224SGary Palmer	cut \
33a17665bcSBaptiste Daroussin	diff \
34cb7f1224SGary Palmer	dirname \
35cb7f1224SGary Palmer	du \
3679bfb05bSEd Maste	elfctl \
378237286eSDavid E. O'Brien	elfdump \
38489c66feSJoerg Wunsch	enigma \
39cb7f1224SGary Palmer	env \
40158d2fcdSBenno Rice	etdump \
41cb7f1224SGary Palmer	expand \
42cb7f1224SGary Palmer	false \
43cb7f1224SGary Palmer	fetch \
44cb7f1224SGary Palmer	find \
4507ea9a7cSXin LI	fmt \
46cb7f1224SGary Palmer	fold \
4787bc830fSDima Ruban	fstat \
484aeb1c05SPaul Saab	fsync \
49155c182aSPeter Wemm	gcore \
50cb7f1224SGary Palmer	gencat \
51f5b9907cSEric van Gyzen	getaddrinfo \
52298f4dc3SJake Burkholder	getconf \
53c912a3f7SMaxim Konovalov	getent \
54cb7f1224SGary Palmer	getopt \
55a23d1c70SDavid E. O'Brien	grep \
569a9ea25fSXin LI	gzip \
57cb7f1224SGary Palmer	head \
58cb7f1224SGary Palmer	hexdump \
59cb7f1224SGary Palmer	id \
60c048a83fSBaptiste Daroussin	ident \
61cb7f1224SGary Palmer	ipcrm \
62cb7f1224SGary Palmer	ipcs \
63cb7f1224SGary Palmer	join \
64cb7f1224SGary Palmer	jot \
65cb7f1224SGary Palmer	keylogin \
66cb7f1224SGary Palmer	keylogout \
67cb7f1224SGary Palmer	killall \
68cb7f1224SGary Palmer	ktrace \
69ed7a104fSJake Burkholder	ktrdump \
70cb7f1224SGary Palmer	lam \
71aaa41712SDoug Rabson	ldd \
729106cde5SBruce Evans	leave \
736f7d2d90SPaul Saab	less \
746f7d2d90SPaul Saab	lessecho \
756f7d2d90SPaul Saab	lesskey \
76cb7f1224SGary Palmer	limits \
7793cdc37dSAlexey Zelkin	locale \
78057ca2d4SBaptiste Daroussin	localedef \
79cb7f1224SGary Palmer	lock \
80cb7f1224SGary Palmer	lockf \
81cb7f1224SGary Palmer	logger \
82cb7f1224SGary Palmer	login \
83bd43dc42SDag-Erling Smørgrav	logins \
84cb7f1224SGary Palmer	logname \
85cb7f1224SGary Palmer	look \
86cb7f1224SGary Palmer	lorder \
87cb7f1224SGary Palmer	lsvfs \
8881ad8388SMartin Matuska	lzmainfo \
89cb7f1224SGary Palmer	m4 \
90cc4842a1SUlrich Spörlein	mandoc \
91cb7f1224SGary Palmer	mesg \
929106cde5SBruce Evans	minigzip \
93a2854cdfSRuslan Ermilov	ministat \
94cb7f1224SGary Palmer	mkdep \
95cb7f1224SGary Palmer	mkfifo \
9681a44173SMarcel Moolenaar	mkimg \
97cb7f1224SGary Palmer	mktemp \
985cf3bf70SMax Khon	mkuzip \
99e4dc55c3SDoug Rabson	mt \
100cb7f1224SGary Palmer	ncal \
101cb7f1224SGary Palmer	netstat \
102776c387aSTim J. Robbins	newgrp \
103cb7f1224SGary Palmer	nfsstat \
104cb7f1224SGary Palmer	nice \
105f2155981SBrian Somers	nl \
106cb7f1224SGary Palmer	nohup \
107cb7f1224SGary Palmer	opieinfo \
108cb7f1224SGary Palmer	opiekey \
109cb7f1224SGary Palmer	opiepasswd \
110cb7f1224SGary Palmer	pagesize \
111cb7f1224SGary Palmer	passwd \
112cb7f1224SGary Palmer	paste \
1132dd076b8SGabor Kovesdan	patch \
114b9f63041STim J. Robbins	pathchk \
1159a3009b8SGeorge V. Neville-Neil	perror \
1165f4592e4SKonstantin Belousov	posixshmcontrol \
117cb7f1224SGary Palmer	pr \
118cb7f1224SGary Palmer	printenv \
119cb7f1224SGary Palmer	printf \
1207402f93eSKonstantin Belousov	proccontrol \
121b59f38b5SRobert Watson	procstat \
1229215669cSBaptiste Daroussin	protect \
1236ec54a57SEdward Tomasz Napierala	rctl \
124cb7f1224SGary Palmer	renice \
1253d222369SConrad Meyer	resizewin \
126cb7f1224SGary Palmer	rev \
1277c7cef72SEd Schouten	revoke \
128cb7f1224SGary Palmer	rpcinfo \
129cb7f1224SGary Palmer	rs \
130cb7f1224SGary Palmer	rup \
131ac0ced90SJeremie Le Hen	ruptime \
132cb7f1224SGary Palmer	rusers \
133cb7f1224SGary Palmer	rwall \
134ac0ced90SJeremie Le Hen	rwho \
135cb7f1224SGary Palmer	script \
13613b5b548SBaptiste Daroussin	sdiff \
137cb7f1224SGary Palmer	sed \
138208987a5SXin LI	seq \
139cb7f1224SGary Palmer	shar \
140cb7f1224SGary Palmer	showmount \
14128bfda34SDag-Erling Smørgrav	sockstat \
142363da138SBaptiste Daroussin	soelim \
14385d7de10SGabor Kovesdan	sort \
144cb7f1224SGary Palmer	split \
145d4d239aeSDoug Barton	stat \
1466486b015SJeremie Le Hen	stdbuf \
1475f8eed2fSEd Maste	strings \
148cb7f1224SGary Palmer	su \
1498df85cf6SDima Ruban	systat \
150743f138eSTim J. Robbins	tabs \
151cb7f1224SGary Palmer	tail \
152e813a37fSTim Kientzle	tar \
153cb7f1224SGary Palmer	tcopy \
154cb7f1224SGary Palmer	tee \
155cb7f1224SGary Palmer	time \
156c501e7deSBaptiste Daroussin	timeout \
157afb5951fSMark Murray	tip \
158cb7f1224SGary Palmer	top \
159cb7f1224SGary Palmer	touch \
160cb7f1224SGary Palmer	tput \
161cb7f1224SGary Palmer	tr \
162cb7f1224SGary Palmer	true \
163edeb84a1SSheldon Hearn	truncate \
164cb7f1224SGary Palmer	tset \
165cb7f1224SGary Palmer	tsort \
166cb7f1224SGary Palmer	tty \
167cb7f1224SGary Palmer	uname \
168cb7f1224SGary Palmer	unexpand \
169cb7f1224SGary Palmer	uniq \
1704c0191c5SRoman Divacky	unzip \
171cb7f1224SGary Palmer	units \
172cb7f1224SGary Palmer	unvis \
173cb7f1224SGary Palmer	uudecode \
174cb7f1224SGary Palmer	uuencode \
175cb7f1224SGary Palmer	vis \
1760600c890SBruce Evans	vmstat \
177cb7f1224SGary Palmer	w \
178cb7f1224SGary Palmer	wall \
179cb7f1224SGary Palmer	wc \
180cb7f1224SGary Palmer	what \
181e9a55423SJohan Karlsson	whereis \
182cb7f1224SGary Palmer	which \
183cb7f1224SGary Palmer	whois \
184cb7f1224SGary Palmer	write \
185cb7f1224SGary Palmer	xargs \
186cb7f1224SGary Palmer	xinstall \
18741019211SMarcel Moolenaar	xo \
18881ad8388SMartin Matuska	xz \
18981ad8388SMartin Matuska	xzdec \
190e2290905SBaptiste Daroussin	yes \
191e2290905SBaptiste Daroussin	zstd
1925c931089SJohn Birrell
193690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
194690f477dSSam Leffler
1952142926fSEmmanuel VadotSUBDIR.${MK_ACCT}+=	lastcomm
1963a845236SWarner LoshSUBDIR.${MK_AT}+=	at
1973a845236SWarner LoshSUBDIR.${MK_ATM}+=	atm
1983a845236SWarner LoshSUBDIR.${MK_BLUETOOTH}+=	bluetooth
1993a845236SWarner LoshSUBDIR.${MK_BSD_CPIO}+=	cpio
200fd1efedcSConrad MeyerSUBDIR.${MK_CALENDAR}+=	calendar
201*a5186406SAlex Richardson.if ${MK_CLANG} != "no" || ${MK_LLVM_BINUTILS} != "no" || \
202*a5186406SAlex Richardson    ${MK_LLD} != "no" || ${MK_LLDB} != "no"
203*a5186406SAlex RichardsonSUBDIR+=	clang
204*a5186406SAlex Richardson.endif
205f987297fSEd MasteSUBDIR.${MK_DIALOG}+=	dpv
2063a845236SWarner LoshSUBDIR.${MK_EE}+=	ee
2073a845236SWarner LoshSUBDIR.${MK_FILE}+=	file
2083a845236SWarner LoshSUBDIR.${MK_FINGER}+=	finger
2093a845236SWarner LoshSUBDIR.${MK_FTP}+=	ftp
2103a845236SWarner LoshSUBDIR.${MK_GAMES}+=	caesar
2113a845236SWarner LoshSUBDIR.${MK_GAMES}+=	factor
2123a845236SWarner LoshSUBDIR.${MK_GAMES}+=	fortune
2133a845236SWarner LoshSUBDIR.${MK_GAMES}+=	grdc
2143a845236SWarner LoshSUBDIR.${MK_GAMES}+=	morse
2153a845236SWarner LoshSUBDIR.${MK_GAMES}+=	number
2163a845236SWarner LoshSUBDIR.${MK_GAMES}+=	pom
2173a845236SWarner LoshSUBDIR.${MK_GAMES}+=	primes
2183a845236SWarner LoshSUBDIR.${MK_GAMES}+=	random
219c1a3d7f2SAlex RichardsonSUBDIR.${MK_CXX}+=	dtc
220252884aeSStefan Eßer.if ${MK_GH_BC} == "yes"
221252884aeSStefan EßerSUBDIR+=		gh-bc
222252884aeSStefan Eßer.else
223252884aeSStefan EßerSUBDIR.${MK_OPENSSL}+=	bc
224252884aeSStefan EßerSUBDIR.${MK_OPENSSL}+=	dc
225252884aeSStefan Eßer.endif
2263a845236SWarner LoshSUBDIR.${MK_HESIOD}+=	hesinfo
2273a845236SWarner LoshSUBDIR.${MK_ICONV}+=	iconv
2283a845236SWarner LoshSUBDIR.${MK_ICONV}+=	mkcsmapper
2293a845236SWarner LoshSUBDIR.${MK_ICONV}+=	mkesdb
2303a845236SWarner LoshSUBDIR.${MK_ISCSI}+=	iscsictl
2313a845236SWarner LoshSUBDIR.${MK_KDUMP}+=	kdump
2323a845236SWarner LoshSUBDIR.${MK_KDUMP}+=	truss
2333a845236SWarner LoshSUBDIR.${MK_KERBEROS_SUPPORT}+=	compile_et
2343a845236SWarner LoshSUBDIR.${MK_LDNS_UTILS}+=	drill
2353a845236SWarner LoshSUBDIR.${MK_LDNS_UTILS}+=	host
236a4330302SBrooks DavisSUBDIR.${MK_LIB32}+=	ldd32
2373a845236SWarner LoshSUBDIR.${MK_LOCATE}+=	locate
238690f477dSSam Leffler# XXX msgs?
2393a845236SWarner LoshSUBDIR.${MK_MAIL}+=	biff
2403a845236SWarner LoshSUBDIR.${MK_MAIL}+=	from
2413a845236SWarner LoshSUBDIR.${MK_MAIL}+=	mail
2423a845236SWarner LoshSUBDIR.${MK_MAIL}+=	msgs
2433a845236SWarner LoshSUBDIR.${MK_MAKE}+=	bmake
2443a845236SWarner LoshSUBDIR.${MK_MAN_UTILS}+=	man
2453a845236SWarner LoshSUBDIR.${MK_NETCAT}+=	nc
2463a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypcat
2473a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypmatch
2483a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypwhich
2493a845236SWarner LoshSUBDIR.${MK_OPENSSH}+=	ssh-copy-id
2503a845236SWarner LoshSUBDIR.${MK_OPENSSL}+=	chkey
2513a845236SWarner LoshSUBDIR.${MK_OPENSSL}+=	newkey
2523a845236SWarner LoshSUBDIR.${MK_QUOTAS}+=	quota
2533a845236SWarner LoshSUBDIR.${MK_SENDMAIL}+=	vacation
2543a845236SWarner LoshSUBDIR.${MK_TALK}+=	talk
2553a845236SWarner LoshSUBDIR.${MK_TELNET}+=	telnet
256b0d29bc4SBrooks DavisSUBDIR.${MK_TESTS_SUPPORT}.${MK_CXX}+=	kyua
2573a845236SWarner LoshSUBDIR.${MK_TESTS}+=	tests
2583a845236SWarner LoshSUBDIR.${MK_TEXTPROC}+=	ul
2593a845236SWarner LoshSUBDIR.${MK_TFTP}+=	tftp
260*a5186406SAlex Richardson.if ${MK_LLVM_BINUTILS} == "no"
261*a5186406SAlex Richardson# Only build the elftoolchain tools if we aren't using the LLVM ones.
2623a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	addr2line
2633a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	ar
264*a5186406SAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	nm
265*a5186406SAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	objcopy
266*a5186406SAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	readelf
267*a5186406SAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	size
268*a5186406SAlex Richardson.endif
2693a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	c89
2703a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	c99
2713a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	ctags
27207bab441SDimitry Andric.if ${MK_LLVM_CXXFILT} == "no"
2733a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	cxxfilt
27407bab441SDimitry Andric.endif
2753a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	file2c
2763a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	gprof
2773a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	indent
2783a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	lex
2793a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	mkstr
2803a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	rpcgen
2813a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	unifdef
2823a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	xstr
2833a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	yacc
2843a845236SWarner LoshSUBDIR.${MK_VI}+=	vi
2853a845236SWarner LoshSUBDIR.${MK_VT}+=	vtfontcvt
2863a845236SWarner LoshSUBDIR.${MK_USB}+=	usbhidaction
2873a845236SWarner LoshSUBDIR.${MK_USB}+=	usbhidctl
2883a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	last
289d74808ddSEd Maste.if ${MK_CXX} != "no"
2903a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	users
2911c052a8cSRuslan Bukin.endif
2923a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	who
2933a845236SWarner LoshSUBDIR.${MK_SVN}+=	svn
2943a845236SWarner LoshSUBDIR.${MK_SVNLITE}+=	svn
295f39bffc6SKonstantin BelousovSUBDIR.${MK_OFED}+=	ofed
296937a2000SPeter Wemm
2978cfc8258SWarner Losh.include <bsd.arch.inc.mk>
298d10a8d6cSRuslan Ermilov
29954ff5d73SDimitry AndricSUBDIR_PARALLEL=
30054ff5d73SDimitry Andric
3019b50d902SRodney W. Grimes.include <bsd.subdir.mk>
302