xref: /freebsd/usr.bin/Makefile (revision f57efe95cc25ae527c632d4ffcf064799f922216)
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	keylogin \
65cb7f1224SGary Palmer	keylogout \
66cb7f1224SGary Palmer	killall \
67cb7f1224SGary Palmer	ktrace \
68ed7a104fSJake Burkholder	ktrdump \
69cb7f1224SGary Palmer	lam \
70aaa41712SDoug Rabson	ldd \
719106cde5SBruce Evans	leave \
726f7d2d90SPaul Saab	less \
736f7d2d90SPaul Saab	lessecho \
746f7d2d90SPaul Saab	lesskey \
75cb7f1224SGary Palmer	limits \
7693cdc37dSAlexey Zelkin	locale \
77057ca2d4SBaptiste Daroussin	localedef \
78cb7f1224SGary Palmer	lock \
79cb7f1224SGary Palmer	lockf \
80cb7f1224SGary Palmer	logger \
81cb7f1224SGary Palmer	login \
82bd43dc42SDag-Erling Smørgrav	logins \
83cb7f1224SGary Palmer	logname \
84cb7f1224SGary Palmer	look \
85cb7f1224SGary Palmer	lsvfs \
8681ad8388SMartin Matuska	lzmainfo \
87cb7f1224SGary Palmer	m4 \
88cc4842a1SUlrich Spörlein	mandoc \
898aac90f1SBaptiste Daroussin	mdo \
90cb7f1224SGary Palmer	mesg \
91*f57efe95SChristos Margiolis	mididump \
92a2854cdfSRuslan Ermilov	ministat \
93cb7f1224SGary Palmer	mkdep \
94cb7f1224SGary Palmer	mkfifo \
9581a44173SMarcel Moolenaar	mkimg \
96cb7f1224SGary Palmer	mktemp \
975cf3bf70SMax Khon	mkuzip \
98e4dc55c3SDoug Rabson	mt \
99cb7f1224SGary Palmer	ncal \
10061f66a1fSBaptiste Daroussin	ncurses \
101cb7f1224SGary Palmer	netstat \
102776c387aSTim J. Robbins	newgrp \
103cb7f1224SGary Palmer	nfsstat \
104cb7f1224SGary Palmer	nice \
105f2155981SBrian Somers	nl \
106cb7f1224SGary Palmer	nohup \
107cb7f1224SGary Palmer	pagesize \
108cb7f1224SGary Palmer	passwd \
109cb7f1224SGary Palmer	paste \
1102dd076b8SGabor Kovesdan	patch \
111b9f63041STim J. Robbins	pathchk \
1129a3009b8SGeorge V. Neville-Neil	perror \
1130112f8c4SRick Parrish	posixmqcontrol \
1145f4592e4SKonstantin Belousov	posixshmcontrol \
115cb7f1224SGary Palmer	pr \
116cb7f1224SGary Palmer	printenv \
117cb7f1224SGary Palmer	printf \
1187402f93eSKonstantin Belousov	proccontrol \
119b59f38b5SRobert Watson	procstat \
1209215669cSBaptiste Daroussin	protect \
1216ec54a57SEdward Tomasz Napierala	rctl \
122cb7f1224SGary Palmer	renice \
1233d222369SConrad Meyer	resizewin \
124cb7f1224SGary Palmer	rev \
1257c7cef72SEd Schouten	revoke \
126cb7f1224SGary Palmer	rpcinfo \
127ac4c695aSEd Maste	rs \
128cb7f1224SGary Palmer	rup \
129ac0ced90SJeremie Le Hen	ruptime \
130cb7f1224SGary Palmer	rusers \
131cb7f1224SGary Palmer	rwall \
132ac0ced90SJeremie Le Hen	rwho \
133cb7f1224SGary Palmer	script \
13413b5b548SBaptiste Daroussin	sdiff \
135cb7f1224SGary Palmer	sed \
136208987a5SXin LI	seq \
137cb7f1224SGary Palmer	shar \
138cb7f1224SGary Palmer	showmount \
13928bfda34SDag-Erling Smørgrav	sockstat \
140363da138SBaptiste Daroussin	soelim \
14185d7de10SGabor Kovesdan	sort \
142cb7f1224SGary Palmer	split \
143d4d239aeSDoug Barton	stat \
1446486b015SJeremie Le Hen	stdbuf \
145cb7f1224SGary Palmer	su \
1468df85cf6SDima Ruban	systat \
147cb7f1224SGary Palmer	tail \
148e813a37fSTim Kientzle	tar \
149cb7f1224SGary Palmer	tcopy \
150cb7f1224SGary Palmer	tee \
151cb7f1224SGary Palmer	time \
152afb5951fSMark Murray	tip \
153cb7f1224SGary Palmer	top \
154cb7f1224SGary Palmer	touch \
155cb7f1224SGary Palmer	tr \
156cb7f1224SGary Palmer	true \
157edeb84a1SSheldon Hearn	truncate \
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ßer.if ${MK_GH_BC} == "yes"
211252884aeSStefan EßerSUBDIR+=		gh-bc
212252884aeSStefan Eßer.else
213252884aeSStefan EßerSUBDIR.${MK_OPENSSL}+=	bc
214252884aeSStefan EßerSUBDIR.${MK_OPENSSL}+=	dc
215252884aeSStefan Eßer.endif
2162201f7c4SDag-Erling Smørgrav.if ${MK_GNU_DIFF} == "no"
2172201f7c4SDag-Erling SmørgravSUBDIR+=		diff3
2182201f7c4SDag-Erling Smørgrav.endif
2193a845236SWarner LoshSUBDIR.${MK_HESIOD}+=	hesinfo
2203a845236SWarner LoshSUBDIR.${MK_ICONV}+=	iconv
2213a845236SWarner LoshSUBDIR.${MK_ICONV}+=	mkcsmapper
2223a845236SWarner LoshSUBDIR.${MK_ICONV}+=	mkesdb
2233a845236SWarner LoshSUBDIR.${MK_ISCSI}+=	iscsictl
2243a845236SWarner LoshSUBDIR.${MK_KDUMP}+=	kdump
2253a845236SWarner LoshSUBDIR.${MK_KDUMP}+=	truss
2263a845236SWarner LoshSUBDIR.${MK_KERBEROS_SUPPORT}+=	compile_et
2273a845236SWarner LoshSUBDIR.${MK_LDNS_UTILS}+=	drill
2283a845236SWarner LoshSUBDIR.${MK_LDNS_UTILS}+=	host
229a4330302SBrooks DavisSUBDIR.${MK_LIB32}+=	ldd32
2303a845236SWarner LoshSUBDIR.${MK_LOCATE}+=	locate
231690f477dSSam Leffler# XXX msgs?
2323a845236SWarner LoshSUBDIR.${MK_MAIL}+=	biff
2333a845236SWarner LoshSUBDIR.${MK_MAIL}+=	from
2343a845236SWarner LoshSUBDIR.${MK_MAIL}+=	mail
2353a845236SWarner LoshSUBDIR.${MK_MAIL}+=	msgs
2363a845236SWarner LoshSUBDIR.${MK_MAKE}+=	bmake
2373a845236SWarner LoshSUBDIR.${MK_MAN_UTILS}+=	man
2383a845236SWarner LoshSUBDIR.${MK_NETCAT}+=	nc
239cb1fc924SBaptiste DaroussinSUBDIR.${MK_NETLINK}+=	genl
2403a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypcat
2413a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypmatch
2423a845236SWarner LoshSUBDIR.${MK_NIS}+=	ypwhich
2433a845236SWarner LoshSUBDIR.${MK_OPENSSH}+=	ssh-copy-id
2443a845236SWarner LoshSUBDIR.${MK_OPENSSL}+=	chkey
2453a845236SWarner LoshSUBDIR.${MK_OPENSSL}+=	newkey
2463a845236SWarner LoshSUBDIR.${MK_QUOTAS}+=	quota
2473a845236SWarner LoshSUBDIR.${MK_SENDMAIL}+=	vacation
2483a845236SWarner LoshSUBDIR.${MK_TALK}+=	talk
2493a845236SWarner LoshSUBDIR.${MK_TELNET}+=	telnet
250ac4c695aSEd MasteSUBDIR.${MK_TESTS_SUPPORT}+=	kyua
2513a845236SWarner LoshSUBDIR.${MK_TESTS}+=	tests
2523a845236SWarner LoshSUBDIR.${MK_TEXTPROC}+=	ul
2533a845236SWarner LoshSUBDIR.${MK_TFTP}+=	tftp
254021385abSAlex Richardson.if ${MK_LLVM_BINUTILS} == "no"
255021385abSAlex Richardson# Only build the elftoolchain tools if we aren't using the LLVM ones.
2563a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	addr2line
2573a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	ar
258021385abSAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	nm
259021385abSAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	objcopy
260021385abSAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	readelf
261021385abSAlex RichardsonSUBDIR.${MK_TOOLCHAIN}+=	size
26281fa5c4aSCameron KatriSUBDIR+=			strings
263021385abSAlex Richardson.endif
2643a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	c89
2653a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	c99
2663a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	ctags
26707bab441SDimitry Andric.if ${MK_LLVM_CXXFILT} == "no"
2683a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	cxxfilt
26907bab441SDimitry Andric.endif
2703a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	file2c
2713a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	gprof
2723a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	indent
2733a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	lex
274125c4560SDag-Erling SmørgravSUBDIR.${MK_TOOLCHAIN}+=	lorder
2753a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	mkstr
2763a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	rpcgen
2773a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	unifdef
2783a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	xstr
2793a845236SWarner LoshSUBDIR.${MK_TOOLCHAIN}+=	yacc
2803a845236SWarner LoshSUBDIR.${MK_VI}+=	vi
2813a845236SWarner LoshSUBDIR.${MK_VT}+=	vtfontcvt
2823a845236SWarner LoshSUBDIR.${MK_USB}+=	usbhidaction
2833a845236SWarner LoshSUBDIR.${MK_USB}+=	usbhidctl
2843a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	last
2853a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	users
2863a845236SWarner LoshSUBDIR.${MK_UTMPX}+=	who
287f39bffc6SKonstantin BelousovSUBDIR.${MK_OFED}+=	ofed
288937a2000SPeter Wemm
2898cfc8258SWarner Losh.include <bsd.arch.inc.mk>
290d10a8d6cSRuslan Ermilov
29154ff5d73SDimitry AndricSUBDIR_PARALLEL=
29254ff5d73SDimitry Andric
2939b50d902SRodney W. Grimes.include <bsd.subdir.mk>
294