xref: /freebsd/usr.bin/Makefile (revision 4c5876d2ad9d99137124e0122eda1e22e9ebf574)
1839f16abSGarrett Wollman#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2c3aac50fSPeter Wemm# $FreeBSD$
39b50d902SRodney W. Grimes
4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
5e1fe3dbaSRuslan Ermilov
60a50d08dSJordan K. Hubbard# XXX MISSING:		deroff diction graph learn plot
7861999b4SBruce Evans#			spell spline struct xsend
8fb22fc68SJuli Mallett# XXX Use GNU versions: apropos bc dc diff grep ld man patch whatis
973407b34SGarrett Wollman# Moved to secure: bdes
1073407b34SGarrett Wollman#
11cfad5290SMarcel Moolenaar
12e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
13e1fe3dbaSRuslan Ermilov
145cd19a3cSGarrett WollmanSUBDIR=	alias \
155cd19a3cSGarrett Wollman	apply \
16cba9c8bdSTim J. Robbins	asa \
17cb7f1224SGary Palmer	at \
184f35c846SHartmut Brandt	${_atm} \
199a1523bcSDavid E. O'Brien	awk \
20cb7f1224SGary Palmer	banner \
21cb7f1224SGary Palmer	basename \
22cb7f1224SGary Palmer	biff \
23d10a8d6cSRuslan Ermilov	${_bluetooth} \
246eea92a4SDavid E. O'Brien	brandelf \
25ba10db99SColin Percival	bsdiff \
26d6a9fd06SDavid E. O'Brien	bzip2 \
27bc366011SDavid E. O'Brien	bzip2recover \
283bc2f9a8SPoul-Henning Kamp	${_c89} \
293bc2f9a8SPoul-Henning Kamp	${_c99} \
30642268f4SPoul-Henning Kamp	${_calendar} \
31cb7f1224SGary Palmer	cap_mkdb \
325a4d78a1SPoul-Henning Kamp	${_catman} \
33cb7f1224SGary Palmer	chat \
34cb7f1224SGary Palmer	checknr \
35d10a8d6cSRuslan Ermilov	${_chkey} \
36cb7f1224SGary Palmer	chpass \
37cb7f1224SGary Palmer	cksum \
38cb7f1224SGary Palmer	cmp \
39cb7f1224SGary Palmer	col \
40cb7f1224SGary Palmer	colcrt \
41cb7f1224SGary Palmer	colldef \
42cb7f1224SGary Palmer	colrm \
43cb7f1224SGary Palmer	column \
44cb7f1224SGary Palmer	comm \
45cb7f1224SGary Palmer	compile_et \
46cb7f1224SGary Palmer	compress \
47ea9e961cSTim J. Robbins	csplit \
48b0b13d15SMaxime Henrion	${_csup} \
49cb7f1224SGary Palmer	ctags \
50cb7f1224SGary Palmer	cut \
51d10a8d6cSRuslan Ermilov	${_dig} \
52cb7f1224SGary Palmer	dirname \
53cb7f1224SGary Palmer	du \
54cb7f1224SGary Palmer	ee \
55cbb66355SDavid E. O'Brien	elf2aout \
568237286eSDavid E. O'Brien	elfdump \
57489c66feSJoerg Wunsch	enigma \
58cb7f1224SGary Palmer	env \
59cb7f1224SGary Palmer	expand \
60cb7f1224SGary Palmer	false \
61cb7f1224SGary Palmer	fetch \
62cb7f1224SGary Palmer	file \
63cb7f1224SGary Palmer	file2c \
64cb7f1224SGary Palmer	find \
65cb7f1224SGary Palmer	finger \
66cb7f1224SGary Palmer	fmt \
67cb7f1224SGary Palmer	fold \
68cb7f1224SGary Palmer	from \
6987bc830fSDima Ruban	fstat \
704aeb1c05SPaul Saab	fsync \
71cb7f1224SGary Palmer	ftp \
72155c182aSPeter Wemm	gcore \
73cb7f1224SGary Palmer	gencat \
74298f4dc3SJake Burkholder	getconf \
75c912a3f7SMaxim Konovalov	getent \
76cb7f1224SGary Palmer	getopt \
770bc81187SDavid E. O'Brien	${_gprof} \
78cb7f1224SGary Palmer	head \
79f7ab1209SPoul-Henning Kamp	${_hesinfo} \
80cb7f1224SGary Palmer	hexdump \
81d10a8d6cSRuslan Ermilov	${_host} \
82cb7f1224SGary Palmer	id \
83cb7f1224SGary Palmer	indent \
84cb7f1224SGary Palmer	ipcrm \
85cb7f1224SGary Palmer	ipcs \
86cb7f1224SGary Palmer	join \
87cb7f1224SGary Palmer	jot \
88cb7f1224SGary Palmer	kdump \
89cb7f1224SGary Palmer	keylogin \
90cb7f1224SGary Palmer	keylogout \
91cb7f1224SGary Palmer	killall \
92cb7f1224SGary Palmer	ktrace \
93ed7a104fSJake Burkholder	ktrdump \
94cb7f1224SGary Palmer	lam \
95cb7f1224SGary Palmer	last \
96cb7f1224SGary Palmer	lastcomm \
97aaa41712SDoug Rabson	ldd \
989106cde5SBruce Evans	leave \
996f7d2d90SPaul Saab	less \
1006f7d2d90SPaul Saab	lessecho \
1016f7d2d90SPaul Saab	lesskey \
1023bc2f9a8SPoul-Henning Kamp	${_lex} \
103cb7f1224SGary Palmer	limits \
10493cdc37dSAlexey Zelkin	locale \
105cb7f1224SGary Palmer	locate \
106cb7f1224SGary Palmer	lock \
107cb7f1224SGary Palmer	lockf \
108cb7f1224SGary Palmer	logger \
109cb7f1224SGary Palmer	login \
110bd43dc42SDag-Erling Smørgrav	logins \
111cb7f1224SGary Palmer	logname \
112cb7f1224SGary Palmer	look \
113cb7f1224SGary Palmer	lorder \
114cb7f1224SGary Palmer	lsvfs \
115cb7f1224SGary Palmer	m4 \
116cb7f1224SGary Palmer	mail \
117cb7f1224SGary Palmer	make \
118bf7bec33SMark Murray	makewhatis \
119cb7f1224SGary Palmer	mesg \
1209106cde5SBruce Evans	minigzip \
121cb7f1224SGary Palmer	mkdep \
122cb7f1224SGary Palmer	mkfifo \
123cb7f1224SGary Palmer	mklocale \
124cb7f1224SGary Palmer	mkstr \
125cb7f1224SGary Palmer	mktemp \
1265cf3bf70SMax Khon	mkuzip \
127cb7f1224SGary Palmer	msgs \
128e4dc55c3SDoug Rabson	mt \
12941fe9ea1SXin LI	${_nc} \
130cb7f1224SGary Palmer	ncal \
131d10a8d6cSRuslan Ermilov	${_ncplist} \
132d10a8d6cSRuslan Ermilov	${_ncplogin} \
133cb7f1224SGary Palmer	netstat \
134776c387aSTim J. Robbins	newgrp \
135d10a8d6cSRuslan Ermilov	${_newkey} \
136cb7f1224SGary Palmer	nfsstat \
137cb7f1224SGary Palmer	nice \
138f2155981SBrian Somers	nl \
139cb7f1224SGary Palmer	nohup \
140cd3ee173SDag-Erling Smørgrav	${_nslookup} \
141cd3ee173SDag-Erling Smørgrav	${_nsupdate} \
142cb7f1224SGary Palmer	objformat \
143cb7f1224SGary Palmer	opieinfo \
144cb7f1224SGary Palmer	opiekey \
145cb7f1224SGary Palmer	opiepasswd \
146cb7f1224SGary Palmer	pagesize \
147cb7f1224SGary Palmer	passwd \
148cb7f1224SGary Palmer	paste \
149b9f63041STim J. Robbins	pathchk \
150f56b4f2dSGarance A Drosehn	pkill \
151cb7f1224SGary Palmer	pr \
152cb7f1224SGary Palmer	printenv \
153cb7f1224SGary Palmer	printf \
154cb7f1224SGary Palmer	quota \
155cb7f1224SGary Palmer	renice \
156cb7f1224SGary Palmer	rev \
157c71158d4STom Rhodes	${_rlogin} \
158cb7f1224SGary Palmer	rpcgen \
159cb7f1224SGary Palmer	rpcinfo \
160cb7f1224SGary Palmer	rs \
161c71158d4STom Rhodes	${_rsh} \
162cb7f1224SGary Palmer	rup \
163cb7f1224SGary Palmer	ruptime \
164cb7f1224SGary Palmer	rusers \
165cb7f1224SGary Palmer	rwall \
166cb7f1224SGary Palmer	rwho \
167cb7f1224SGary Palmer	script \
168cb7f1224SGary Palmer	sed \
169cb7f1224SGary Palmer	shar \
170cb7f1224SGary Palmer	showmount \
171d10a8d6cSRuslan Ermilov	${_smbutil} \
17228bfda34SDag-Erling Smørgrav	sockstat \
173cb7f1224SGary Palmer	split \
174d4d239aeSDoug Barton	stat \
175cb7f1224SGary Palmer	su \
1768df85cf6SDima Ruban	systat \
177743f138eSTim J. Robbins	tabs \
178cb7f1224SGary Palmer	tail \
179cb7f1224SGary Palmer	talk \
180e813a37fSTim Kientzle	tar \
181cb7f1224SGary Palmer	tcopy \
182cb7f1224SGary Palmer	tee \
1834afa3718SMark Murray	telnet \
184cb7f1224SGary Palmer	tftp \
185cb7f1224SGary Palmer	time \
186afb5951fSMark Murray	tip \
187cb7f1224SGary Palmer	top \
188cb7f1224SGary Palmer	touch \
189cb7f1224SGary Palmer	tput \
190cb7f1224SGary Palmer	tr \
191cb7f1224SGary Palmer	true \
192edeb84a1SSheldon Hearn	truncate \
1930bc81187SDavid E. O'Brien	${_truss} \
194cb7f1224SGary Palmer	tset \
195cb7f1224SGary Palmer	tsort \
196cb7f1224SGary Palmer	tty \
197cb7f1224SGary Palmer	ul \
198cb7f1224SGary Palmer	uname \
199cb7f1224SGary Palmer	unexpand \
200cb7f1224SGary Palmer	unifdef \
201cb7f1224SGary Palmer	uniq \
202cb7f1224SGary Palmer	units \
203cb7f1224SGary Palmer	unvis \
204d10a8d6cSRuslan Ermilov	${_usbhidaction} \
205d10a8d6cSRuslan Ermilov	${_usbhidctl} \
206cb7f1224SGary Palmer	users \
207cb7f1224SGary Palmer	uudecode \
208cb7f1224SGary Palmer	uuencode \
20952183d01SMarcel Moolenaar	uuidgen \
210d10a8d6cSRuslan Ermilov	${_vacation} \
211cb7f1224SGary Palmer	vgrind \
212cb7f1224SGary Palmer	vi \
213cb7f1224SGary Palmer	vis \
2140600c890SBruce Evans	vmstat \
215cb7f1224SGary Palmer	w \
216cb7f1224SGary Palmer	wall \
217cb7f1224SGary Palmer	wc \
218cb7f1224SGary Palmer	what \
219e9a55423SJohan Karlsson	whereis \
220cb7f1224SGary Palmer	which \
221cb7f1224SGary Palmer	who \
222cb7f1224SGary Palmer	whois \
223cb7f1224SGary Palmer	window \
224cb7f1224SGary Palmer	write \
225cb7f1224SGary Palmer	xargs \
226cb7f1224SGary Palmer	xinstall \
227cfad5290SMarcel Moolenaar	${_xlint} \
228cb7f1224SGary Palmer	xstr \
2293bc2f9a8SPoul-Henning Kamp	${_yacc} \
230cb7f1224SGary Palmer	yes \
2316c58990dSBjoern A. Zeeb	${_ypcat} \
2326c58990dSBjoern A. Zeeb	${_ypmatch} \
2336c58990dSBjoern A. Zeeb	${_ypwhich}
2345c931089SJohn Birrell
2355aedf535SPeter Grehan.if ${MACHINE_ARCH} != "arm"
236d10a8d6cSRuslan Ermilov_truss=		truss
237d10a8d6cSRuslan Ermilov.endif
238d10a8d6cSRuslan Ermilov
239e1fe3dbaSRuslan Ermilov.if ${MK_ATM} != "no"
24090d186c0SRuslan Ermilov_atm=		atm
241d10a8d6cSRuslan Ermilov.endif
242d10a8d6cSRuslan Ermilov
243e1fe3dbaSRuslan Ermilov.if ${MK_MAN} != "no"
2445a4d78a1SPoul-Henning Kamp_catman=	catman
2455a4d78a1SPoul-Henning Kamp.endif
2465a4d78a1SPoul-Henning Kamp
247e1fe3dbaSRuslan Ermilov.if ${MK_BIND_UTILS} != "no"
248d10a8d6cSRuslan Ermilov_dig=		dig
249d10a8d6cSRuslan Ermilov_host=		host
250cd3ee173SDag-Erling Smørgrav_nslookup=	nslookup
251cd3ee173SDag-Erling Smørgrav_nsupdate=	nsupdate
25271990d3dSPeter Wemm.endif
25371990d3dSPeter Wemm
254e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
25523d1e148SMaksim Yevmenkin_bluetooth=	bluetooth
25623d1e148SMaksim Yevmenkin.endif
25723d1e148SMaksim Yevmenkin
258e1fe3dbaSRuslan Ermilov.if ${MK_CALENDAR} != "no"
259642268f4SPoul-Henning Kamp_calendar=	calendar
260642268f4SPoul-Henning Kamp.endif
261642268f4SPoul-Henning Kamp
262e1fe3dbaSRuslan Ermilov.if ${MK_OPENSSL} != "no"
263d10a8d6cSRuslan Ermilov_chkey=		chkey
264d10a8d6cSRuslan Ermilov_newkey=	newkey
2654c5876d2SMarcel Moolenaar.if ${MACHINE_ARCH} == "sparc64"
266295c5deaSRuslan Ermilov.if ${MK_LIBTHR} != "no"
267b0b13d15SMaxime Henrion_csup=		csup
268d10a8d6cSRuslan Ermilov.endif
269a50767ebSRuslan Ermilov.elif ${MK_LIBPTHREAD} != "no"
270a50767ebSRuslan Ermilov_csup=		csup
271a50767ebSRuslan Ermilov.endif
272a50767ebSRuslan Ermilov.endif
273d10a8d6cSRuslan Ermilov
274e1fe3dbaSRuslan Ermilov.if ${MK_HESIOD} != "no"
275f7ab1209SPoul-Henning Kamp_hesinfo=	hesinfo
276f7ab1209SPoul-Henning Kamp.endif
277f7ab1209SPoul-Henning Kamp
278e1fe3dbaSRuslan Ermilov.if ${MK_NETCAT} != "no"
279a1635c68SXin LI_nc=		nc
2804457bf03SXin LI.endif
2814457bf03SXin LI
282e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
2836c58990dSBjoern A. Zeeb_ypcat=		ypcat
2846c58990dSBjoern A. Zeeb_ypmatch=	ypmatch
2856c58990dSBjoern A. Zeeb_ypwhich=	ypwhich
2866c58990dSBjoern A. Zeeb.endif
2876c58990dSBjoern A. Zeeb
288e1fe3dbaSRuslan Ermilov.if ${MK_RCMDS} != "no"
289c71158d4STom Rhodes_rlogin=	rlogin
290c71158d4STom Rhodes_rsh=		rsh
291c71158d4STom Rhodes.endif
292c71158d4STom Rhodes
293e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
294d10a8d6cSRuslan Ermilov_vacation=	vacation
295d10a8d6cSRuslan Ermilov.endif
296d10a8d6cSRuslan Ermilov
297e1fe3dbaSRuslan Ermilov.if ${MK_TOOLCHAIN} != "no"
298d10a8d6cSRuslan Ermilov_c89=		c89
299d10a8d6cSRuslan Ermilov_c99=		c99
300d10a8d6cSRuslan Ermilov_gprof=		gprof
301d10a8d6cSRuslan Ermilov_lex=		lex
302d10a8d6cSRuslan Ermilov_xlint=		xlint
303d10a8d6cSRuslan Ermilov_yacc=		yacc
304d10a8d6cSRuslan Ermilov.endif
305d10a8d6cSRuslan Ermilov
306e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
307d10a8d6cSRuslan Ermilov_usbhidaction=	usbhidaction
308d10a8d6cSRuslan Ermilov_usbhidctl=	usbhidctl
309d10a8d6cSRuslan Ermilov.endif
310d10a8d6cSRuslan Ermilov
311d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "i386"
312cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
313d10a8d6cSRuslan Ermilov_ncplist=	ncplist
314d10a8d6cSRuslan Ermilov_ncplogin=	ncplogin
315cea557adSRuslan Ermilov.endif
316d10a8d6cSRuslan Ermilov_smbutil=	smbutil
317d10a8d6cSRuslan Ermilov.endif
318d10a8d6cSRuslan Ermilov
319d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "amd64"
320cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
321d10a8d6cSRuslan Ermilov_ncplist=	ncplist
322d10a8d6cSRuslan Ermilov_ncplogin=	ncplogin
323cea557adSRuslan Ermilov.endif
324d10a8d6cSRuslan Ermilov_smbutil=	smbutil
325a8ec1b48SMaxim Sobolev.endif
326a8ec1b48SMaxim Sobolev
32759fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc"
32859fa7082SR. Imura_smbutil=	smbutil
32959fa7082SR. Imura.endif
33059fa7082SR. Imura
3319b50d902SRodney W. Grimes.include <bsd.subdir.mk>
332