xref: /freebsd/usr.bin/Makefile (revision 3fde39073c722ba5b1d3aa330ec4dc5e0ecd8495)
1c501e7deSBaptiste Daroussin.include <src.opts.mk>
2e1fe3dbaSRuslan Ermilov
3728fb54dSEd MasteSUBDIR=	alias \
45cd19a3cSGarrett Wollman	apply \
5cba9c8bdSTim J. Robbins	asa \
69a1523bcSDavid E. O'Brien	awk \
79ddaa99dSEmmanuel Vadot	backlight \
8cb7f1224SGary Palmer	banner \
9cb7f1224SGary Palmer	basename \
108abfbe5aSHans Petter Selasky	beep \
1147bcbde9SPiotr Pawel Stefaniak	bintrans \
126eea92a4SDavid E. O'Brien	brandelf \
13cdf63a70SMartin Matuska	bsdcat \
14e031614dSAlfonso S. Siciliano	bsddialog \
15ba10db99SColin Percival	bsdiff \
16d6a9fd06SDavid E. O'Brien	bzip2 \
17bc366011SDavid E. O'Brien	bzip2recover \
18cb7f1224SGary Palmer	cap_mkdb \
19cb7f1224SGary Palmer	chat \
20cb7f1224SGary Palmer	chpass \
21cb7f1224SGary Palmer	cksum \
22cb7f1224SGary Palmer	cmp \
23cb7f1224SGary Palmer	col \
24cb7f1224SGary Palmer	colrm \
25cb7f1224SGary Palmer	column \
26cb7f1224SGary Palmer	comm \
27cb7f1224SGary Palmer	compress \
28ea9e961cSTim J. Robbins	csplit \
29130f4520SKenneth D. Merry	ctlstat \
30cb7f1224SGary Palmer	cut \
31a17665bcSBaptiste Daroussin	diff \
32cb7f1224SGary Palmer	dirname \
33ac4c695aSEd Maste	dtc \
34cb7f1224SGary Palmer	du \
3579bfb05bSEd Maste	elfctl \
368237286eSDavid E. O'Brien	elfdump \
37489c66feSJoerg Wunsch	enigma \
38cb7f1224SGary Palmer	env \
39158d2fcdSBenno Rice	etdump \
40cb7f1224SGary Palmer	expand \
41cb7f1224SGary Palmer	false \
42cb7f1224SGary Palmer	fetch \
43cb7f1224SGary Palmer	find \
4407ea9a7cSXin LI	fmt \
45cb7f1224SGary Palmer	fold \
4687bc830fSDima Ruban	fstat \
474aeb1c05SPaul Saab	fsync \
48155c182aSPeter Wemm	gcore \
49cb7f1224SGary Palmer	gencat \
50f5b9907cSEric van Gyzen	getaddrinfo \
51298f4dc3SJake Burkholder	getconf \
52c912a3f7SMaxim Konovalov	getent \
53cb7f1224SGary Palmer	getopt \
54a23d1c70SDavid E. O'Brien	grep \
559a9ea25fSXin LI	gzip \
56cb7f1224SGary Palmer	head \
57cb7f1224SGary Palmer	hexdump \
58cb7f1224SGary Palmer	id \
59c048a83fSBaptiste Daroussin	ident \
60cb7f1224SGary Palmer	ipcrm \
61cb7f1224SGary Palmer	ipcs \
62cb7f1224SGary Palmer	join \
63cb7f1224SGary Palmer	jot \
64cb7f1224SGary Palmer	killall \
65cb7f1224SGary Palmer	ktrace \
66ed7a104fSJake Burkholder	ktrdump \
67cb7f1224SGary Palmer	lam \
68aaa41712SDoug Rabson	ldd \
699106cde5SBruce Evans	leave \
706f7d2d90SPaul Saab	less \
716f7d2d90SPaul Saab	lessecho \
726f7d2d90SPaul Saab	lesskey \
73cb7f1224SGary Palmer	limits \
7493cdc37dSAlexey Zelkin	locale \
75057ca2d4SBaptiste Daroussin	localedef \
76cb7f1224SGary Palmer	lock \
77cb7f1224SGary Palmer	lockf \
78cb7f1224SGary Palmer	logger \
79cb7f1224SGary Palmer	login \
80bd43dc42SDag-Erling Smørgrav	logins \
81cb7f1224SGary Palmer	logname \
82cb7f1224SGary Palmer	look \
83cb7f1224SGary Palmer	lsvfs \
8481ad8388SMartin Matuska	lzmainfo \
85cb7f1224SGary Palmer	m4 \
86cc4842a1SUlrich Spörlein	mandoc \
878aac90f1SBaptiste Daroussin	mdo \
88cb7f1224SGary Palmer	mesg \
89f57efe95SChristos Margiolis	mididump \
90a2854cdfSRuslan Ermilov	ministat \
91cb7f1224SGary Palmer	mkdep \
92cb7f1224SGary Palmer	mkfifo \
9381a44173SMarcel Moolenaar	mkimg \
94cb7f1224SGary Palmer	mktemp \
955cf3bf70SMax Khon	mkuzip \
96e4dc55c3SDoug Rabson	mt \
97cb7f1224SGary Palmer	ncal \
9861f66a1fSBaptiste Daroussin	ncurses \
99cb7f1224SGary Palmer	netstat \
100776c387aSTim J. Robbins	newgrp \
101cb7f1224SGary Palmer	nfsstat \
102cb7f1224SGary Palmer	nice \
103f2155981SBrian Somers	nl \
104cb7f1224SGary Palmer	nohup \
105cb7f1224SGary Palmer	pagesize \
106cb7f1224SGary Palmer	passwd \
107cb7f1224SGary Palmer	paste \
1082dd076b8SGabor Kovesdan	patch \
109b9f63041STim J. Robbins	pathchk \
1109a3009b8SGeorge V. Neville-Neil	perror \
1110112f8c4SRick Parrish	posixmqcontrol \
1125f4592e4SKonstantin Belousov	posixshmcontrol \
113cb7f1224SGary Palmer	pr \
114cb7f1224SGary Palmer	printenv \
115cb7f1224SGary Palmer	printf \
1167402f93eSKonstantin Belousov	proccontrol \
117b59f38b5SRobert Watson	procstat \
1189215669cSBaptiste Daroussin	protect \
1196ec54a57SEdward Tomasz Napierala	rctl \
120cb7f1224SGary Palmer	renice \
1213d222369SConrad Meyer	resizewin \
122cb7f1224SGary Palmer	rev \
1237c7cef72SEd Schouten	revoke \
124cb7f1224SGary Palmer	rpcinfo \
125ac4c695aSEd Maste	rs \
1260660de81SRick Macklem	runat \
127cb7f1224SGary Palmer	rup \
128ac0ced90SJeremie Le Hen	ruptime \
129cb7f1224SGary Palmer	rusers \
130cb7f1224SGary Palmer	rwall \
131ac0ced90SJeremie Le Hen	rwho \
132cb7f1224SGary Palmer	script \
13313b5b548SBaptiste Daroussin	sdiff \
134cb7f1224SGary Palmer	sed \
135208987a5SXin LI	seq \
136cb7f1224SGary Palmer	showmount \
13728bfda34SDag-Erling Smørgrav	sockstat \
138363da138SBaptiste Daroussin	soelim \
13985d7de10SGabor Kovesdan	sort \
140cb7f1224SGary Palmer	split \
141d4d239aeSDoug Barton	stat \
1426486b015SJeremie Le Hen	stdbuf \
143fbd7087bSEd Maste	strings \
144cb7f1224SGary Palmer	su \
1458df85cf6SDima Ruban	systat \
146cb7f1224SGary Palmer	tail \
147e813a37fSTim Kientzle	tar \
148cb7f1224SGary Palmer	tcopy \
149cb7f1224SGary Palmer	tee \
150cb7f1224SGary Palmer	time \
151afb5951fSMark Murray	tip \
152cb7f1224SGary Palmer	top \
153cb7f1224SGary Palmer	touch \
154cb7f1224SGary Palmer	tr \
155cb7f1224SGary Palmer	true \
156edeb84a1SSheldon Hearn	truncate \
1573d516b85SJuraj Lutter	ts \
158cb7f1224SGary Palmer	tsort \
159cb7f1224SGary Palmer	tty \
160cb7f1224SGary Palmer	uname \
161cb7f1224SGary Palmer	unexpand \
162cb7f1224SGary Palmer	uniq \
1634c0191c5SRoman Divacky	unzip \
164cb7f1224SGary Palmer	units \
165cb7f1224SGary Palmer	unvis \
166cb7f1224SGary Palmer	vis \
1670600c890SBruce Evans	vmstat \
168cb7f1224SGary Palmer	w \
169cb7f1224SGary Palmer	wall \
170cb7f1224SGary Palmer	wc \
17102838267SKyle Evans	wg \
172cb7f1224SGary Palmer	what \
173e9a55423SJohan Karlsson	whereis \
174cb7f1224SGary Palmer	which \
175cb7f1224SGary Palmer	whois \
176cb7f1224SGary Palmer	write \
177cb7f1224SGary Palmer	xargs \
178cb7f1224SGary Palmer	xinstall \
17941019211SMarcel Moolenaar	xo \
18081ad8388SMartin Matuska	xz \
18181ad8388SMartin Matuska	xzdec \
182e2290905SBaptiste Daroussin	yes \
183e2290905SBaptiste Daroussin	zstd
1845c931089SJohn Birrell
185690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
186690f477dSSam Leffler
1878af54bdfSEmmanuel VadotSUBDIR.${MK_ACCT}+=	lastcomm
1883a845236SWarner LoshSUBDIR.${MK_AT}+=	at
1893a845236SWarner LoshSUBDIR.${MK_BLUETOOTH}+=	bluetooth
1903a845236SWarner LoshSUBDIR.${MK_BSD_CPIO}+=	cpio
191fd1efedcSConrad MeyerSUBDIR.${MK_CALENDAR}+=	calendar
192021385abSAlex Richardson.if ${MK_CLANG} != "no" || ${MK_LLVM_BINUTILS} != "no" || \
193021385abSAlex Richardson    ${MK_LLD} != "no" || ${MK_LLDB} != "no"
194021385abSAlex RichardsonSUBDIR+=	clang
195021385abSAlex Richardson.endif
196f987297fSEd MasteSUBDIR.${MK_DIALOG}+=	dpv
1973a845236SWarner LoshSUBDIR.${MK_EE}+=	ee
1983a845236SWarner LoshSUBDIR.${MK_FILE}+=	file
1993a845236SWarner LoshSUBDIR.${MK_FINGER}+=	finger
2003a845236SWarner LoshSUBDIR.${MK_FTP}+=	ftp
2013a845236SWarner LoshSUBDIR.${MK_GAMES}+=	caesar
2023a845236SWarner LoshSUBDIR.${MK_GAMES}+=	factor
2033a845236SWarner LoshSUBDIR.${MK_GAMES}+=	fortune
2043a845236SWarner LoshSUBDIR.${MK_GAMES}+=	grdc
2053a845236SWarner LoshSUBDIR.${MK_GAMES}+=	morse
2063a845236SWarner LoshSUBDIR.${MK_GAMES}+=	number
2073a845236SWarner LoshSUBDIR.${MK_GAMES}+=	pom
2083a845236SWarner LoshSUBDIR.${MK_GAMES}+=	primes
2093a845236SWarner LoshSUBDIR.${MK_GAMES}+=	random
210252884aeSStefan EßerSUBDIR+=		gh-bc
2112201f7c4SDag-Erling Smørgrav.if ${MK_GNU_DIFF} == "no"
2122201f7c4SDag-Erling SmørgravSUBDIR+=		diff3
2132201f7c4SDag-Erling Smørgrav.endif
2143a845236SWarner LoshSUBDIR.${MK_HESIOD}+=	hesinfo
2153a845236SWarner LoshSUBDIR.${MK_ICONV}+=	iconv
2163a845236SWarner LoshSUBDIR.${MK_ICONV}+=	mkcsmapper
2173a845236SWarner LoshSUBDIR.${MK_ICONV}+=	mkesdb
2183a845236SWarner LoshSUBDIR.${MK_ISCSI}+=	iscsictl
2193a845236SWarner LoshSUBDIR.${MK_KDUMP}+=	kdump
2203a845236SWarner LoshSUBDIR.${MK_KDUMP}+=	truss
221*1bbb9649SCy Schubert.if ${MK_MITKRB5} == "no"
2223a845236SWarner LoshSUBDIR.${MK_KERBEROS_SUPPORT}+=	compile_et
223*1bbb9649SCy Schubert.endif
2243a845236SWarner LoshSUBDIR.${MK_LDNS_UTILS}+=	drill
2253a845236SWarner LoshSUBDIR.${MK_LDNS_UTILS}+=	host
226a4330302SBrooks DavisSUBDIR.${MK_LIB32}+=	ldd32
2273a845236SWarner LoshSUBDIR.${MK_LOCATE}+=	locate
228690f477dSSam Leffler# XXX msgs?
2293a845236SWarner LoshSUBDIR.${MK_MAIL}+=	biff
2303a845236SWarner LoshSUBDIR.${MK_MAIL}+=	from
2313a845236SWarner LoshSUBDIR.${MK_MAIL}+=	mail
2323a845236SWarner LoshSUBDIR.${MK_MAIL}+=	msgs
2333a845236SWarner LoshSUBDIR.${MK_MAKE}+=	bmake
2343a845236SWarner LoshSUBDIR.${MK_MAN_UTILS}+=	man
2353a845236SWarner LoshSUBDIR.${MK_NETCAT}+=	nc
236cb1fc924SBaptiste DaroussinSUBDIR.${MK_NETLINK}+=	genl
2373a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypcat
2383a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypmatch
2393a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypwhich
2403a845236SWarner LoshSUBDIR.${MK_OPENSSH}+=	ssh-copy-id
2413a845236SWarner LoshSUBDIR.${MK_QUOTAS}+=	quota
2423a845236SWarner LoshSUBDIR.${MK_SENDMAIL}+=	vacation
2433a845236SWarner LoshSUBDIR.${MK_TALK}+=	talk
2443a845236SWarner LoshSUBDIR.${MK_TELNET}+=	telnet
245ac4c695aSEd MasteSUBDIR.${MK_TESTS_SUPPORT}+=	kyua
2463a845236SWarner LoshSUBDIR.${MK_TESTS}+=	tests
2473a845236SWarner LoshSUBDIR.${MK_TEXTPROC}+=	ul
2483a845236SWarner LoshSUBDIR.${MK_TFTP}+=	tftp
249021385abSAlex Richardson.if ${MK_LLVM_BINUTILS} == "no"
250021385abSAlex Richardson# Only build the elftoolchain tools if we aren't using the LLVM ones.
2513a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	addr2line
2523a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	ar
253021385abSAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	nm
254021385abSAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	readelf
255021385abSAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	size
256fdc4db57SEd Maste.endif
2573a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	c89
2583a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	c99
2593a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	ctags
26007bab441SDimitry Andric.if ${MK_LLVM_CXXFILT} == "no"
2613a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	cxxfilt
26207bab441SDimitry Andric.endif
263ca0fc8efSEd Maste# ELF Tool Chain elfcopy required for EFI objects (PR280771)
264ca0fc8efSEd MasteSUBDIR.${MK_TOOLCHAIN}+=	elfcopy
2653a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	file2c
2663a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	gprof
2673a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	indent
2683a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	lex
269125c4560SDag-Erling SmørgravSUBDIR.${MK_TOOLCHAIN}+=	lorder
2703a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	mkstr
2713a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	rpcgen
2723a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	unifdef
2733a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	xstr
2743a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	yacc
2753a845236SWarner LoshSUBDIR.${MK_VI}+=	vi
2763a845236SWarner LoshSUBDIR.${MK_VT}+=	vtfontcvt
2773a845236SWarner LoshSUBDIR.${MK_USB}+=	usbhidaction
2783a845236SWarner LoshSUBDIR.${MK_USB}+=	usbhidctl
2793a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	last
2803a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	users
2813a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	who
282f39bffc6SKonstantin BelousovSUBDIR.${MK_OFED}+=	ofed
283937a2000SPeter Wemm
2848cfc8258SWarner Losh.include <bsd.arch.inc.mk>
285d10a8d6cSRuslan Ermilov
28654ff5d73SDimitry AndricSUBDIR_PARALLEL=
28754ff5d73SDimitry Andric
2889b50d902SRodney W. Grimes.include <bsd.subdir.mk>
289