xref: /freebsd/usr.bin/Makefile (revision 11981695fc234f86e6befc35f68303d49b032d97)
1839f16abSGarrett Wollman#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2c3aac50fSPeter Wemm# $FreeBSD$
39b50d902SRodney W. Grimes
4c501e7deSBaptiste Daroussin.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
1231942939SEd MasteSUBDIR=	${_addr2line} \
1331942939SEd Maste	alias \
145cd19a3cSGarrett Wollman	apply \
15cba9c8bdSTim J. Robbins	asa \
169a1523bcSDavid E. O'Brien	awk \
17cb7f1224SGary Palmer	banner \
18cb7f1224SGary Palmer	basename \
196eea92a4SDavid E. O'Brien	brandelf \
20ba10db99SColin Percival	bsdiff \
21d6a9fd06SDavid E. O'Brien	bzip2 \
22bc366011SDavid E. O'Brien	bzip2recover \
23cb7f1224SGary Palmer	cap_mkdb \
24cb7f1224SGary Palmer	chat \
25cb7f1224SGary Palmer	chpass \
26cb7f1224SGary Palmer	cksum \
276513cfc8SRoman Divacky	${_clang} \
28cb7f1224SGary Palmer	cmp \
29cb7f1224SGary Palmer	col \
30cb7f1224SGary Palmer	colldef \
31cb7f1224SGary Palmer	colrm \
32cb7f1224SGary Palmer	column \
33cb7f1224SGary Palmer	comm \
34cb7f1224SGary Palmer	compress \
35bc72ba9cSJeff Roberson	cpuset \
36ea9e961cSTim J. Robbins	csplit \
37130f4520SKenneth D. Merry	ctlstat \
38cb7f1224SGary Palmer	cut \
392421b90fSBaptiste Daroussin	demandoc \
40cb7f1224SGary Palmer	dirname \
417fc89952SDevin Teske	dpv \
42cb7f1224SGary Palmer	du \
43cbb66355SDavid E. O'Brien	elf2aout \
4431942939SEd Maste	${_elfcopy} \
458237286eSDavid E. O'Brien	elfdump \
46489c66feSJoerg Wunsch	enigma \
47cb7f1224SGary Palmer	env \
48cb7f1224SGary Palmer	expand \
49cb7f1224SGary Palmer	false \
50cb7f1224SGary Palmer	fetch \
51cb7f1224SGary Palmer	file \
52cb7f1224SGary Palmer	find \
5307ea9a7cSXin LI	fmt \
54cb7f1224SGary Palmer	fold \
5587bc830fSDima Ruban	fstat \
564aeb1c05SPaul Saab	fsync \
57155c182aSPeter Wemm	gcore \
58cb7f1224SGary Palmer	gencat \
59298f4dc3SJake Burkholder	getconf \
60c912a3f7SMaxim Konovalov	getent \
61cb7f1224SGary Palmer	getopt \
62a23d1c70SDavid E. O'Brien	grep \
639a9ea25fSXin LI	gzip \
64cb7f1224SGary Palmer	head \
65cb7f1224SGary Palmer	hexdump \
66ad30f8e7SGabor Kovesdan	${_iconv} \
67cb7f1224SGary Palmer	id \
68cb7f1224SGary Palmer	ipcrm \
69cb7f1224SGary Palmer	ipcs \
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 \
12031942939SEd Maste	${_nm} \
121cb7f1224SGary Palmer	nohup \
122cb7f1224SGary Palmer	opieinfo \
123cb7f1224SGary Palmer	opiekey \
124cb7f1224SGary Palmer	opiepasswd \
125cb7f1224SGary Palmer	pagesize \
126cb7f1224SGary Palmer	passwd \
127cb7f1224SGary Palmer	paste \
1282dd076b8SGabor Kovesdan	patch \
129b9f63041STim J. Robbins	pathchk \
1309a3009b8SGeorge V. Neville-Neil	perror \
131cb7f1224SGary Palmer	pr \
132cb7f1224SGary Palmer	printenv \
133cb7f1224SGary Palmer	printf \
134b59f38b5SRobert Watson	procstat \
1359215669cSBaptiste Daroussin	protect \
1366ec54a57SEdward Tomasz Napierala	rctl \
137cb7f1224SGary Palmer	renice \
138cb7f1224SGary Palmer	rev \
1397c7cef72SEd Schouten	revoke \
140cb7f1224SGary Palmer	rpcinfo \
141cb7f1224SGary Palmer	rs \
142cb7f1224SGary Palmer	rup \
143cb7f1224SGary Palmer	rusers \
144cb7f1224SGary Palmer	rwall \
145cb7f1224SGary Palmer	script \
146cb7f1224SGary Palmer	sed \
14747200bbdSGavin Atkinson	send-pr \
148208987a5SXin LI	seq \
149cb7f1224SGary Palmer	shar \
150cb7f1224SGary Palmer	showmount \
15131942939SEd Maste	${_size} \
15228bfda34SDag-Erling Smørgrav	sockstat \
15368d12e1fSBaptiste Daroussin	soeliminate \
15485d7de10SGabor Kovesdan	sort \
155cb7f1224SGary Palmer	split \
156d4d239aeSDoug Barton	stat \
1576486b015SJeremie Le Hen	stdbuf \
15831942939SEd Maste	${_strings} \
159cb7f1224SGary Palmer	su \
1608df85cf6SDima Ruban	systat \
161743f138eSTim J. Robbins	tabs \
162cb7f1224SGary Palmer	tail \
163e813a37fSTim Kientzle	tar \
164cb7f1224SGary Palmer	tcopy \
165cb7f1224SGary Palmer	tee \
166fba3cde9SJulio Merino	${_tests} \
167cb7f1224SGary Palmer	time \
168c501e7deSBaptiste Daroussin	timeout \
169afb5951fSMark Murray	tip \
170cb7f1224SGary Palmer	top \
171cb7f1224SGary Palmer	touch \
172cb7f1224SGary Palmer	tput \
173cb7f1224SGary Palmer	tr \
174cb7f1224SGary Palmer	true \
175edeb84a1SSheldon Hearn	truncate \
176e5deeefeSDavid E. O'Brien	${_truss} \
177cb7f1224SGary Palmer	tset \
178cb7f1224SGary Palmer	tsort \
179cb7f1224SGary Palmer	tty \
180cb7f1224SGary Palmer	uname \
181cb7f1224SGary Palmer	unexpand \
182cb7f1224SGary Palmer	uniq \
1834c0191c5SRoman Divacky	unzip \
184cb7f1224SGary Palmer	units \
185cb7f1224SGary Palmer	unvis \
186cb7f1224SGary Palmer	uudecode \
187cb7f1224SGary Palmer	uuencode \
188cb7f1224SGary Palmer	vis \
1890600c890SBruce Evans	vmstat \
190cb7f1224SGary Palmer	w \
191cb7f1224SGary Palmer	wall \
192cb7f1224SGary Palmer	wc \
193cb7f1224SGary Palmer	what \
194e9a55423SJohan Karlsson	whereis \
195cb7f1224SGary Palmer	which \
196cb7f1224SGary Palmer	whois \
197cb7f1224SGary Palmer	write \
198cb7f1224SGary Palmer	xargs \
199cb7f1224SGary Palmer	xinstall \
200cfad5290SMarcel Moolenaar	${_xlint} \
20141019211SMarcel Moolenaar	xo \
202690f477dSSam Leffler	${_xstr} \
20381ad8388SMartin Matuska	xz \
20481ad8388SMartin Matuska	xzdec \
2053bc2f9a8SPoul-Henning Kamp	${_yacc} \
206cb7f1224SGary Palmer	yes \
2076c58990dSBjoern A. Zeeb	${_ypcat} \
2086c58990dSBjoern A. Zeeb	${_ypmatch} \
2096c58990dSBjoern A. Zeeb	${_ypwhich}
2105c931089SJohn Birrell
211690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
212690f477dSSam Leffler
213690f477dSSam Leffler.if ${MK_AT} != "no"
2148cfc8258SWarner LoshSUBDIR+=	at
215690f477dSSam Leffler.endif
216690f477dSSam Leffler
217e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no"
2188cfc8258SWarner LoshSUBDIR+=	atm
219d10a8d6cSRuslan Ermilov.endif
220d10a8d6cSRuslan Ermilov
221e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
2228cfc8258SWarner LoshSUBDIR+=	bluetooth
22323d1e148SMaksim Yevmenkin.endif
22423d1e148SMaksim Yevmenkin
2256973701aSDoug Barton.if ${MK_BSD_CPIO} != "no"
2268cfc8258SWarner LoshSUBDIR+=	cpio
2276973701aSDoug Barton.endif
2286973701aSDoug Barton
229e1fe3dbaSRuslan Ermilov.if ${MK_CALENDAR} != "no"
2308cfc8258SWarner LoshSUBDIR+=	calendar
231642268f4SPoul-Henning Kamp.endif
232642268f4SPoul-Henning Kamp
2336513cfc8SRoman Divacky.if ${MK_CLANG} != "no"
2346513cfc8SRoman Divacky_clang=		clang
2356513cfc8SRoman Divacky.endif
2366513cfc8SRoman Divacky
23779a86dafSEnji Cooper.if ${MK_EE} != "no"
23879a86dafSEnji CooperSUBDIR+=	ee
23979a86dafSEnji Cooper.endif
24079a86dafSEnji Cooper
24131942939SEd Maste.if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
24231942939SEd Maste_addr2line=	addr2line
24331942939SEd Maste_elfcopy=	elfcopy
24431942939SEd Maste_nm=		nm
24531942939SEd Maste_size=		size
24631942939SEd Maste_strings=	strings
24731942939SEd Maste.endif
24831942939SEd Maste
249*11981695SEnji Cooper.if ${MK_FINGER} != "no"
250*11981695SEnji CooperSUBDIR+=	finger
251*11981695SEnji Cooper.endif
252*11981695SEnji Cooper
253c501e7deSBaptiste Daroussin.if ${MK_FMAKE} != "no"
254c501e7deSBaptiste DaroussinSUBDIR+=	make
255c501e7deSBaptiste Daroussin.endif
256c501e7deSBaptiste Daroussin
257*11981695SEnji Cooper.if ${MK_FTP} != "no"
258*11981695SEnji CooperSUBDIR+=	ftp
259*11981695SEnji Cooper.endif
260*11981695SEnji Cooper
2618e6ee5a9SWarner Losh.if ${MK_GPL_DTC} != "yes"
2628e6ee5a9SWarner LoshSUBDIR+=	dtc
2638e6ee5a9SWarner Losh.endif
2648e6ee5a9SWarner Losh
265bd51eebfSDavid E. O'Brien.if ${MK_GROFF} != "no"
266bd51eebfSDavid E. O'BrienSUBDIR+=	vgrind
267bd51eebfSDavid E. O'Brien.endif
268bd51eebfSDavid E. O'Brien
269690f477dSSam Leffler.if ${MK_HESIOD} != "no"
2708cfc8258SWarner LoshSUBDIR+=	hesinfo
271690f477dSSam Leffler.endif
272690f477dSSam Leffler
273ad30f8e7SGabor Kovesdan.if ${MK_ICONV} != "no"
274ad30f8e7SGabor Kovesdan_iconv=		iconv
275ad30f8e7SGabor Kovesdan_mkcsmapper=	mkcsmapper
276ad30f8e7SGabor Kovesdan_mkesdb=	mkesdb
277ad30f8e7SGabor Kovesdan.endif
278ad30f8e7SGabor Kovesdan
279b29d6977SEnji Cooper.if ${MK_ISCSI} != "no"
280b29d6977SEnji CooperSUBDIR+=	iscsictl
281b29d6977SEnji Cooper.endif
282b29d6977SEnji Cooper
283e5deeefeSDavid E. O'Brien.if ${MK_KDUMP} != "no"
284e5deeefeSDavid E. O'BrienSUBDIR+=        kdump
285e5deeefeSDavid E. O'BrienSUBDIR+=        truss
286e5deeefeSDavid E. O'Brien.endif
287e5deeefeSDavid E. O'Brien
288bd51eebfSDavid E. O'Brien.if ${MK_KERBEROS_SUPPORT} != "no"
289bd51eebfSDavid E. O'BrienSUBDIR+=	compile_et
29078dbe843SMarius Strobl.endif
29178dbe843SMarius Strobl
2929aad2c48SDag-Erling Smørgrav.if ${MK_LDNS_UTILS} != "no"
293fdde88bcSDag-Erling SmørgravSUBDIR+=	drill
2949aad2c48SDag-Erling SmørgravSUBDIR+=	host
2959aad2c48SDag-Erling Smørgrav.endif
2969aad2c48SDag-Erling Smørgrav
297690f477dSSam Leffler.if ${MK_LOCATE} != "no"
2988cfc8258SWarner LoshSUBDIR+=	locate
299690f477dSSam Leffler.endif
300690f477dSSam Leffler
301690f477dSSam Leffler# XXX msgs?
302690f477dSSam Leffler.if ${MK_MAIL} != "no"
3038cfc8258SWarner LoshSUBDIR+=	biff
3048cfc8258SWarner LoshSUBDIR+=	from
3058cfc8258SWarner LoshSUBDIR+=	mail
3068cfc8258SWarner LoshSUBDIR+=	msgs
307690f477dSSam Leffler.endif
308690f477dSSam Leffler
309690f477dSSam Leffler.if ${MK_MAKE} != "no"
310d4d90f10SMarcel MoolenaarSUBDIR+=	bmake
311d4d90f10SMarcel Moolenaar.endif
312f7ab1209SPoul-Henning Kamp
31307e547feSJung-uk Kim.if ${MK_MAN_UTILS} != "no"
314bd51eebfSDavid E. O'BrienSUBDIR+=	catman
31507e547feSJung-uk Kim_makewhatis=	makewhatis
316023f0373SGordon Tetlow_man=		man
31707e547feSJung-uk Kim.endif
31807e547feSJung-uk Kim
319e1fe3dbaSRuslan Ermilov.if ${MK_NETCAT} != "no"
3208cfc8258SWarner LoshSUBDIR+=	nc
3214457bf03SXin LI.endif
3224457bf03SXin LI
323e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
3248cfc8258SWarner LoshSUBDIR+=	ypcat
3258cfc8258SWarner LoshSUBDIR+=	ypmatch
3268cfc8258SWarner LoshSUBDIR+=	ypwhich
3276c58990dSBjoern A. Zeeb.endif
3286c58990dSBjoern A. Zeeb
329b4634967SEitan Adler.if ${MK_OPENSSH} != "no"
330b4634967SEitan AdlerSUBDIR+=	ssh-copy-id
331b4634967SEitan Adler.endif
332b4634967SEitan Adler
333bd51eebfSDavid E. O'Brien.if ${MK_OPENSSL} != "no"
334bd51eebfSDavid E. O'BrienSUBDIR+=	bc
335bd51eebfSDavid E. O'BrienSUBDIR+=	chkey
336bd51eebfSDavid E. O'BrienSUBDIR+=	dc
337bd51eebfSDavid E. O'BrienSUBDIR+=	newkey
338bd51eebfSDavid E. O'Brien.endif
339bd51eebfSDavid E. O'Brien
340690f477dSSam Leffler.if ${MK_QUOTAS} != "no"
3418cfc8258SWarner LoshSUBDIR+=	quota
342690f477dSSam Leffler.endif
343690f477dSSam Leffler
344e1fe3dbaSRuslan Ermilov.if ${MK_RCMDS} != "no"
3458cfc8258SWarner LoshSUBDIR+=	rlogin
3468cfc8258SWarner LoshSUBDIR+=	rsh
3478cfc8258SWarner LoshSUBDIR+=	ruptime
3488cfc8258SWarner LoshSUBDIR+=	rwho
349c71158d4STom Rhodes.endif
350c71158d4STom Rhodes
351e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
3528cfc8258SWarner LoshSUBDIR+=	vacation
353d10a8d6cSRuslan Ermilov.endif
354d10a8d6cSRuslan Ermilov
3553f802165SEnji Cooper.if ${MK_TALK} != "no"
3563f802165SEnji CooperSUBDIR+=	talk
3573f802165SEnji Cooper.endif
3583f802165SEnji Cooper
359690f477dSSam Leffler.if ${MK_TELNET} != "no"
3608cfc8258SWarner LoshSUBDIR+=	telnet
361690f477dSSam Leffler.endif
362690f477dSSam Leffler
363e01d128aSJulio Merino.if ${MK_TESTS} != "no"
364fba3cde9SJulio Merino_tests=		tests
365e01d128aSJulio Merino.endif
366e01d128aSJulio Merino
367690f477dSSam Leffler.if ${MK_TEXTPROC} != "no"
3688cfc8258SWarner LoshSUBDIR+=	checknr
3698cfc8258SWarner LoshSUBDIR+=	colcrt
3708cfc8258SWarner LoshSUBDIR+=	ul
371690f477dSSam Leffler.endif
372690f477dSSam Leffler
373*11981695SEnji Cooper.if ${MK_TFTP} != "no"
374*11981695SEnji CooperSUBDIR+=	tftp
375*11981695SEnji Cooper.endif
376*11981695SEnji Cooper
377e1fe3dbaSRuslan Ermilov.if ${MK_TOOLCHAIN} != "no"
3788cfc8258SWarner LoshSUBDIR+=	ar
3798cfc8258SWarner LoshSUBDIR+=	c89
3808cfc8258SWarner LoshSUBDIR+=	c99
3818cfc8258SWarner LoshSUBDIR+=	ctags
3828cfc8258SWarner LoshSUBDIR+=	file2c
3838cfc8258SWarner LoshSUBDIR+=	gprof
3848cfc8258SWarner LoshSUBDIR+=	indent
3858cfc8258SWarner LoshSUBDIR+=	lex
3868cfc8258SWarner LoshSUBDIR+=	mkstr
3878cfc8258SWarner LoshSUBDIR+=	rpcgen
3888cfc8258SWarner LoshSUBDIR+=	unifdef
3898cfc8258SWarner LoshSUBDIR+=	xlint
3908cfc8258SWarner LoshSUBDIR+=	xstr
3918cfc8258SWarner LoshSUBDIR+=	yacc
392d10a8d6cSRuslan Ermilov.endif
393d10a8d6cSRuslan Ermilov
394c501e7deSBaptiste Daroussin.if ${MK_VI} != "no"
395c501e7deSBaptiste DaroussinSUBDIR+=	vi
396c501e7deSBaptiste Daroussin.endif
397c501e7deSBaptiste Daroussin
398824a9093SEd Maste.if ${MK_VT} != "no"
399b410b62cSEd MasteSUBDIR+=	vtfontcvt
400b410b62cSEd Maste.endif
401b410b62cSEd Maste
402e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
4038cfc8258SWarner LoshSUBDIR+=	usbhidaction
4048cfc8258SWarner LoshSUBDIR+=	usbhidctl
405d10a8d6cSRuslan Ermilov.endif
406d10a8d6cSRuslan Ermilov
4079f0c9022SEd Schouten.if ${MK_UTMPX} != "no"
4089f0c9022SEd SchoutenSUBDIR+=	last
4099f0c9022SEd SchoutenSUBDIR+=	users
4109f0c9022SEd SchoutenSUBDIR+=	who
4119f0c9022SEd Schouten.endif
4129f0c9022SEd Schouten
413937a2000SPeter Wemm.if ${MK_SVN} == "yes" || ${MK_SVNLITE} == "yes"
414937a2000SPeter WemmSUBDIR+=	svn
415937a2000SPeter Wemm.endif
416937a2000SPeter Wemm
4178cfc8258SWarner Losh.include <bsd.arch.inc.mk>
418d10a8d6cSRuslan Ermilov
4198cfc8258SWarner LoshSUBDIR:=	${SUBDIR:O}
42069618fcfSPyun YongHyeon
42154ff5d73SDimitry AndricSUBDIR_PARALLEL=
42254ff5d73SDimitry Andric
4239b50d902SRodney W. Grimes.include <bsd.subdir.mk>
424