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