summaryrefslogtreecommitdiff
path: root/usr.bin/Makefile
blob: a4716f495241a758b3bdd7597d5c739f3776eb9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#	$NetBSD: Makefile,v 1.86 1998/09/05 14:58:50 lukem Exp $
#	from: @(#)Makefile	8.3 (Berkeley) 1/7/94

.include <bsd.own.mk>			# for EXPORTABLE_SYSTEM definition
#					# and OBJECT_FMT definition

SUBDIR=	apply apropos asa at audioctl banner basename bdes \
	biff cal calendar cap_mkdb checknr chflags chpass \
	cksum cmp col colcrt colrm column comm compress \
	crontab crunch ctags cut dirname du eject env \
	error expand false file find finger fmt fold fpr \
	from fsplit fstat ftp gencat getconf getopt gprof head \
	hexdump id indent ipcrm ipcs join jot kdump ktrace \
	lam last lastcomm leave less lex locate lock \
	logger login logname look lorder m4 machine mail \
	make man menuc mesg midiplay mixerctl mkdep mkfifo mkstr modstat \
	msgc msgs netstat newsyslog nfsstat nice nohup pagesize \
	passwd paste patch pr printenv printf quota rdist \
	renice rev rlogin rpcgen rpcinfo rs rsh rup \
	ruptime rusers rwall rwho script sed shar shlock \
	showmount skey skeyinfo skeyinit soelim split \
	su systat tail talk tcopy tee telnet tftp time \
	tip tn3270 touch tput tr true tset tsort tty ul \
	uname unexpand unifdef uniq units unvis usbhidctl users \
	uudecode uuencode vacation vgrind vi vis vmstat w \
	wall wc what whatis whereis which who whois window \
	write xargs xinstall xlint xstr yacc yes ypcat \
	ypmatch ypwhich

.if	make(clean) || make(cleandir) || make(distclean)
SUBDIR+=elf2aout elf2ecoff elfstrip fdformat ldd strip telnet
.else

# Don't use the standard a.out tool chain on non-aout (ELF) platforms.
# On ELF platforms, build the  ELF ldd.
.if (${OBJECT_FMT} != "ELF")
SUBDIR+= strip
.else
SUBDIR+= ldd
.endif

.if (${MACHINE_ARCH} == "i386" || ${MACHINE} == "atari" || \
     ${MACHINE_ARCH} == "arm32" || ${MACHINE_ARCH} == "sparc")
SUBDIR+= fdformat
.endif

# Build ELF to {ecoff, aout} tools on mips, for old bootblocks/PROMs.
.if (${MACHINE_ARCH} == "mips")
SUBDIR+= elf2aout elf2ecoff elfstrip
.endif

.endif	# make(clean) || make(cleandir) || make(distclean)

.include <bsd.subdir.mk>