1 # $NetBSD: Makefile,v 1.81 1998/02/23 10:09:32 jonathan 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 strings 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+=ar elf2aout elf2ecoff elfstrip fdformat \ 32 ldd nm ranlib size strip telnet 33 .else 34 35 # XXX Keep telnet(1) and libtelnet from getting out of sync during the build 36 # XXX process. 37 .if !exists(${.CURDIR}/../domestic/usr.bin/telnet) || \ 38 defined(EXPORTABLE_SYSTEM) 39 SUBDIR+=telnet 40 .endif 41 42 # Don't use the standard a.out tool chain on non-aout (ELF) platforms. 43 # On ELF platforms, build the ELF ldd. 44 .if (${OBJECT_FMT} != "ELF") 45 SUBDIR+= ar nm ranlib size strip 46 .else 47 SUBDIR+= ldd 48 .endif 49 50 .if (${MACHINE_ARCH} == "i386" || ${MACHINE} == "atari" || \ 51 ${MACHINE_ARCH} == "arm32" || ${MACHINE_ARCH} == "sparc") 52 SUBDIR+= fdformat 53 .endif 54 55 # Build ELF to {ecoff, aout} tools on mips, for old bootblocks/PROMs. 56 .if (${MACHINE_ARCH} == "mips") 57 SUBDIR+= elf2aout elf2ecoff elfstrip 58 .endif 59 60 .endif # make(clean) || make(cleandir) 61 62 .include <bsd.subdir.mk> 63