1 # $NetBSD: Makefile,v 1.82 1998/05/25 20:06:39 tv Exp $ 2 # from: @(#)Makefile 8.3 (Berkeley) 1/7/94 3 4 .include <bsd.own.mk> # for EXPORTABLE_SYSTEM definition 5 # # and OBJECT_FMT definition 6 7 SUBDIR= apply apropos asa at audioctl banner basename bdes \ 8 biff cal calendar cap_mkdb checknr chflags chpass \ 9 cksum cmp col colcrt colrm column comm compress \ 10 crontab crunch ctags cut dirname du eject env \ 11 error expand false file find finger fmt fold fpr \ 12 from fsplit fstat ftp gencat getconf getopt gprof head \ 13 hexdump id indent ipcrm ipcs join jot kdump ktrace \ 14 lam last lastcomm leave less lex locate lock \ 15 logger login logname look lorder m4 machine mail \ 16 make man menuc mesg mixerctl mkdep mkfifo mkstr modstat \ 17 msgc msgs netstat newsyslog nfsstat nice nohup pagesize \ 18 passwd paste patch pr printenv printf quota rdist \ 19 renice rev rlogin rpcgen rpcinfo rs rsh rup \ 20 ruptime rusers rwall rwho script sed shar shlock \ 21 showmount skey skeyinfo skeyinit soelim split \ 22 su systat tail talk tcopy tee tftp time \ 23 tip tn3270 touch tput tr true tset tsort tty ul \ 24 uname unexpand unifdef uniq units unvis users \ 25 uudecode uuencode vacation vgrind vi vis vmstat w \ 26 wall wc what whatis whereis which who whois window \ 27 write xargs xinstall xlint xstr yacc yes ypcat \ 28 ypmatch ypwhich 29 30 .if make(clean) || make(cleandir) 31 SUBDIR+=elf2aout elf2ecoff elfstrip fdformat ldd strip telnet 32 .else 33 34 # XXX Keep telnet(1) and libtelnet from getting out of sync during the build 35 # XXX process. 36 .if !exists(${.CURDIR}/../domestic/usr.bin/telnet) || \ 37 defined(EXPORTABLE_SYSTEM) 38 SUBDIR+=telnet 39 .endif 40 41 # Don't use the standard a.out tool chain on non-aout (ELF) platforms. 42 # On ELF platforms, build the ELF ldd. 43 .if (${OBJECT_FMT} != "ELF") 44 SUBDIR+= strip 45 .else 46 SUBDIR+= ldd 47 .endif 48 49 .if (${MACHINE_ARCH} == "i386" || ${MACHINE} == "atari" || \ 50 ${MACHINE_ARCH} == "arm32" || ${MACHINE_ARCH} == "sparc") 51 SUBDIR+= fdformat 52 .endif 53 54 # Build ELF to {ecoff, aout} tools on mips, for old bootblocks/PROMs. 55 .if (${MACHINE_ARCH} == "mips") 56 SUBDIR+= elf2aout elf2ecoff elfstrip 57 .endif 58 59 .endif # make(clean) || make(cleandir) 60 61 .include <bsd.subdir.mk> 62