xref: /trueos/usr.bin/Makefile (revision 40b01d90c6512d4491b470bb055ab09e51bc92a2)
1#	From: @(#)Makefile	8.3 (Berkeley) 1/7/94
2# $FreeBSD$
3
4.include <bsd.own.mk>
5
6# XXX MISSING:		deroff diction graph learn plot
7#			spell spline struct xsend
8# XXX Use GNU versions: diff ld patch
9# Moved to secure: bdes
10#
11
12SUBDIR=	alias \
13	apply \
14	asa \
15	aslutil \
16	awk \
17	banner \
18	basename \
19	brandelf \
20	bsdiff \
21	bzip2 \
22	bzip2recover \
23	cap_mkdb \
24	chat \
25	chpass \
26	cksum \
27	${_clang} \
28	cmp \
29	col \
30	colldef \
31	colrm \
32	column \
33	comm \
34	compress \
35	cpuset \
36	csplit \
37	ctlstat \
38	cut \
39	dirname \
40	dpv \
41	du \
42	elf2aout \
43	elfdump \
44	enigma \
45	env \
46	expand \
47	false \
48	fetch \
49	find \
50	fmt \
51	fold \
52	fstat \
53	fsync \
54	gcore \
55	gencat \
56	getconf \
57	getent \
58	getopt \
59	grep \
60	gzip \
61	head \
62	hexdump \
63	${_iconv} \
64	id \
65	ipcrm \
66	ipcs \
67	join \
68	jot \
69	${_kdump} \
70	keylogin \
71	keylogout \
72	killall \
73	ktrace \
74	ktrdump \
75	lam \
76	lastcomm \
77	ldd \
78	leave \
79	less \
80	lessecho \
81	lesskey \
82	limits \
83	locale \
84	lock \
85	lockf \
86	logger \
87	login \
88	logins \
89	logname \
90	look \
91	lorder \
92	lsvfs \
93	lzmainfo \
94	m4 \
95	${_makewhatis} \
96	${_man} \
97	${_mach_tests} \
98	mandoc \
99	mesg \
100	migcom \
101	minigzip \
102	ministat \
103	${_mkcsmapper} \
104	mkdep \
105	${_mkesdb} \
106	mkfifo \
107	mkimg \
108	mklocale \
109	mktemp \
110	mkulzma \
111	mkuzip \
112	mt \
113	ncal \
114	netstat \
115	newgrp \
116	nfsstat \
117	nice \
118	nl \
119	nohup \
120	notifyutil \
121	opieinfo \
122	opiekey \
123	opiepasswd \
124	pagesize \
125	passwd \
126	paste \
127	patch \
128	pathchk \
129	perror \
130	pr \
131	printenv \
132	printf \
133	procstat \
134	protect \
135	rctl \
136	renice \
137	rev \
138	revoke \
139	rpcinfo \
140	rs \
141	rup \
142	rusers \
143	rwall \
144	script \
145	sed \
146	send-pr \
147	seq \
148	shar \
149	showmount \
150	sockstat \
151	sort \
152	split \
153	stat \
154	stdbuf \
155	su \
156	systat \
157	tabs \
158	tail \
159	tar \
160	tcopy \
161	tee \
162	${_tests} \
163	time \
164	tip \
165	top \
166	touch \
167	tput \
168	tr \
169	true \
170	truncate \
171	${_truss} \
172	tset \
173	tsort \
174	tty \
175	uname \
176	unexpand \
177	uniq \
178	unzip \
179	units \
180	unvis \
181	uudecode \
182	uuencode \
183	vi \
184	vis \
185	vmstat \
186	w \
187	wall \
188	wc \
189	what \
190	whereis \
191	which \
192	whois \
193	write \
194	xargs \
195	xinstall \
196	${_xlint} \
197	${_xpc_tests} \
198	${_xstr} \
199	xz \
200	xzdec \
201	${_yacc} \
202	yes \
203	${_ypcat} \
204	${_ypmatch} \
205	${_ypwhich}
206
207# NB: keep these sorted by MK_* knobs
208
209.if ${MK_AT} != "no"
210SUBDIR+=	at
211.endif
212
213.if ${MK_ATM} != "no"
214SUBDIR+=	atm
215.endif
216
217.if ${MK_BLUETOOTH} != "no"
218SUBDIR+=	bluetooth
219.endif
220
221.if ${MK_BSD_CPIO} != "no"
222SUBDIR+=	cpio
223.endif
224
225.if ${MK_CALENDAR} != "no"
226SUBDIR+=	calendar
227.endif
228
229.if ${MK_CLANG} != "no"
230_clang=		clang
231.endif
232
233.if ${MK_EE} != "no"
234SUBDIR+=	ee
235.endif
236
237.if ${MK_FILE} != "no"
238SUBDIR+=	file
239.endif
240
241.if ${MK_FINGER} != "no"
242SUBDIR+=	finger
243.endif
244
245.if ${MK_FTP} != "no"
246SUBDIR+=	ftp
247.endif
248
249.if ${MK_GPL_DTC} != "yes"
250SUBDIR+=	dtc
251.endif
252
253.if ${MK_GROFF} != "no"
254SUBDIR+=	vgrind
255.endif
256
257.if ${MK_HESIOD} != "no"
258SUBDIR+=	hesinfo
259.endif
260
261.if ${MK_ICONV} != "no"
262_iconv=		iconv
263_mkcsmapper=	mkcsmapper
264_mkesdb=	mkesdb
265.endif
266
267.if ${MK_ISCSI} != "no"
268SUBDIR+=	iscsictl
269.endif
270
271.if ${MK_KDUMP} != "no"
272SUBDIR+=        kdump
273SUBDIR+=        truss
274.endif
275
276.if ${MK_KERBEROS_SUPPORT} != "no"
277SUBDIR+=	compile_et
278.endif
279
280.if ${MK_LDNS_UTILS} != "no"
281SUBDIR+=	drill
282SUBDIR+=	host
283.endif
284
285.if ${MK_LIBTHR} != "no"
286SUBDIR+=	csup
287.endif
288
289.if ${MK_LOCATE} != "no"
290SUBDIR+=	locate
291.endif
292
293# XXX msgs?
294.if ${MK_MAIL} != "no"
295SUBDIR+=	biff
296SUBDIR+=	from
297SUBDIR+=	mail
298SUBDIR+=	msgs
299.endif
300
301.if ${MK_MAKE} != "no"
302.if ${MK_BMAKE} != "no"
303SUBDIR+=	bmake
304.else
305SUBDIR+=	make
306.endif
307.endif
308
309.if ${MK_MAN_UTILS} != "no"
310SUBDIR+=	catman
311_makewhatis=	makewhatis
312_man=		man
313.endif
314
315.if ${MK_NETCAT} != "no"
316SUBDIR+=	nc
317.endif
318
319.if ${MK_NIS} != "no"
320SUBDIR+=	ypcat
321SUBDIR+=	ypmatch
322SUBDIR+=	ypwhich
323.endif
324
325.if ${MK_OPENSSH} != "no"
326SUBDIR+=	ssh-copy-id
327.endif
328
329.if ${MK_OPENSSL} != "no"
330SUBDIR+=	bc
331SUBDIR+=	chkey
332SUBDIR+=	dc
333SUBDIR+=	newkey
334.endif
335
336.if ${MK_QUOTAS} != "no"
337SUBDIR+=	quota
338.endif
339
340.if ${MK_RCMDS} != "no"
341SUBDIR+=	rlogin
342SUBDIR+=	rsh
343SUBDIR+=	ruptime
344SUBDIR+=	rwho
345.endif
346
347.if ${MK_SENDMAIL} != "no"
348SUBDIR+=	vacation
349.endif
350
351.if ${MK_TALK} != "no"
352SUBDIR+=	talk
353.endif
354
355.if ${MK_TELNET} != "no"
356SUBDIR+=	telnet
357.endif
358
359.if ${MACHINE_CPUARCH} == "amd64"
360_xpc_tests=     xpc-tests
361_mach_tests=	mach-tests
362.endif
363
364.if ${MK_TESTS} != "no"
365_tests=		tests
366.endif
367
368.if ${MK_TEXTPROC} != "no"
369SUBDIR+=	checknr
370SUBDIR+=	colcrt
371SUBDIR+=	ul
372.endif
373
374.if ${MK_TFTP} != "no"
375SUBDIR+=	tftp
376.endif
377
378.if ${MK_TOOLCHAIN} != "no"
379SUBDIR+=	ar
380SUBDIR+=	c89
381SUBDIR+=	c99
382SUBDIR+=	ctags
383SUBDIR+=	file2c
384SUBDIR+=	gprof
385SUBDIR+=	indent
386SUBDIR+=	lex
387SUBDIR+=	mkstr
388SUBDIR+=	rpcgen
389SUBDIR+=	unifdef
390SUBDIR+=	xlint
391SUBDIR+=	xstr
392SUBDIR+=	yacc
393.endif
394
395.if ${MK_VT} != "no"
396SUBDIR+=	vtfontcvt
397.endif
398
399.if ${MK_USB} != "no"
400SUBDIR+=	usbhidaction
401SUBDIR+=	usbhidctl
402.endif
403
404.if ${MK_UTMPX} != "no"
405SUBDIR+=	last
406SUBDIR+=	users
407SUBDIR+=	who
408.endif
409
410.if ${MK_SVN} == "yes" || ${MK_SVNLITE} == "yes"
411SUBDIR+=	svn
412.endif
413
414.include <bsd.arch.inc.mk>
415
416SUBDIR:=	${SUBDIR:O}
417
418SUBDIR_PARALLEL=
419
420.include <bsd.subdir.mk>
421