1 # $NetBSD: Makefile,v 1.79 1997/11/11 00:13:10 scottr Exp $ 2 # from: @(#)Makefile 8.3 (Berkeley) 1/7/94 3 4 .include <bsd.own.mk> # for EXPORTABLE_SYSTEM definition 5 6 SUBDIR= apply apropos asa at audioctl banner basename bdes \ 7 biff cal calendar cap_mkdb checknr chflags chpass \ 8 cksum cmp col colcrt colrm column comm compress \ 9 crontab crunch ctags cut dirname du eject env \ 10 error expand false file find finger fmt fold fpr \ 11 from fsplit fstat ftp gencat getconf getopt head \ 12 hexdump id indent ipcrm ipcs join jot kdump ktrace \ 13 lam last lastcomm leave less lex locate lock \ 14 logger login logname look lorder m4 machine mail \ 15 make man menuc mesg mixerctl mkdep mkfifo mkstr modstat \ 16 msgc msgs netstat newsyslog nfsstat nice nohup pagesize \ 17 passwd paste patch pr printenv printf quota rdist \ 18 renice rev rlogin rpcgen rpcinfo rs rsh rup \ 19 ruptime rusers rwall rwho script sed shar shlock \ 20 showmount skey skeyinfo skeyinit soelim split \ 21 strings su systat tail talk tcopy tee tftp time \ 22 tip tn3270 touch tput tr true tset tsort tty ul \ 23 uname unexpand unifdef uniq units unvis users \ 24 uudecode uuencode vacation vgrind vi vis vmstat w \ 25 wall wc what whatis whereis which who whois window \ 26 write xargs xinstall xlint xstr yacc yes ypcat \ 27 ypmatch ypwhich 28 29 .if make(clean) || make(cleandir) 30 SUBDIR+=ar elf2aout elf2ecoff elfstrip fdformat \ 31 gprof ldd nm ranlib size 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 (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "mips" && \ 44 ${MACHINE_ARCH} != "powerpc") 45 SUBDIR+= ar gprof 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