Make depend work (mostly) for host compiler, make libraries compile for target
authorNick Downing <downing.nick@gmail.com>
Thu, 5 Jan 2017 15:59:57 +0000 (02:59 +1100)
committerNick Downing <downing.nick@gmail.com>
Thu, 5 Jan 2017 16:01:04 +0000 (03:01 +1100)
379 files changed:
.gitignore
Makefile
bin/Makefile
bin/adb/Makefile
bin/ar/Makefile
bin/ar/n.sh
bin/as/Makefile
bin/as/n.sh
bin/awk/Makefile
bin/cc/Makefile
bin/cc/n.sh
bin/chflags/Makefile
bin/chpass/Makefile
bin/csh/Makefile
bin/diff/Makefile
bin/disklabel/Makefile
bin/hostname/Makefile
bin/ld/Makefile
bin/ld/n.sh
bin/login/Makefile
bin/ls/Makefile
bin/make/Makefile
bin/n.sh
bin/nm/Makefile
bin/nm/n.sh
bin/passwd/Makefile
bin/ping/Makefile
bin/sed/Makefile
bin/sh/Makefile
bin/strip.c [deleted file]
bin/strip/Makefile [new file with mode: 0644]
bin/strip/include/a.out.h [new symlink]
bin/strip/include/nlist.h [new symlink]
bin/strip/include/sys/exec.h [new symlink]
bin/strip/krcompat.h [new file with mode: 0644]
bin/strip/n.sh [new file with mode: 0755]
bin/strip/strip.c [new file with mode: 0644]
bin/stty/Makefile
bin/sysctl/Makefile
bin/tcsh/Makefile
bin/test/Makefile
bin/tp/Makefile
etc/Makefile
etc/root/Makefile
etc/uucp/Makefile
games/Makefile
games/adventure/Makefile
games/atc/Makefile
games/backgammon/Makefile
games/battlestar/Makefile
games/boggle/Makefile
games/btlgammon/Makefile
games/cribbage/Makefile
games/fortune/Makefile
games/hack/Makefile
games/hangman/Makefile
games/hunt/Makefile
games/mille/Makefile
games/monop/Makefile
games/pdp/Makefile
games/pdp/chess/Makefile
games/pdp/zork/Makefile
games/phantasia/Makefile
games/quiz/Makefile
games/robots/Makefile
games/rogue/Makefile
games/sail/Makefile
games/snake/Makefile
games/trek/Makefile
games/warp/Makefile
games/words/Makefile
include/Makefile
install.sh [new file with mode: 0755]
lib/Makefile
lib/c2/Makefile
lib/c2/n.sh
lib/ccom/Makefile
lib/ccom/c12.c
lib/ccom/n.sh
lib/cpp/Makefile
lib/cpp/n.sh
lib/cpp/o.sh [new file with mode: 0755]
lib/libc/Makefile
lib/libc/gen/n.sh
lib/libc/n.sh
lib/libc/pdp/csu/Makefile
lib/libkern/Makefile
lib/libkern/n.sh
lib/pcc/Makefile
libexec/acctd/Makefile
libexec/comsat/Makefile
libexec/ctimed/Makefile
libexec/fingerd/Makefile
libexec/ftpd/Makefile
libexec/getNAME/Makefile
libexec/getty/Makefile
libexec/identd/Makefile
libexec/identd/src/Makefile
libexec/makekey/Makefile
libexec/popper/Makefile
libexec/rexecd/Makefile
libexec/rlogind/Makefile
libexec/rshd/Makefile
libexec/talkd/Makefile
libexec/tcpd/Makefile
libexec/telnetd/Makefile
libexec/tftpd/Makefile
local/Makefile
local/afio/Makefile
local/ddd/Makefile
local/mkovmake/Makefile
local/mp/Makefile
local/mtools/Makefile
local/qterm/Makefile
local/welcome/Makefile
local/zmodem/Makefile
man/Makefile
man/man1/Makefile
man/man2/Makefile
man/man3/Makefile
man/man3f/Makefile
man/man4/Makefile
man/man5/Makefile
man/man6/Makefile
man/man7/Makefile
man/man8/Makefile
n.sh
new/ansi/Makefile
new/bm/Makefile
new/crash/Makefile
new/jove/Makefile
new/l11/Makefile
new/la/Makefile
new/m11/Makefile
new/nntp/support/Makefile
new/notes/man/Makefile
new/notes/src/Makefile
new/pathalias/Makefile
new/rcs/man/Makefile
new/rcs/src/Makefile
new/vmsbackup/Makefile
o.sh
old/Makefile
old/arcv/Makefile
old/checkobj/Makefile
old/compact/Makefile
old/dump/Makefile
old/nmcoll/Makefile
old/oldassn/Makefile
old/shortc/Makefile
old/v6/Makefile
sbin/XNSrouted/Makefile
sbin/badsect/Makefile
sbin/clri/Makefile
sbin/dcheck/Makefile
sbin/dmesg/Makefile
sbin/dump/Makefile
sbin/dumpfs/Makefile
sbin/fsck/Makefile
sbin/gt307/Makefile
sbin/icheck/Makefile
sbin/ifconfig/Makefile
sbin/init/Makefile
sbin/mkfs/Makefile
sbin/mknod/Makefile
sbin/mkpasswd/Makefile
sbin/mount/Makefile
sbin/ncheck/Makefile
sbin/newfs/Makefile
sbin/quotacheck/Makefile
sbin/reboot/Makefile
sbin/restor/Makefile
sbin/route/Makefile
sbin/routed/Makefile
sbin/savecore/Makefile
sbin/shutdown/Makefile
sbin/slattach/Makefile
sbin/swapon/Makefile
sbin/testnet/Makefile
sbin/tunefs/Makefile
sbin/umount/Makefile
share/adb/Makefile
share/font/Makefile
share/fontinfo/Makefile
share/learn/Makefile
share/lint/Makefile
share/me/Makefile
share/misc/Makefile
share/ms/Makefile
share/termcap/Makefile
share/tmac/Makefile
share/zoneinfo/Makefile
sys/CURLY/Makefile
sys/GENERIC/Makefile
sys/GENERIC/n.sh
sys/QT/Makefile
sys/autoconfig/Makefile
sys/pdpstand/Makefile
ucb/Mail/Makefile
ucb/Makefile
ucb/compress/Makefile
ucb/dbx/Makefile
ucb/error/Makefile
ucb/ex/Makefile
ucb/finger/Makefile
ucb/fp/Makefile
ucb/ftp/Makefile
ucb/indent/Makefile
ucb/lisp/Makefile
ucb/lock/Makefile
ucb/man/Makefile
ucb/more/Makefile
ucb/msgs/Makefile
ucb/netstat/Makefile
ucb/pascal/pi/Makefile
ucb/pascal/px/Makefile
ucb/pascal/pxp/Makefile
ucb/rdist/Makefile
ucb/sendbug/Makefile
ucb/strcompact/Makefile
ucb/strcompact/n.sh
ucb/symcompact/Makefile
ucb/symcompact/n.sh
ucb/symdump/Makefile
ucb/symdump/n.sh
ucb/symorder/Makefile
ucb/symorder/n.sh
ucb/talk/Makefile
ucb/tftp/Makefile
ucb/tn3270/Makefile
ucb/tset/Makefile
ucb/vgrind/Makefile
ucb/vlp/Makefile
ucb/window/Makefile
usr.bin/Makefile
usr.bin/at/Makefile
usr.bin/calendar/Makefile
usr.bin/dc/Makefile
usr.bin/diction/Makefile
usr.bin/diff3/Makefile
usr.bin/eqn/Makefile
usr.bin/f77/Makefile
usr.bin/find/Makefile
usr.bin/fstat/Makefile
usr.bin/graph/Makefile
usr.bin/id/Makefile
usr.bin/learn/Makefile
usr.bin/lex/Makefile
usr.bin/lint/Makefile
usr.bin/m4/Makefile
usr.bin/mkerrlst/Makefile
usr.bin/neqn/Makefile
usr.bin/patch/Makefile
usr.bin/plot/Makefile
usr.bin/printf/Makefile
usr.bin/prof/Makefile
usr.bin/ranlib/Makefile
usr.bin/ranlib/n.sh
usr.bin/ratfor/Makefile
usr.bin/refer/Makefile
usr.bin/renice/Makefile
usr.bin/roff/nroff/Makefile
usr.bin/roff/nroff_term/Makefile
usr.bin/roff/troff/Makefile
usr.bin/shar/Makefile
usr.bin/spell/Makefile
usr.bin/struct/Makefile
usr.bin/tbl/Makefile
usr.bin/tip/Makefile
usr.bin/tip/aculib/Makefile
usr.bin/uname/Makefile
usr.bin/uucp/Makefile
usr.bin/uucp/aculib/Makefile
usr.bin/whereis/Makefile
usr.bin/xargs/Makefile
usr.bin/xinstall/Makefile
usr.bin/yacc/Makefile
usr.bin/yacc/dextern.h [moved from usr.bin/yacc/dextern with 74% similarity]
usr.bin/yacc/files.h [moved from usr.bin/yacc/files with 71% similarity]
usr.bin/yacc/krcompat.h [new file with mode: 0644]
usr.bin/yacc/n.sh [new file with mode: 0755]
usr.bin/yacc/y.h [new file with mode: 0644]
usr.bin/yacc/y1.c
usr.bin/yacc/y2.c
usr.bin/yacc/y3.c
usr.bin/yacc/y4.c
usr.lib/lib2648/Makefile
usr.lib/libF77/Makefile
usr.lib/libF77/Version.c
usr.lib/libF77/mkvers [deleted file]
usr.lib/libF77/profiled/Version
usr.lib/libI77/Makefile
usr.lib/libI77/Version [deleted file]
usr.lib/libI77/Version.c
usr.lib/libI77/mkvers [deleted file]
usr.lib/libI77/profiled/Version
usr.lib/libU77/Makefile
usr.lib/libU77/Version [deleted file]
usr.lib/libU77/mkvers [deleted file]
usr.lib/libcurses/Makefile
usr.lib/libdbm/Makefile
usr.lib/liberrlst/Makefile
usr.lib/libident/Makefile
usr.lib/libln/Makefile
usr.lib/libmp/Makefile
usr.lib/libom/Makefile
usr.lib/libplot/Makefile
usr.lib/libplot/aed/Makefile
usr.lib/libplot/bitgraph/Makefile
usr.lib/libplot/dumb/Makefile
usr.lib/libplot/gigi/Makefile
usr.lib/libplot/hp2648/Makefile
usr.lib/libplot/hp7221/Makefile
usr.lib/libplot/imagen/Makefile
usr.lib/libplot/plot/Makefile
usr.lib/libplot/t300/Makefile
usr.lib/libplot/t300s/Makefile
usr.lib/libplot/t4013/Makefile
usr.lib/libplot/t4014/Makefile
usr.lib/libplot/t450/Makefile
usr.lib/libplot/tf77/Makefile
usr.lib/libplot/vt0/Makefile
usr.lib/libstubs/Makefile
usr.lib/libtermlib/Makefile
usr.lib/libutil/Makefile
usr.lib/libvmf/n.sh
usr.lib/liby/Makefile
usr.sbin/ac/Makefile
usr.sbin/accton/Makefile
usr.sbin/arff/Makefile
usr.sbin/arp/Makefile
usr.sbin/bad144/Makefile
usr.sbin/catman/Makefile
usr.sbin/chown/Makefile
usr.sbin/chroot/Makefile
usr.sbin/config/Makefile
usr.sbin/dev_mkdb/Makefile
usr.sbin/diskpart/Makefile
usr.sbin/edquota/Makefile
usr.sbin/flcopy/Makefile
usr.sbin/gettable/Makefile
usr.sbin/htable/Makefile
usr.sbin/implog/Makefile
usr.sbin/implogd/Makefile
usr.sbin/inetd/Makefile
usr.sbin/kgmon/Makefile
usr.sbin/lpr/Makefile
usr.sbin/lpr/filters/Makefile
usr.sbin/makewhatis/Makefile
usr.sbin/mkhosts/Makefile
usr.sbin/mklost+found/Makefile
usr.sbin/mkproto/Makefile
usr.sbin/named/named/Makefile
usr.sbin/named/tools/Makefile
usr.sbin/named/tools/nslookup/Makefile
usr.sbin/ntp/Makefile
usr.sbin/ntp/man/Makefile
usr.sbin/pstat/Makefile
usr.sbin/quot/Makefile
usr.sbin/quotaon/Makefile
usr.sbin/repquota/Makefile
usr.sbin/rmt/Makefile
usr.sbin/rwhod/Makefile
usr.sbin/rxformat/Makefile
usr.sbin/sa/Makefile
usr.sbin/sendmail.MX/aux/Makefile
usr.sbin/sendmail.MX/lib/Makefile
usr.sbin/sendmail.MX/src/Makefile
usr.sbin/sendmail/Makefile
usr.sbin/sendmail/aux/Makefile
usr.sbin/sendmail/src/Makefile
usr.sbin/sysgen/Makefile
usr.sbin/syslogd/Makefile
usr.sbin/timed/Makefile
usr.sbin/traceroute/Makefile
usr.sbin/trpt/Makefile
usr.sbin/trsp/Makefile
usr.sbin/update/Makefile
usr.sbin/vipw/Makefile

index 20a3651..3f8d387 100644 (file)
@@ -9,6 +9,7 @@ bin/as/as
 bin/ld/ld
 bin/size
 bin/nm/nm
+bin/strip/strip
 lib/c2/c2
 lib/ccom/c0
 lib/ccom/c1
@@ -62,9 +63,35 @@ ucb/strcompact/strcompact
 ucb/symcompact/symcompact
 ucb/symdump/symdump
 ucb/symorder/symorder
+usr.lib/libF77/mkvers
+usr.lib/libF77/Version
+usr.lib/libI77/mkvers
+usr.lib/libI77/Version
+usr.lib/libU77/mkvers
+usr.lib/libU77/Version
+usr.lib/libcurses/libcurses
+usr.lib/libcurses/libcurses_p
+usr.lib/libident/ident-tester
+usr.lib/libident/lookup-tester
+usr.lib/libplot/lib300
+usr.lib/libplot/lib300s
+usr.lib/libplot/lib4013
+usr.lib/libplot/lib4014
+usr.lib/libplot/lib450
+usr.lib/libplot/libf77plot
+usr.lib/libplot/libplot
+usr.lib/libplot/libplot2648
+usr.lib/libplot/libplot7221
+usr.lib/libplot/libplotaed
+usr.lib/libplot/libplotbg
+usr.lib/libplot/libplotdumb
+usr.lib/libplot/libplotgigi
+usr.lib/libplot/libplotimagen
+usr.lib/libplot/libvt0
 usr.lib/libvmf/genlib
 usr.lib/libvmf/genlib_p
 usr.bin/lorder
 usr.bin/mkdep
 usr.bin/nohup
 usr.bin/ranlib/ranlib
+usr.bin/yacc/yacc
index 737c0c8..aa67641 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -119,6 +119,6 @@ clean:
 
 # Nick
 depend:
-       for i in ${LIBDIR} ${SRCDIR}; do \
+       -for i in ${LIBDIR} ${SRCDIR}; do \
                (cd $$i; make ${MFLAGS} depend); \
        done
index 88f5367..e2cb585 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -11,8 +12,8 @@ SEPFLAG= -i
 
 # Programs that live in subdirectories, and have makefiles of their own.
 #
-SUBDIR=        adb ar as awk chflags chpass csh diff disklabel hostname ld login \
-       ls make nm passwd ping sed sh stty sysctl tcsh test tp
+SUBDIR=        adb ar as awk cc chflags chpass csh diff disklabel hostname ld login \
+       ls make nm passwd ping sed sh strip stty sysctl tcsh test tp
 
 # Shell scripts that need only be installed and are never removed.
 #
@@ -21,7 +22,7 @@ SCRIPT=       false true
 # C programs that live in the current directory and do not need
 # explicit make lines.
 #
-STD=   cat cc chgrp chmod cmp cp date dd du echo ed grep hostid \
+STD=   cat chgrp chmod cmp cp date dd du echo ed grep hostid \
        kill ln mkdir mt mv nice od pagesize pr \
        pwd rm rmail rmdir size sync tar tee time who
 
@@ -45,10 +46,8 @@ KMEM=        ps
 #
 TTY=   wall write
 
-# 'strip' is handled specially because 'install -s' now uses 'strip' and
-# thus we can't do a 'install -s strip /bin/strip' without an error.
-#
-BINS=  ${STD} ${NSTD} ${SETUID} ${OPERATOR} ${KMEM} ${TTY} strip
+#BINS= ${STD} ${NSTD} ${SETUID} ${OPERATOR} ${KMEM} ${TTY}
+BINS=  ${STD} ${SETUID} ${OPERATOR} ${KMEM} ${TTY}
 
 all:   ${SUBDIR} ${BINS}
 
@@ -57,25 +56,22 @@ ${SUBDIR}: FRC
 
 FRC:
 
-
-${STD} ${SETUID} ${KMEM} ${OPERATOR} ${TTY} strip:
+${STD} ${SETUID} ${KMEM} ${OPERATOR} ${TTY}:
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ $@.c
 
 install: ${BINS}
-       install -s -m 751 -g staff ${STD} ${NSTD} ${DESTDIR}/bin
+       ${INSTALL} -s -m 751 -g staff ${STD} ${NSTD} ${DESTDIR}/bin
        -for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
-       -for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done
+       -for i in ${SCRIPT}; do (${INSTALL} -c $$i.sh ${DESTDIR}/bin/$$i); done
        -for i in ${SETUID}; do \
-               (install -o root -m 4751 -s $$i ${DESTDIR}/bin/$$i); done
+               (${INSTALL} -o root -m 4751 -s $$i ${DESTDIR}/bin/$$i); done
        -for i in ${OPERATOR}; do \
-               (install -g operator -m 2751 -s $$i ${DESTDIR}/bin/$$i); done
+               (${INSTALL} -g operator -m 2751 -s $$i ${DESTDIR}/bin/$$i); done
        -for i in ${KMEM}; do \
-               (install -g kmem -m 2751 -s $$i ${DESTDIR}/bin/$$i); done
+               (${INSTALL} -g kmem -m 2751 -s $$i ${DESTDIR}/bin/$$i); done
        -for i in ${TTY}; do \
-               (install -g tty -m 2751 -s $$i ${DESTDIR}/bin/$$i); done
-       -install -s -m 751 -g staff strip ${DESTDIR}/bin/xstrip
-       -mv ${DESTDIR}/bin/xstrip ${DESTDIR}/bin/strip
+               (${INSTALL} -g tty -m 2751 -s $$i ${DESTDIR}/bin/$$i); done
        rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e
 
 clean:
@@ -86,7 +82,7 @@ clean:
 #depend: expr.c
 depend:
        for i in ${BINS}; do \
-           ${CC} -M ${INCPATH} $$i.c | sed 's/\.o//' | \
+           ${CC} -M ${INCPATH} $$i.c | sed 's/NICK_DISABLED_THIS\.o//' | \
            awk ' { if ($$1 != prev) \
                { if (rec != "") print rec; rec = $$0; prev = $$1; } \
                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
@@ -109,482 +105,468 @@ expr: expr.o
 
 # DO NOT DELETE THIS LINE -- make depend uses it
 
-cat: cat.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-cat: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cat: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-cat: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cat: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-
-chgrp: chgrp.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/grp.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
-chgrp: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-chmod: chmod.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-chmod: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-cmp: cmp.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-cmp: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-cp: cp.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/time.h
-cp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: date.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-date: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/time.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-date: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-date: /home/nick/src/211bsd.git/stage/usr/include/syslog.h
-date: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
-date: /home/nick/src/211bsd.git/stage/usr/include/tzfile.h
-date: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-date: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-date: /home/nick/src/211bsd.git/stage/usr/include/strings.h
-date: /home/nick/src/211bsd.git/stage/usr/include/string.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
-date: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-date: /home/nick/src/211bsd.git/stage/usr/include/sys/socket.h
-date: /home/nick/src/211bsd.git/stage/usr/include/netinet/in.h
-date: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
-date: /home/nick/src/211bsd.git/stage/usr/include/protocols/timed.h
-dd: dd.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-dd: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-du: du.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-du: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-du: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-du: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-echo: echo.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-ed: ed.c /home/nick/src/211bsd.git/stage/usr/include/signal.h
-ed: /home/nick/src/211bsd.git/stage/usr/include/sgtty.h
-ed: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
-ed: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
-ed: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
-ed: /home/nick/src/211bsd.git/stage/usr/include/setjmp.h
-grep: grep.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-grep: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-hostid: hostid.c /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/string.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-hostid: /home/nick/src/211bsd.git/stage/usr/include/arpa/inet.h
-kill: kill.c /home/nick/src/211bsd.git/stage/usr/include/signal.h
-kill: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-ln: ln.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-ln: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ln: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-ln: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ln: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-ln: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-mkdir: mkdir.c /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mkdir: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-mkdir: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mkdir: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-mkdir: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-mkdir: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-mkdir: /home/nick/src/211bsd.git/stage/usr/include/string.h
-mkdir: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mt: mt.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/sys/mtio.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/htreg.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/tmreg.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/tsreg.h
-mt: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/tmscpreg.h
-mv: mv.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/time.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-mv: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-nice: nice.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-nice: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-nice: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-nice: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-nice: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-nice: /home/nick/src/211bsd.git/stage/usr/include/time.h
-nice: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-nice: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
-od: od.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-od: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-od: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-od: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-od: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-pagesize: pagesize.c
-pr: pr.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-pr: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-pr: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-pr: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-pr: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-pr: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-pwd: pwd.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-pwd: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rm: rm.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-rm: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rmail: rmail.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-rmail: /home/nick/src/211bsd.git/stage/usr/include/string.h
-rmail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rmail: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-rmail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rmail: /home/nick/src/211bsd.git/stage/usr/include/sysexits.h
-rmail: /home/nick/src/211bsd.git/stage/usr/include/paths.h
-rmdir: rmdir.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-size: size.c /home/nick/src/211bsd.git/stage/usr/include/a.out.h
-size: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
-size: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-size: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-size: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-size: /home/nick/src/211bsd.git/stage/usr/include/nlist.h
-size: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-size: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-size: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
-size: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-sync: sync.c
-tar: tar.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/mtio.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/time.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-tar: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tee: tee.c /home/nick/src/211bsd.git/stage/usr/include/signal.h
-tee: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tee: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-tee: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-tee: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-tee: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-time: time.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-time: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-time: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-time: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-time: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-time: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-time: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-time: /home/nick/src/211bsd.git/stage/usr/include/time.h
-time: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-time: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
-who: who.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-who: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
-who: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
-who: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-who: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-who: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-who: /home/nick/src/211bsd.git/stage/usr/include/string.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-who: /home/nick/src/211bsd.git/stage/usr/include/time.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-who: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
-who: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-
-mail: mail.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/setjmp.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/string.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sysexits.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/paths.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/time.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/sys/socket.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/netinet/in.h
-mail: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
-rcp: rcp.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/time.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/signal.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/netinet/in.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/string.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-rcp: /home/nick/src/211bsd.git/stage/usr/include/ctype.h ./pathnames.h
-su: su.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-su: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
-su: /home/nick/src/211bsd.git/stage/usr/include/grp.h
-su: /home/nick/src/211bsd.git/stage/usr/include/syslog.h
-su: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
-su: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-su: /home/nick/src/211bsd.git/stage/usr/include/time.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-su: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
-df: df.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-df: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-df: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/mount.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/fs.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-df: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-df: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-df: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-df: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-df: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
-df: /home/nick/src/211bsd.git/stage/usr/include/string.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-df: /home/nick/src/211bsd.git/stage/usr/include/sys/fs.h
-df: /home/nick/src/211bsd.git/stage/usr/include/fstab.h
-ps: ps.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/a.out.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/nlist.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/string.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/user.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/machine/fperr.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/time.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/errno.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/sys/proc.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
-ps: /home/nick/src/211bsd.git/stage/usr/include/OLD/psout.h
-wall: wall.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/time.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-wall: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-write: write.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-write: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
-write: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-write: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-write: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-write: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
-write: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-write: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
-write: /home/nick/src/211bsd.git/stage/usr/include/errno.h
-write: /home/nick/src/211bsd.git/stage/usr/include/string.h
-write: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-write: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
-write: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-write: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
-write: /home/nick/src/211bsd.git/stage/usr/include/time.h
-write: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-strip: strip.c /home/nick/src/211bsd.git/stage/usr/include/a.out.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/nlist.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/signal.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
-strip: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cat.o: cat.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+cat.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cat.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+cat.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cat.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+chgrp.o: chgrp.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/grp.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
+chgrp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+chmod.o: chmod.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+chmod.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+cmp.o: cmp.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+cmp.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+cp.o: cp.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+cp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: date.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/syslog.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/tzfile.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/strings.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/sys/socket.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/netinet/in.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
+date.o: /home/nick/src/211bsd.git/stage/usr/include/protocols/timed.h
+dd.o: dd.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+dd.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+du.o: du.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+du.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+echo.o: echo.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+ed.o: ed.c /home/nick/src/211bsd.git/stage/usr/include/signal.h
+ed.o: /home/nick/src/211bsd.git/stage/usr/include/sgtty.h
+ed.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
+ed.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
+ed.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
+ed.o: /home/nick/src/211bsd.git/stage/usr/include/setjmp.h
+grep.o: grep.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+grep.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+hostid.o: hostid.c /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+hostid.o: /home/nick/src/211bsd.git/stage/usr/include/arpa/inet.h
+kill.o: kill.c /home/nick/src/211bsd.git/stage/usr/include/signal.h
+kill.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+ln.o: ln.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+ln.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ln.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+ln.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ln.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+ln.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+mkdir.o: mkdir.c /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mkdir.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+mkdir.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mkdir.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+mkdir.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+mkdir.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+mkdir.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+mkdir.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mt.o: mt.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/sys/mtio.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/htreg.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/tmreg.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/tsreg.h
+mt.o: /home/nick/src/211bsd.git/stage/usr/include/pdpuba/tmscpreg.h
+mv.o: mv.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+mv.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+nice.o: nice.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+nice.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+nice.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+nice.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+nice.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+nice.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+nice.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+nice.o: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
+od.o: od.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+od.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+od.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+od.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+od.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+pagesize.o: pagesize.c
+pr.o: pr.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+pr.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+pr.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+pr.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+pr.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+pr.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+pwd.o: pwd.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+pwd.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rm.o: rm.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+rm.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rmail.o: rmail.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+rmail.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+rmail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rmail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+rmail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rmail.o: /home/nick/src/211bsd.git/stage/usr/include/sysexits.h
+rmail.o: /home/nick/src/211bsd.git/stage/usr/include/paths.h
+rmdir.o: rmdir.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+size.o: size.c /home/nick/src/211bsd.git/stage/usr/include/a.out.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/nlist.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
+size.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+sync.o: sync.c
+tar.o: tar.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/mtio.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+tar.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tee.o: tee.c /home/nick/src/211bsd.git/stage/usr/include/signal.h
+tee.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tee.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+tee.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+tee.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+tee.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+time.o: time.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+time.o: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
+who.o: who.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
+who.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: mail.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/setjmp.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sysexits.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/paths.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/sys/socket.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/netinet/in.h
+mail.o: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
+rcp.o: rcp.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/signal.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/netinet/in.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/netdb.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+rcp.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h ./pathnames.h
+su.o: su.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/grp.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/syslog.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+su.o: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
+df.o: df.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/mount.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/fs.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/sys/fs.h
+df.o: /home/nick/src/211bsd.git/stage/usr/include/fstab.h
+ps.o: ps.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/a.out.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/nlist.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/user.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/machine/fperr.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/dir.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/resource.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/errno.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/sys/proc.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
+ps.o: /home/nick/src/211bsd.git/stage/usr/include/OLD/psout.h
+wall.o: wall.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/time.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+wall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+write.o: write.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/utmp.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/time.h
+write.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
 # DEPENDENCIES MUST END AT END OF FILE
 # IF YOU PUT STUFF HERE IT WILL GO AWAY
 # see make depend above
index 291eef2..44f8b06 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 DESTDIR= 
 CFLAGS=        -O -DNUM_SYMS_CACHE=50
 LDFLAGS=
@@ -12,7 +13,7 @@ adb: ${OFILES}
        ${CC} ${SEPFLAG} ${LDFLAGS} -o adb ${OFILES}
 
 install: adb
-       install -m 755 -s adb ${DESTDIR}/bin
+       ${INSTALL} -m 755 -s adb ${DESTDIR}/bin
 
 clean:
        -rm -f adb ${OFILES}
index 5354078..aa650b9 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #      @(#)Makefile    5.8 (Berkeley) 3/10/91
 
 CFLAGS=-O -I.
@@ -19,17 +21,15 @@ ar: ${OBJS} ${EXTRAOBJ}
        cc ${SEPFLAG} -o ar ${OBJS} ${EXTRAOBJ}
 
 ar.1.0: ar.1
-       nroff -man ar.1 > ar.1.0
+       ${MANROFF} ar.1 > ar.1.0
 
 ar.5.0: ar.5.5
-       nroff -man ar.5.5 > ar.5.0
+       ${MANROFF} ar.5.5 > ar.5.0
 
 install: all
-       install -s -m 755 ar ${DESTDIR}/bin/ar
-#      install -c -o bin -g bin -m 444 ar.1.0 ${DESTDIR}/usr/man/cat1/ar.0
-#      install -c -o bin -g bin -m 444 ar.5.0 ${DESTDIR}/usr/man/cat5/ar.0
-       install -c -m 444 ar.1.0 ${DESTDIR}/usr/man/cat1/ar.0
-       install -c -m 444 ar.5.0 ${DESTDIR}/usr/man/cat5/ar.0
+       ${INSTALL} -s -m 755 ar ${DESTDIR}/bin/ar
+       ${INSTALL} -c -o bin -g bin -m 444 ar.1.0 ${DESTDIR}/usr/man/cat1/ar.0
+       ${INSTALL} -c -o bin -g bin -m 444 ar.5.0 ${DESTDIR}/usr/man/cat5/ar.0
 
 lint:
        lint -havx -I. ${SRCS} ${EXTRASRCS}
index 3b48e38..d6eaafa 100755 (executable)
@@ -1,8 +1,10 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/bin\/ar$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
 mkdir --parents "$ROOT/cross/usr/man/cat1"
 mkdir --parents "$ROOT/cross/usr/man/cat5"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 6e76721..ab9f949 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # makefile for as
 #
@@ -13,7 +14,7 @@ as: as0.o as2.o
        cc ${SEPFLAG} -o $@ as0.o as2.o
 
 install: all
-       install -s as ${DESTDIR}/bin
+       ${INSTALL} -s as ${DESTDIR}/bin
 
 clean:
        rm -f *.o a.out as core errs
index fa1fd80..1fa64c0 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/bin\/as$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 6bc5d01..3783afa 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.3     86/05/15
 #
 CFLAGS=-O
@@ -27,7 +28,7 @@ get:
        done
 
 install: awk
-       install -s awk ${DESTDIR}/bin
+       ${INSTALL} -s awk ${DESTDIR}/bin
 
 profile:       awk.g.o $(FILES) mon.o
        cc -p -i awk.g.o $(FILES) mon.o -lm
index f27fa7d..c06aa2c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # makefile for cc
 #
@@ -11,7 +12,7 @@ cc: cc.o
        cc ${SEPFLAG} -o $@ cc.o
 
 install: all
-       install -s cc ${DESTDIR}/bin
+       ${INSTALL} -s cc ${DESTDIR}/bin
 
 clean:
        rm -f *.o a.out cc core errs
index c1003ac..ef8edf0 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/bin\/cc$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" CROSSDIR="\\\"$ROOT/cross\\\"" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" CROSSDIR="\\\"$ROOT/cross\\\"" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index ad75fd5..0ad3b17 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  12/3/1994 - Steven Schultz
 #
@@ -17,7 +19,7 @@ chflags: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 chflags.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} chflags tags 
@@ -26,8 +28,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: chflags
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 chflags ${DESTDIR}/bin/chflags
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 chflags ${DESTDIR}/bin/chflags
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index ad88503..2811da2 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1988 The Regents of the University of California.
 # All rights reserved.
@@ -29,7 +31,7 @@ chpass: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 chpass.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} core chpass
@@ -41,10 +43,10 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ${MAN} chpass
-       install -s -o root -g bin -m 4755 chpass ${DESTDIR}/bin/chpass
+       ${INSTALL} -s -o root -g bin -m 4755 chpass ${DESTDIR}/bin/chpass
        rm -f ${DESTDIR}/bin/chfn; ln ${DESTDIR}/bin/chpass ${DESTDIR}/bin/chfn
        rm -f ${DESTDIR}/bin/chsh; ln ${DESTDIR}/bin/chpass ${DESTDIR}/bin/chsh
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
        rm -f ${DESTDIR}/usr/man/cat1/chfn.0
        rm -f ${DESTDIR}/usr/man/cat1/chsh.0
        -ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chfn.0
index 19691bf..2ad5b8d 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley Software License Agreement
@@ -44,7 +45,7 @@ LIBOBJS= ndbm.o getpwent.o
 
 # strings.o must be last since it can change when previous files compile
 csh: ${OBJS} strings.o
-       ar x /lib/libc.a ${LIBOBJS}
+       ${AR} x /lib/libc.a ${LIBOBJS}
        rm -f csh
        /bin/ld ${SEPFLAG} /lib/crt0.o ${BASE} \
                -Z ${OV1} \
@@ -92,7 +93,7 @@ vgrind:
        ${VGRIND} -t -x -h Index index >grind/index.t
 
 install: csh
-       install -m 755 -o bin -g bin -s csh ${DESTDIR}/bin/csh
+       ${INSTALL} -m 755 -o bin -g bin -s csh ${DESTDIR}/bin/csh
 
 clean:
        ${RM} -f a.out strings x.c xs.c csh errs
index 7b27185..8826263 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.1.1   1996/10/21
 #
 DIFF=  /bin/diff
@@ -23,5 +24,5 @@ clean:
        rm -f diff diffh ${OBJS} diffh.o
 
 install: all
-       install -s diff ${DESTDIR}/bin/diff
-       install -s diffh ${DESTDIR}/usr/libexec/diffh
+       ${INSTALL} -s diff ${DESTDIR}/bin/diff
+       ${INSTALL} -s diffh ${DESTDIR}/usr/libexec/diffh
index 92f5298..591a281 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #      @(#)Makefile    1.0 (2.11BSD) 1995/04/10
 
 DESTDIR=
@@ -11,18 +13,18 @@ disklabel: disklabel.o
        cc ${CFLAGS} ${SEPFLAG} -o $@ $@.o -lutil
 
 install: all
-       install -s -c -o bin -g operator -m 2550 disklabel \
+       ${INSTALL} -s -c -o bin -g operator -m 2550 disklabel \
                        ${DESTDIR}/bin/disklabel
-       install -c -o bin -g bin -m 444 disklabel.5.0 \
+       ${INSTALL} -c -o bin -g bin -m 444 disklabel.5.0 \
                        ${DESTDIR}${MANDIR}5/disklabel.0
-       install -c -o bin -g bin -m 444 disklabel.0 \
+       ${INSTALL} -c -o bin -g bin -m 444 disklabel.0 \
                        ${DESTDIR}/${MANDIR}8/disklabel.0
 
 clean:
        rm -f *.o *.0 *.core disklabel
 
 disklabel.0: disklabel.8
-       /usr/man/manroff disklabel.8 > disklabel.0
+       ${MANROFF} disklabel.8 > disklabel.0
 
 disklabel.5.0: disklabel.5.5
-       /usr/man/manroff disklabel.5.5 > disklabel.5.0
+       ${MANROFF} disklabel.5.5 > disklabel.5.0
index eb178c4..8be79dd 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1995/03/13 - Steven Schultz
 #
@@ -14,7 +16,7 @@ hostname: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 hostname.0: hostname.1
-       /usr/man/manroff hostname.1 > hostname.0
+       ${MANROFF} hostname.1 > hostname.0
 
 clean:
        rm -f ${OBJS} tags hostname hostname.0
@@ -23,8 +25,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -s -o bin -g bin -m 755 hostname ${DESTDIR}/bin
-       install -c -o bin -g bin -m 444 hostname.0 ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o bin -g bin -m 755 hostname ${DESTDIR}/bin
+       ${INSTALL} -c -o bin -g bin -m 444 hostname.0 ${DESTDIR}/usr/man/cat1
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 0eff576..5efa4ee 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 # Version 2.2 January 24, 1998
 
 # using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
@@ -17,10 +19,8 @@ ld: ${OBJS}
        ${CC} ${SEPFLAG} ${LDFLAGS} -o ld ${OBJS} -lvmf
 
 install: all
-#      install -c -s -o bin -g bin -m 755 ld ${DESTDIR}/bin/ld
-#      install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -c -s -m 755 ld ${DESTDIR}/bin/ld
-       install -c -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -c -s -o bin -g bin -m 755 ld ${DESTDIR}/bin/ld
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
 
 lint:
        lint -havx -I../ar ${SRCS}
@@ -29,5 +29,5 @@ clean:
        rm -f ${OBJS} ${MAN} ld
 
 ${MAN}: ${MANSRC}
-#      /usr/man/manroff ${MANSRC} > ${MAN}
-       nroff -man ${MANSRC} > ${MAN}
+#      ${MANROFF} ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
index 630bd46..f1902fd 100755 (executable)
@@ -1,7 +1,9 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/bin\/ld$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
 mkdir --parents "$ROOT/cross/usr/man/cat1"
-make CC="$CC" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= LDFLAGS="-L$ROOT/cross/usr/lib" && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= LDFLAGS="-L$ROOT/cross/usr/lib" && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 13feb0e..8746448 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -37,7 +38,7 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: login
-       install -s -o root -g bin -m 4755 login ${DESTDIR}/bin/login
+       ${INSTALL} -s -o root -g bin -m 4755 login ${DESTDIR}/bin/login
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index 8cc8402..0716b11 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  12/3/1994 - Steven Schultz
 #
@@ -20,7 +21,7 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ls
-       install -s -o root -g bin -m 755 ls ${DESTDIR}/bin/ls
+       ${INSTALL} -s -o root -g bin -m 755 ls ${DESTDIR}/bin/ls
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 1bb1e94..f3f60e9 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Description file for the Make command
 # Makefile 4.5 94/1/3
 
@@ -26,7 +27,7 @@ clean:
        -rm -f *.o gram.c make a.out errs x.c xs.c strings
 
 install: make
-       install -s make ${DESTDIR}/bin/make
+       ${INSTALL} -s make ${DESTDIR}/bin/make
 
 lint :  dosys.c doname.c files.c main.c misc.c ident.c gram.c
        ${LINT} dosys.c doname.c files.c main.c misc.c ident.c gram.c
index d5298db..8777063 100755 (executable)
--- a/bin/n.sh
+++ b/bin/n.sh
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/bin$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" SEPFLAG= size && \
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= size && \
 install -s size -m 755 "$ROOT/cross/bin"
index 2b1f325..0fe1c44 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
 # work if there is a ../../lib/libc.pdp/gen/nsym.o leftover from building libc
 #VPATH=../../lib/libc/pdp/gen
@@ -10,11 +11,10 @@ SEPFLAG=-i
 all:   nm
 
 nm: ${OBJS}
-       cc ${SEPFLAG} -o nm ${OBJS}
+       ${CC} ${SEPFLAG} -o nm ${OBJS}
 
 install: all
-#      install -c -s -o bin -g bin -m 755 nm ${DESTDIR}/bin/nm
-       install -c -s -m 755 nm ${DESTDIR}/bin/nm
+       ${INSTALL} -c -s -o bin -g bin -m 755 nm ${DESTDIR}/bin/nm
 
 lint:
        lint -havx -I../ar ${SRCS}
index 316176f..8e2073d 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/bin\/nm$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index a266f9f..5d5e6c7 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1988 The Regents of the University of California.
 # All rights reserved.
@@ -29,7 +31,7 @@ passwd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 ${MAN}: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} core passwd
@@ -41,8 +43,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ${MAN} passwd
-       install -s -o root -g bin -m 4755 passwd ${DESTDIR}/bin/passwd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 4755 passwd ${DESTDIR}/bin/passwd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index dd8f738..1b1f660 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 #      @(#)Makefile    1.1 (2.11BSD) 1996/1/28
 #
@@ -15,7 +17,7 @@ ping: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS}
 
 ping.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} ping
@@ -27,8 +29,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ${MAN} ping
-       install -s -o root -g bin -m 4751 ping ${DESTDIR}/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 4751 ping ${DESTDIR}/bin
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
 
 lint: ${SRCS}
        lint -haxc ${SRCS}
index ce1cf1e..cff61a9 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1     85/04/05
 #
 CFLAGS=-O -w
@@ -10,6 +11,6 @@ sed0.o: sed0.c sed.h
 sed1.o: sed1.c sed.h
 
 install: sed
-       install -s sed $(DESTDIR)/bin
+       ${INSTALL} -s sed $(DESTDIR)/bin
 clean:
        rm -f *.o sed
index 74b4185..a51be79 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.5     83/07/01
 #
 CFLAGS = -O -w
@@ -29,6 +30,6 @@ sh:
        cc ${SEPFLAG} -o sh *.o
 
 install: all
-       install -s sh $(DESTDIR)/bin
+       ${INSTALL} -s sh $(DESTDIR)/bin
 clean:
        rm -f sh *.o
diff --git a/bin/strip.c b/bin/strip.c
deleted file mode 100644 (file)
index c472ebe..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- */
-
-#if    defined(DOSCCS) && !defined(lint)
-char copyright[] =
-"@(#) Copyright (c) 1983 Regents of the University of California.\n\
- All rights reserved.\n";
-
-static char sccsid[] = "@(#)strip.c    5.1.1 (2.11BSD GTE) 1/1/94";
-#endif
-
-#include <a.out.h>
-#include <signal.h>
-#include <stdio.h>
-#include <sys/file.h>
-
-struct xexec head;
-int    status;
-
-main(argc, argv)
-       char *argv[];
-{
-       register i;
-
-       signal(SIGHUP, SIG_IGN);
-       signal(SIGINT, SIG_IGN);
-       signal(SIGQUIT, SIG_IGN);
-       for (i = 1; i < argc; i++) {
-               strip(argv[i]);
-               if (status > 1)
-                       break;
-       }
-       exit(status);
-}
-
-strip(name)
-       char *name;
-{
-       register f;
-       long size;
-
-       f = open(name, O_RDWR);
-       if (f < 0) {
-               fprintf(stderr, "strip: "); perror(name);
-               status = 1;
-               goto out;
-       }
-       if (read(f, (char *)&head, sizeof (head)) < 0 || N_BADMAG(head.e)) {
-               printf("strip: %s not in a.out format\n", name);
-               status = 1;
-               goto out;
-       }
-       if ((head.e.a_syms == 0) && ((head.e.a_flag & 1) != 0))
-               goto out;
-
-       size = N_DATOFF(head) + head.e.a_data;
-       head.e.a_syms = 0;
-       head.e.a_flag |= 1;
-       if (ftruncate(f, size) < 0) {
-               fprintf("strip: "); perror(name);
-               status = 1;
-               goto out;
-       }
-       (void) lseek(f, (long)0, L_SET);
-       (void) write(f, (char *)&head.e, sizeof (head.e));
-out:
-       close(f);
-}
diff --git a/bin/strip/Makefile b/bin/strip/Makefile
new file mode 100644 (file)
index 0000000..b2a3d01
--- /dev/null
@@ -0,0 +1,27 @@
+INSTALL=install
+# using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
+# work if there is a ../../lib/libc.pdp/gen/nsym.o leftover from building libc
+#VPATH=../../lib/libc/pdp/gen
+SRCS=strip.c ../../lib/libc/pdp/gen/nsym.c
+OBJS=strip.o ../../lib/libc/pdp/gen/nsym.o
+
+CFLAGS=-O
+SEPFLAG=-i
+
+all:   strip
+
+strip: ${OBJS}
+       ${CC} ${SEPFLAG} -o strip ${OBJS}
+
+# 'strip' is handled specially because '${INSTALL} -s' now uses 'strip' and
+# thus we can't do a '${INSTALL} -s strip /bin/strip' without an error.
+#
+install: all
+       -${INSTALL} -s -m 751 -g staff strip ${DESTDIR}/bin/xstrip
+       -mv ${DESTDIR}/bin/xstrip ${DESTDIR}/bin/strip
+
+lint:
+       lint -havx -I../ar ${SRCS}
+
+clean:
+       rm -f ${OBJS} *.0 strip
diff --git a/bin/strip/include/a.out.h b/bin/strip/include/a.out.h
new file mode 120000 (symlink)
index 0000000..9dd9aa8
--- /dev/null
@@ -0,0 +1 @@
+../../../include/a.out.h
\ No newline at end of file
diff --git a/bin/strip/include/nlist.h b/bin/strip/include/nlist.h
new file mode 120000 (symlink)
index 0000000..0c27973
--- /dev/null
@@ -0,0 +1 @@
+../../../include/nlist.h
\ No newline at end of file
diff --git a/bin/strip/include/sys/exec.h b/bin/strip/include/sys/exec.h
new file mode 120000 (symlink)
index 0000000..0f3c005
--- /dev/null
@@ -0,0 +1 @@
+../../../../sys/h/exec.h
\ No newline at end of file
diff --git a/bin/strip/krcompat.h b/bin/strip/krcompat.h
new file mode 100644 (file)
index 0000000..b5c0b7d
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef _KRCOMPAT_H
+#define _KRCOMPAT_H 1
+
+#undef PARAMS
+#ifdef __STDC__
+#include <stdarg.h>
+#define VA_START(ap, arg) va_start(ap, arg)
+#define PARAMS(args) args
+#else
+#include <varargs.h>
+#define VA_START(ap, arg) va_start(ap)
+#define PARAMS(args) ()
+#endif
+
+#ifdef __GNUC__
+#define NORETURN __attribute__ ((noreturn))
+#else
+#define NORETURN
+#endif
+
+#endif
diff --git a/bin/strip/n.sh b/bin/strip/n.sh
new file mode 100755 (executable)
index 0000000..ef61781
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+ROOT="`pwd |sed -e 's/\/bin\/strip$//'`"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
+mkdir --parents "$ROOT/cross/bin"
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
diff --git a/bin/strip/strip.c b/bin/strip/strip.c
new file mode 100644 (file)
index 0000000..da649bb
--- /dev/null
@@ -0,0 +1,125 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#if    defined(DOSCCS) && !defined(lint)
+char copyright[] =
+"@(#) Copyright (c) 1983 Regents of the University of California.\n\
+ All rights reserved.\n";
+
+static char sccsid[] = "@(#)strip.c    5.1.1 (2.11BSD GTE) 1/1/94";
+#endif
+
+#include <a.out.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/file.h>
+#include <unistd.h>
+#include "krcompat.h"
+
+#ifdef pdp11
+#include <sys/types.h>
+#define OFF_T off_t
+#else
+#include <stdint.h>
+#define OFF_T int32_t
+#endif
+
+struct xexec head;
+int    status;
+
+int main PARAMS((int argc, char *argv[]));
+void strip PARAMS((char *name));
+
+int main(argc, argv) int argc; char *argv[]; {
+       register int i;
+
+       signal(SIGHUP, SIG_IGN);
+       signal(SIGINT, SIG_IGN);
+       signal(SIGQUIT, SIG_IGN);
+       for (i = 1; i < argc; i++) {
+               strip(argv[i]);
+               if (status > 1)
+                       break;
+       }
+       exit(status);
+}
+
+void strip(name) char *name; {
+       register int f;
+#ifndef pdp11
+       char temp[sizeof (struct xexec)];
+       int i;
+#endif
+       OFF_T size;
+
+       f = open(name, O_RDWR);
+       if (f < 0) {
+               fprintf(stderr, "strip: "); perror(name);
+               status = 1;
+               goto out;
+       }
+#ifdef pdp11
+       if (read(f, (char *)&head, sizeof (head)) < 0)
+#else
+       if (read(f, temp, sizeof (head)) < 0)
+#endif
+               goto bad_read;
+#ifndef pdp11
+       head.e.a_magic = (temp[0] & 0xff) | ((temp[1] & 0xff) << 8);
+       head.e.a_text = (temp[2] & 0xff) | ((temp[3] & 0xff) << 8);
+       head.e.a_data = (temp[4] & 0xff) | ((temp[5] & 0xff) << 8);
+       head.e.a_bss = (temp[6] & 0xff) | ((temp[7] & 0xff) << 8);
+       head.e.a_syms = (temp[8] & 0xff) | ((temp[9] & 0xff) << 8);
+       head.e.a_entry = (temp[10] & 0xff) | ((temp[11] & 0xff) << 8);
+       head.e.a_unused = (temp[12] & 0xff) | ((temp[13] & 0xff) << 8);
+       head.e.a_flag = (temp[14] & 0xff) | ((temp[15] & 0xff) << 8);
+       head.o.max_ovl = (temp[16] & 0xff) | ((temp[17] & 0xff) << 8);
+       for (i = 0; i < NOVL; ++i)
+               head.o.ov_siz[i] = (temp[i * 2 + 18] & 0xff) | ((temp[i * 2 + 19] & 0xff) << 8);
+#endif
+       if (N_BADMAG(head.e)) {
+       bad_read:
+               printf("strip: %s not in a.out format\n", name);
+               status = 1;
+               goto out;
+       }
+       if ((head.e.a_syms == 0) && ((head.e.a_flag & 1) != 0))
+               goto out;
+
+       size = N_DATOFF(head) + head.e.a_data;
+       head.e.a_syms = 0;
+       head.e.a_flag |= 1;
+       if (ftruncate(f, (off_t)size) < 0) {
+               fprintf(stderr, "strip: "); perror(name);
+               status = 1;
+               goto out;
+       }
+       (void) lseek(f, (off_t)0, L_SET);
+#ifdef pdp11
+       (void) write(f, (char *)&head.e, sizeof (head.e));
+#else
+       /*temp[0] = head.e.a_magic & 0xff;
+       temp[1] = (head.e.a_magic >> 8) & 0xff;
+       temp[2] = head.e.a_text & 0xff;
+       temp[3] = (head.e.a_text >> 8) & 0xff;
+       temp[4] = head.e.a_data & 0xff;
+       temp[5] = (head.e.a_data >> 8) & 0xff;
+       temp[6] = head.e.a_bss & 0xff;
+       temp[7] = (head.e.a_bss >> 8) & 0xff;*/
+       temp[8] = head.e.a_syms & 0xff;
+       temp[9] = (head.e.a_syms >> 8) & 0xff;
+       /*temp[10] = head.e.a_entry & 0xff;
+       temp[11] = (head.e.a_entry >> 8) & 0xff;
+       temp[12] = head.e.a_unused & 0xff;
+       temp[13] = (head.e.a_unused >> 8) & 0xff;*/
+       temp[14] = head.e.a_flag & 0xff;
+       temp[15] = (head.e.a_flag >> 8) & 0xff;
+       (void) write(f, temp, sizeof (head.e));
+#endif
+out:
+       close(f);
+}
index 0f1c27c..f63ca54 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1997/3/27 - Steven Schultz
 #
@@ -16,7 +18,7 @@ stty: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 stty.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} stty tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: stty
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 stty ${DESTDIR}/bin/stty
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 stty ${DESTDIR}/bin/stty
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 86d1e14..88ab0a6 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1/15/1995 - Steven Schultz
 #
@@ -16,7 +18,7 @@ sysctl: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 sysctl.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} sysctl tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 sysctl ${DESTDIR}/bin/sysctl
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 sysctl ${DESTDIR}/bin/sysctl
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index aded732..6218502 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #      Makefile        4.3.2   1997/12/27
 #
 # C Shell with process control; VM/UNIX VAX Makefile
@@ -320,7 +322,7 @@ tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
 
 csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF}
        rm -f csh.prof
-       ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc
+       ${LD} -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc
 
 sh.prof.${SUF}:
        cp sh.c sh.prof.c
@@ -354,12 +356,12 @@ vgrind:
 
 install: tcsh  tcsh.${CATSECT}
        -mv -f ${DESTDIR}${BINDIR}/tcsh  ${DESTDIR}${BINDIR}/tcsh.old
-       install -s -m 555 -o bin -g bin tcsh ${DESTDIR}${BINDIR}/tcsh
-       install -c -m 444 -o bin -g bin  ${STRINGFILE} ${DESTDIR}${STRINGDIR}
-       install -c -m 444 -o bin -g bin tcsh.${CATSECT} ${DESTDIR}${DESTCAT}
+       ${INSTALL} -s -m 555 -o bin -g bin tcsh ${DESTDIR}${BINDIR}/tcsh
+       ${INSTALL} -c -m 444 -o bin -g bin  ${STRINGFILE} ${DESTDIR}${STRINGDIR}
+       ${INSTALL} -c -m 444 -o bin -g bin tcsh.${CATSECT} ${DESTDIR}${DESTCAT}
 
 tcsh.${CATSECT}:  tcsh.man
-       /usr/man/manroff tcsh.man > tcsh.${CATSECT}
+       ${MANROFF} tcsh.man > tcsh.${CATSECT}
 
 clean:
        ${RM} -f a.out strings x.c xs.c tcsh _MAKE_LOG core ./mkprstr
index 12d398c..4f4872a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #      Makefile for test
 #
 #      1.1     Robin Birch     11 march 1995
@@ -17,13 +19,13 @@ test:       ${OBJS}
        ${CC} ${SEPFLAG} -o test ${OBJS}
 
 test.0: test.1
-       /usr/man/manroff test.1 > test.0
+       ${MANROFF} test.1 > test.0
 
 install: all
-       install -s -m 755 -g bin -o bin test ${DESTDIR}/bin
+       ${INSTALL} -s -m 755 -g bin -o bin test ${DESTDIR}/bin
        rm -f ${DESTDIR}/bin/[
        ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
-       install -c -m 444 -g bin -o bin test.0 ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -c -m 444 -g bin -o bin test.0 ${DESTDIR}/usr/man/cat1
 
 clean: 
        rm -f *.o test *.core test.0
index 7e99dbe..208df89 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.1     12/18/82
 
 CFLAGS=-O
@@ -11,7 +12,7 @@ tp :  $o
 $o :   $h
 
 install : tp
-       install -s tp ${DESTDIR}/bin
+       ${INSTALL} -s tp ${DESTDIR}/bin
 
 clean : 
        rm -f *.o
index bdc432e..8eca628 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1997/1/10 - sms
 #
@@ -33,48 +34,48 @@ distribution:
        @chmod 755 ${DESTDIR}/usr/spool/mqueue
        @chown ${OWN}.${GRP} ${DESTDIR}/usr/spool/mqueue
 
-       install -c -o ${OWN} -g ${GRP} -m 644 ${FILES} ${DESTDIR}/etc
-       install -c -o root -g wheel -m  600 master.passwd ${DESTDIR}/etc
-       install -c -o ${OWN} -g ${GRP} -m 600 hosts.equiv ${DESTDIR}/etc
-       install -c -o ${OWN} -g ${GRP} -m 555 MAKEDEV.local MAKEDEV \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 ${FILES} ${DESTDIR}/etc
+       ${INSTALL} -c -o root -g wheel -m  600 master.passwd ${DESTDIR}/etc
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 600 hosts.equiv ${DESTDIR}/etc
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 555 MAKEDEV.local MAKEDEV \
                ${DESTDIR}/dev
-       install -c -o ${OWN} -g operator -m 664 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g operator -m 664 /dev/null \
                ${DESTDIR}/etc/dumpdates
-       install -c -o ${OWN} -g operator -m 664 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g operator -m 664 /dev/null \
                ${DESTDIR}/etc/sendmail.cw
-       install -c -o ${OWN} -g operator -m 664 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g operator -m 664 /dev/null \
                ${DESTDIR}/etc/sendmail.fc
        -@mkdir -p ${DESTDIR}/usr/adm ${DESTDIR}/var/run ${DESTDIR}/var/db
        @chmod 655 ${DESTDIR}/usr/adm ${DESTDIR}/var/run ${DESTDIR}/var/db
        @chown ${OWN}.${GRP} ${DESTDIR}/usr/adm ${DESTDIR}/var/run \
                ${DESTDIR}/var/db
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/messages
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/daemonlog
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/debuglog
-       install -c -o ${OWN} -g operator -m 664 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g operator -m 664 /dev/null \
            ${DESTDIR}/usr/adm/shutdownlog
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/spool/mqueue/syslog
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/lpd-errs
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/var/run/utmp
-       install -c -o nobody -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o nobody -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/var/db/find.codes
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/lastlog
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/wtmp
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/acct
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/usracct
-       install -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 /dev/null \
            ${DESTDIR}/usr/adm/savacct
-       install -c -o uucp -g daemon -m 600 /dev/null \
+       ${INSTALL} -c -o uucp -g daemon -m 600 /dev/null \
            ${DESTDIR}/usr/adm/aculog
        -for i in ${SUBDIR}; do \
                (cd $$i; make DESTDIR=${DESTDIR} distribution); done
index ac881a4..d0a24b4 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1997/1/10 - sms
 #
@@ -14,6 +15,6 @@ GRP=wheel
 all install depend lint clean tags:
 
 distribution:
-       install -c -o ${OWN} -g ${GRP} -m 644 dot.cshrc ${DESTDIR}/.cshrc
-       install -c -o ${OWN} -g ${GRP} -m 644 dot.login ${DESTDIR}/.login
-       install -c -o ${OWN} -g ${GRP} -m 644 dot.profile ${DESTDIR}/.profile
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 dot.cshrc ${DESTDIR}/.cshrc
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 dot.login ${DESTDIR}/.login
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 dot.profile ${DESTDIR}/.profile
index bfac951..f3f77a8 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1997/1/10 - sms
 #
@@ -22,7 +23,7 @@ distribution:
        mkdir ${DESTDIR}/etc/uucp
        chown uucp.daemon ${DESTDIR}/etc/uucp
        chmod 755 ${DESTDIR}/etc/uucp
-       install -c -o ${OWN} -g ${GRP} -m 644 ${FILES} ${DESTDIR}/etc/uucp
+       ${INSTALL} -c -o ${OWN} -g ${GRP} -m 644 ${FILES} ${DESTDIR}/etc/uucp
        chmod 600 ${DESTDIR}/etc/uucp/L.sys
        chmod 640 ${DESTDIR}/etc/uucp/L_stat ${DESTDIR}/etc/uucp/L_sub
        chmod 640 ${DESTDIR}/etc/uucp/SEQF
index af6e5cd..62440c8 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -44,9 +45,9 @@ install: ${STD} ${NSTD}
        -for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
        -for i in ${SCRIPT}; do \
-               (install -c -m 755  $$i.sh ${DESTDIR}/usr/games/$$i); done
+               (${INSTALL} -c -m 755  $$i.sh ${DESTDIR}/usr/games/$$i); done
        -for i in ${STD} ${NSTD}; do \
-               (install -s -m 755 $$i ${DESTDIR}/usr/games/$$i); done
+               (${INSTALL} -s -m 755 $$i ${DESTDIR}/usr/games/$$i); done
        cat >${DESTDIR}/usr/games/lib/cfscores </dev/null
        chmod 777 ${DESTDIR}/usr/games/lib/cfscores
 
index f4f1c7d..f86c9b7 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.3     85/09/07
 
 DESTDIR=
@@ -23,7 +24,7 @@ save.o:       save.c  # vax C optimizer bug - infinite loop
 okplay.o: /tmp
 
 install: advent
-       install -s advent ${DESTDIR}/usr/games/adventure
+       ${INSTALL} -s advent ${DESTDIR}/usr/games/adventure
 #      cp okplay /usr/games/adventure
 #      cp advsaver /usr/games/lib
 #      dd if=/usr/games/lib/adventure of=/usr/games/lib/advheader bs=1 count=16
index ec380fa..2006c92 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -31,8 +32,8 @@ install: FRC
        -[ -d ${DESTDIR}/usr/games/lib/atc ] || mkdir ${DESTDIR}/usr/games/lib/atc
        chmod 700 ${DESTDIR}/usr/games/lib/atc
        chown games.bin ${DESTDIR}/usr/games/lib/atc
-       (cd games; install -c -o games -g bin -m 600 * ${DESTDIR}/usr/games/lib/atc)
-       install -s -o games -g bin -m 4700 atc ${DESTDIR}/usr/games/hide/atc
+       (cd games; ${INSTALL} -c -o games -g bin -m 600 * ${DESTDIR}/usr/games/lib/atc)
+       ${INSTALL} -s -o games -g bin -m 4700 atc ${DESTDIR}/usr/games/hide/atc
        (cd ${DESTDIR}/usr/games; rm -f atc; ln -s dm atc; chown games.bin atc)
 
 lint: lex.c grammar.c FRC
index b712f17..2824b2f 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -40,12 +42,12 @@ message.c: /tmp
 #      Documentation
 backgammon.doc: backgammon.src
        -rm -f backgammon.doc
-       nroff -man -Tcrt backgammon.src > backgammon.doc
+       ${MANROFF} -Tcrt backgammon.src > backgammon.doc
 
 #      Installation
 install: all
-       install -s backgammon ${DESTDIR}/usr/games/backgammon
-       install -s teachgammon ${DESTDIR}/usr/games/teachgammon
+       ${INSTALL} -s backgammon ${DESTDIR}/usr/games/backgammon
+       ${INSTALL} -s teachgammon ${DESTDIR}/usr/games/teachgammon
 
 clean:
        rm -f ${OBJS} ${TOBJS} backgammon teachgammon backgammon.doc errs
index c363597..cd7fe13 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California,
 # All rights reserved.  Redistribution permitted subject to
@@ -59,18 +61,18 @@ lint: $(CFILES)
        lint $(LINTFLAGS) $(CFILES) $(LIBS) 
 
 install: battlestar $(MAN) $(LOGFILE) $(STRINGFILE)
-       install -s battlestar $(DIR)/battlestar
-       install -m 444 -o bin -g bin  ${MAN} ${DESTDIR}/usr/man/cat6
+       ${INSTALL} -s battlestar $(DIR)/battlestar
+       ${INSTALL} -m 444 -o bin -g bin  ${MAN} ${DESTDIR}/usr/man/cat6
 
 stringfile $(STRINGFILE): battle_strings
-       install -c -m 644 battle_strings $(LIB)
+       ${INSTALL} -c -m 644 battle_strings $(LIB)
 
 logfile $(LOGFILE):
        cp /dev/null $(LOGFILE)
        chmod 666 $(LOGFILE)
 
 man $(MAN): battlestar.6
-       /usr/man/manroff battlestar.6 > battlestar.0
+       ${MANROFF} battlestar.6 > battlestar.0
 
 clean:
        rm -f $(OBJS) $(JUNKFILES) xx* mkstr battle_strings core a.out ${MAN}
index b3179aa..3981963 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -19,8 +20,8 @@ bogdict: comp sfile
        sed -f sfile $$dict | uniq | ./comp >bogdict
 
 install: all
-       install -s boggle ${DESTDIR}/usr/games/boggle
-       install -m 644 bogdict ${DESTDIR}/usr/games/lib/bogdict
+       ${INSTALL} -s boggle ${DESTDIR}/usr/games/boggle
+       ${INSTALL} -m 644 bogdict ${DESTDIR}/usr/games/lib/bogdict
 
 boggle: boggle.c
        cc ${SEPFLAG} -o boggle ${CFLAGS} boggle.c
index d0724c0..9045be9 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.2     (Berkeley)      9/7/85
 #
 DESTDIR=
@@ -8,8 +9,8 @@ btlgammon: btlgammon.c
        cc ${SEPFLAG} ${CFLAGS} -o btlgammon btlgammon.c
 
 install: btlgammon backrules
-       install -s btlgammon ${DESTDIR}/usr/games/btlgammon
-       install -c backrules ${DESTDIR}/usr/games/lib/backrules
+       ${INSTALL} -s btlgammon ${DESTDIR}/usr/games/btlgammon
+       ${INSTALL} -c backrules ${DESTDIR}/usr/games/lib/backrules
 
 clean:
        rm -f a.out core *.s *.o btlgammon
index d0d3525..ca2e5d5 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -47,5 +48,5 @@ score.o:      deck.h
 io.o:          deck.h                  cribcur.h
 
 install: cribbage crib.0
-       install -s cribbage $(DESTDIR)/usr/games
-       install -m 644 crib.0 $(DESTDIR)/usr/games/lib/crib.instr
+       ${INSTALL} -s cribbage $(DESTDIR)/usr/games
+       ${INSTALL} -m 644 crib.0 $(DESTDIR)/usr/games/lib/crib.instr
index cedde4e..8863f1d 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 FORTUNES=      scene obscene
 SOURCE=                fortune.c strfile.h strfile.c rnd.c unstr.c $(FORTUNES)
 TFILES=                Troff.mac Troff.sed Do_troff
@@ -40,10 +41,10 @@ lint:
        lint -hxb $(DEFS) unstr.c 2>&1 > unstr.lint
 
 install: all install.data
-       install -s -m 4711 -o daemon fortune $(DESTDIR)$(BINDIR)
+       ${INSTALL} -s -m 4711 -o daemon fortune $(DESTDIR)$(BINDIR)
 
 install.data: fortunes.dat
-       install -m 600 -o daemon fortunes.dat $(DESTDIR)$(LIBDIR)
+       ${INSTALL} -m 600 -o daemon fortunes.dat $(DESTDIR)$(LIBDIR)
 
 troff: troff.scene troff.obscene
 
index a390ab9..6400c63 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      #(@)    Makefile        1.2 (2.11BSD)   1997/4/28
 #
 # Hack Overlay Makefile.
@@ -161,7 +162,7 @@ distribution: Makefile
 
 
 install: $(GAME)
-       install -o $(GAMEUID) -m 4711 $(GAME) $(DESTDIR)$(BINDIR)/$(GAME)
+       ${INSTALL} -o $(GAMEUID) -m 4711 $(GAME) $(DESTDIR)$(BINDIR)/$(GAME)
        -rm -rf $(DESTDIR)/$(LIBDIR)
        -mkdir -p ${DESTDIR}/${LIBDIR}
        chown daemon ${DESTDIR}/${LIBDIR}
index 99bd640..e1418aa 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 OBJS=          endgame.o extern.o getguess.o getword.o main.o playgame.o \
                prdata.o prman.o prword.o setup.o
 CFILES=                endgame.c extern.c getguess.c getword.c main.c playgame.c \
@@ -13,7 +14,7 @@ tags: $(HDRS) $(CFILES)
        ctags $(HDRS) $(CFILES)
 
 install: hangman
-       install -s hangman $(DESTDIR)/usr/games/hangman
+       ${INSTALL} -s hangman $(DESTDIR)/usr/games/hangman
        
 hangman: $(OBJS)
        $(CC) ${SEPFLAG} $(LDFLAGS) -o hangman $(OBJS) -lcurses -ltermlib
index e74e15d..0303749 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #  Hunt
 #  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -83,8 +84,8 @@ hunt.obj:     $(POBJ) pathname.o
 # System installation
 #
 install:       standard
-       install -s hunt.driver $(DESTDIR)/usr/games/lib/hunt.driver
-       install -s hunt $(DESTDIR)/usr/games/hunt
+       ${INSTALL} -s hunt.driver $(DESTDIR)/usr/games/lib/hunt.driver
+       ${INSTALL} -s hunt $(DESTDIR)/usr/games/hunt
 
 hunt:  $(POBJ) pathname.o
        $(CC) ${SEPFLAG} $(LDFLAGS) -o hunt $(POBJ) \
index 4f40253..7a23dee 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # mille bourne game makefile
 #
@@ -37,7 +38,7 @@ mille: ${OBJS} ${CRL}
        ${CC} ${SEPFLAG} ${CFLAGS} -o mille ${OBJS} ${LIBS}
 
 install: mille
-       install -s mille ${DESTDIR}${BINDIR}
+       ${INSTALL} -s mille ${DESTDIR}${BINDIR}
 
 pmb: ${POBJS} ../pcrlib
        ${CC} ${SEPFLAG} ${CFLAGS} -p -o pmb ${POBJS} ../pcrlib -ltermlib
@@ -62,7 +63,7 @@ lint:
        lint -hxb ${DEFS} ${CFILES} ${L} > lint.out
 
 mille.ar:
-       ar ruv mille.ar Makefile tags ${HEADERS} ${CFILES}
+       ${AR} ruv mille.ar Makefile tags ${HEADERS} ${CFILES}
 
 tar:
        tar rvf /dev/rmt0 Makefile tags :ctfix ${HEADERS} ${CFILES}
index 09fe89d..54ab8f3 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Nifty foo monopoly maker
 #      Program:  Ken Arnold
@@ -38,7 +39,7 @@ monop:        ${OBJS}
 
 install: monop cards.pck
        ${RM} ${BINDIR}/monop ${LIBDIR}/cards.pck
-       install -s monop ${BINDIR}
+       ${INSTALL} -s monop ${BINDIR}
        mv cards.pck ${LIBDIR}
 
 new:   clean ctags monop
index 8af860e..915d033 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -34,7 +35,7 @@ install: ${NSTD}
        -for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
        -for i in ${NSTD}; do \
-               (install -s $$i ${DESTDIR}/usr/games/$$i); done
+               (${INSTALL} -s $$i ${DESTDIR}/usr/games/$$i); done
 
 clean:
        rm -f a.out core *.o
@@ -47,20 +48,20 @@ depend:
 
 bj: bj.s etc.s us.s
        as -o bj.o etc.s bj.s us.s
-       ld -o $@ bj.o -lc
+       ${LD} -o $@ bj.o -lc
 
 factor: factor.s
        as -o factor.o factor.s
-       ld -o $@ factor.o -lc
+       ${LD} -o $@ factor.o -lc
 
 moo: moo.s etc.s
        as -o moo.o etc.s moo.s
-       ld -o $@ moo.o -lc
+       ${LD} -o $@ moo.o -lc
 
 primes: primes.s
        as -o primes.o primes.s
-       ld -o $@ primes.o -lc
+       ${LD} -o $@ primes.o -lc
 
 ttt: ttt.s etc.s
        as -o ttt.o etc.s ttt.s
-       ld -o $@ ttt.o -lc
+       ${LD} -o $@ ttt.o -lc
index e7336e1..a3589b3 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 DESTDIR=
 LIBDIR=        /usr/games/lib
 CFLAGS=        -O
@@ -15,8 +16,8 @@ init.o:
 ${OBJ}: old.h
 
 install: chess
-       install -s chess ${DESTDIR}/usr/games
-#      install -c -m 644 book ${DESTDIR}/${LIBDIR}/book
+       ${INSTALL} -s chess ${DESTDIR}/usr/games
+#      ${INSTALL} -c -m 644 book ${DESTDIR}/${LIBDIR}/book
 
 clean:
        rm -f *.o a.out chess core
index a1aecc3..141769f 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 BINDIR = /usr/games
 LIBDIR = /usr/games/lib
 DESTDIR=
@@ -12,7 +13,7 @@ z:    z.c
 
 # All the 1.o stuff is just to do a . = . + 140000
 zork:  1.o o.o 
-       ld 1.o 1.o 1.o o.o
+       ${LD} 1.o 1.o 1.o o.o
        nm a.out >syms
        dd if=a.out of=h bs=16 count=1
        dd if=a.out of=b.out bs=26120 skip=2
@@ -22,11 +23,11 @@ zork:       1.o o.o
        ./p1
 
 install: z zork
-       install -s z ${DESTDIR}${BINDIR}/zork
-       install -s zork ${DESTDIR}${LIBDIR}/zork
-       install -c -m 644 doverlay ${DESTDIR}${LIBDIR}
-       install -c -m 644 dindex.dat ${DESTDIR}${LIBDIR}
-       install -c -m 644 dtext.dat ${DESTDIR}${LIBDIR}
+       ${INSTALL} -s z ${DESTDIR}${BINDIR}/zork
+       ${INSTALL} -s zork ${DESTDIR}${LIBDIR}/zork
+       ${INSTALL} -c -m 644 doverlay ${DESTDIR}${LIBDIR}
+       ${INSTALL} -c -m 644 dindex.dat ${DESTDIR}${LIBDIR}
+       ${INSTALL} -c -m 644 dtext.dat ${DESTDIR}${LIBDIR}
 
 clean:
        rm -f 1.out a.out b.out h *.o core dungeon.dat zork z syms
index 2055a59..6655159 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 # Makefile for Phantasia 3.2 (1.2 2.11BSD - 1997/9/22)
 #
 # MODIFIED TO COMPILE WITHOUT 'XSTR'.
@@ -92,7 +94,7 @@ setfiles:     phant.h setfiles.c
 
 # the flags below on tbl and nroff are to make a line printable version
 phant.help:    phant.nr
-               tbl -TX phant.nr | nroff -man -Ttn300 > phant.help
+               tbl -TX phant.nr | ${MANROFF} -Ttn300 > phant.help
 
 # DO NOT use an absolute pathname in the symbolic link below.  Figure out
 #   what the relative path is.
@@ -106,10 +108,10 @@ install:  all phantasia.0
        chmod 4711 ${DESTDIR}${DEST}/phantasia
        chmod 644 ${DESTDIR}${DEST}/phant.help
        ./setfiles
-       install -m 444 -o bin -g bin  phantasia.0 ${DESTDIR}/usr/man/cat6
+       ${INSTALL} -m 444 -o bin -g bin  phantasia.0 ${DESTDIR}/usr/man/cat6
 
 phantasia.0: phant.nr
-       /usr/man/manroff phant.nr > phantasia.0
+       ${MANROFF} phant.nr > phantasia.0
 
 clean:
        ${RM} -f *.o phantasia phant.help strings x.c xs.c setfiles phantasia.0
index c314721..b8a6873 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.2     (Berkeley)      9/7/85
 #
 DESTDIR=
@@ -8,7 +9,7 @@ quiz: quiz.c
        cc ${SEPFLAG} ${CFLAGS} -o quiz quiz.c
 
 install: quiz quiz.k
-       install -s quiz ${DESTDIR}/usr/games/quiz
+       ${INSTALL} -s quiz ${DESTDIR}/usr/games/quiz
        cp -r quiz.k ${DESTDIR}/usr/games/lib
 
 clean:
index db4e681..5a9b586 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -24,8 +25,8 @@ lint:
        lint -hb ${DEFS} ${CFILES} -lcurses 2>1 > lint.out
 
 install: robots
-       install -s -m 4711 -o daemon robots ${DESTDIR}/usr/games
-       install -c -m 644 -o daemon /dev/null ${DESTDIR}/usr/games/lib/robots_roll
+       ${INSTALL} -s -m 4711 -o daemon robots ${DESTDIR}/usr/games
+       ${INSTALL} -c -m 644 -o daemon /dev/null ${DESTDIR}/usr/games/lib/robots_roll
 
 clean:
        rm -f a.out core *.o robots lint.out errs
index 5b838de..ac34ed1 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -71,7 +72,7 @@ depend: FRC
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: rogue
-       install -s -o games -g bin -m 4700 rogue ${DESTDIR}/usr/games/hide
+       ${INSTALL} -s -o games -g bin -m 4700 rogue ${DESTDIR}/usr/games/hide
        (cd ${DESTDIR}/usr/games; rm -f rogue; ln -s dm rogue; chown games.bin rogue)
 
 lint: FRC
index 619e160..8c33b4a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -31,7 +33,7 @@ sail: $(OBJS)
        $(CC) -o sail ${SEPFLAG} $(OBJS) $(LIBS)
 
 sail.0:        sail.6
-       /usr/man/manroff sail.6 > sail.0
+       ${MANROFF} sail.6 > sail.0
 
 lint:
        lint -z $(CFILES) -lcurses
@@ -46,8 +48,8 @@ clean:
        rm -f $(OBJS) $(JUNKFILES) sail.0
 
 install: sail $(TARGET)/$(LOGFILE) sail.0
-       install -s -m 4755 -o $(SAILMASTER) sail $(TARGET)/sail
-       install -c -m 444 sail.0 ${DESTDIR}/usr/man/cat6/sail.0
+       ${INSTALL} -s -m 4755 -o $(SAILMASTER) sail $(TARGET)/sail
+       ${INSTALL} -c -m 444 sail.0 ${DESTDIR}/usr/man/cat6/sail.0
 
 logfile $(TARGET)/$(LOGFILE):
        cp /dev/null $(TARGET)/$(LOGFILE)
index 18588cf..5b6310d 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -30,9 +31,9 @@ busy: busy.c
        cc ${SEPFLAG} $(CFLAGS) busy.c -o busy
 
 install: all
-       install -s -m 4755 -o ${USER} snake ${BIN}/snake
-       install -s -m 755 -o ${USER} snscore ${BIN}/snscore
-       install -s -m 755 -o ${USER} busy ${LIB}/busy
+       ${INSTALL} -s -m 4755 -o ${USER} snake ${BIN}/snake
+       ${INSTALL} -s -m 755 -o ${USER} snscore ${BIN}/snscore
+       ${INSTALL} -s -m 755 -o ${USER} busy ${LIB}/busy
        cat /dev/null >> $(LIB)/snakerawscores
        chmod 644 $(LIB)/snakerawscores
        chown $(USER) $(LIB)/snakerawscores
index 56e68ac..984960a 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -37,7 +38,7 @@ tags: tags $(SRCS)
        ctags $(SRCS)
 
 install: trek
-       install -s trek ${DESTDIR}/usr/games/trek
+       ${INSTALL} -s trek ${DESTDIR}/usr/games/trek
 
 clean:
        rm -f a.out core ${OBJS} trek
index 88925fe..b7131e3 100644 (file)
@@ -1,3 +1,4 @@
+MANROFF=/usr/man/manroff
 # $Header: Makefile.SH,v 1.1 87/07/03 01:45:30 games Exp $
 #
 # Revision 7.0.1.1a 87/26/08  03:45:03 games
@@ -73,7 +74,7 @@ all: $(public) $(private) $(util)
 
 warp: $(obj)
 #      $(CC) $(LDFLAGS) $(obj) $(LARGE) $(libs) -o warp
-       ld -X -i /lib/crt0.o $(obj2) $(obj4) init.o intrp.o \
+       ${LD} -X -i /lib/crt0.o $(obj2) $(obj4) init.o intrp.o \
                -Z sig.o term.o \
                -Z them.o us.o \
                -Z bang.o move.o \
@@ -109,7 +110,7 @@ fi
        - \
 if test `pwd` != $(mansrc); then \
 for page in $(manpages); do \
-/usr/man/manroff $$page > $(mansrc)/`basename $$page .man`.0; \
+${MANROFF} $$page > $(mansrc)/`basename $$page .man`.0; \
 chown bin.bin $(mansrc)/`basename $$page .man`.0; \
 chmod 444 $(mansrc)/`basename $$page .man`.0; \
 done; \
index 6a67eb5..7ab0f70 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 LIBDIR=/usr/games/lib
 
 all:   words1
@@ -6,8 +7,8 @@ words1: words1.c
        cc -O -n -o words1 words1.c
 
 install: words1 words.sh
-       install -s words1 ${LIBDIR}
-       install -c words.sh ${DESTDIR}/usr/games/words
+       ${INSTALL} -s words1 ${LIBDIR}
+       ${INSTALL} -c words.sh ${DESTDIR}/usr/games/words
 
 clean:
        rm -f *.o words1
index 3fd841f..483f958 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -42,7 +43,7 @@ all:
 install: ${SHARED}
        -for i in ${STD}; do \
                cmp -s $$i ${DESTDIR}/usr/include/$$i || \
-                   install -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \
+                   ${INSTALL} -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \
        done
        -for i in ${SUBDIRS}; do \
                if [ ! -d ${DESTDIR}/usr/include/$$i ]; \
@@ -51,11 +52,11 @@ install: ${SHARED}
                fi; \
                (cd $$i; for j in *.[ih]; do \
                        cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
-                       install -c -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \
+                       ${INSTALL} -c -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \
                done); \
        done
        -cmp -s Makefile.install ${DESTDIR}/usr/include/Makefile || \
-           install -c -m 444 Makefile.install ${DESTDIR}/usr/include/Makefile
+           ${INSTALL} -c -m 444 Makefile.install ${DESTDIR}/usr/include/Makefile
        -for i in ${LINKS}; do \
                rm -f ${DESTDIR}/usr/include/$$i; \
                ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
diff --git a/install.sh b/install.sh
new file mode 100755 (executable)
index 0000000..1846e72
--- /dev/null
@@ -0,0 +1,118 @@
+#!/bin/sh
+
+strip=
+stripper=strip
+mode=
+owner=
+group=
+while test $# -ge 1
+do
+  case "$1" in
+  -c)
+    shift
+    ;;
+  -s)
+    strip=1
+    shift
+    ;;
+  --strip-program=*)
+    stripper="`echo $1 |sed -e 's/--strip-program=//'`"
+    shift
+    ;;
+  -m)
+    mode="$2"
+    shift 2
+    ;;
+  -o)
+    owner="$2"
+    shift 2
+    ;;
+  -g)
+    group="$2"
+    shift 2
+    ;;
+  -*)
+    echo "invalid option: $1"
+    exit 1
+    ;;
+  *)
+    break
+    ;;
+  esac
+done
+
+if test $# -le 1
+then
+  echo "usage: $0 [-c] [-s] [-m mode] [-o owner] [-g group] files dest"
+  exit 1
+fi
+
+for dest in "$@"
+do
+  :
+done
+
+if test $# -ge 3 && ! test -d "$dest"
+then
+  echo "not directory: $dest"
+  exit 1
+fi
+
+errs=0
+if test -d "$dest"
+then
+  while test $# -ge 2
+  do
+    if cp $1 $dest
+    then
+      if test -n "$strip" && ! "$stripper" "$dest/$1"
+      then
+        errs=1
+      fi
+      base="`basename $1`"
+      post="$dest/$base.postinstall"
+      rm -f "$post"
+      if test -n "$mode"
+      then
+        echo "chmod $mode $base" >>"$post"
+      fi
+      if test -n "$owner"
+      then
+        echo "chown $owner $base" >>"$post"
+      fi
+      if test -n "$group"
+      then
+        echo "chgrp $group $base" >>"$post"
+      fi
+    else
+      errs=1
+    fi
+    shift
+  done
+else
+  if cp $1 $dest
+  then
+    if test -n "$strip" && ! "$stripper" "$dest"
+    then
+      errs=1
+    fi
+    base="`basename $dest`"
+    post="$dest.postinstall"
+    rm -f "$post"
+    if test -n "$mode"
+    then
+      echo "chmod $mode $base" >>"$post"
+    fi
+    if test -n "$owner"
+    then
+      echo "chown $owner $base" >>"$post"
+    fi
+    if test -n "$group"
+    then
+      echo "chgrp $group $base" >>"$post"
+    fi
+  else
+    errs=1
+  fi
+fi
+exit $errs
index 32e1c2b..b961ebd 100644 (file)
@@ -32,3 +32,7 @@ tags:
 clean:
        rm -f a.out core *.s *.o
        -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
+
+# Nick
+depend:
+       -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done
index 0c701f4..df38258 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 SEPFLAG=-i
 CFLAGS=        -O
 
@@ -11,7 +12,7 @@ c20.o c21.o: c2.h
 
 install: c2
        -mv ${DESTDIR}${LIB}/c2 ${DESTDIR}${LIB}/oc2
-       install -s c2 ${DESTDIR}${LIB}
+       ${INSTALL} -s c2 ${DESTDIR}${LIB}
 
 restore:
        mv ${DESTDIR}${LIB}/oc2 ${DESTDIR}${LIB}/c2
index 3599cba..868ac03 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/lib\/c2$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/lib"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 8234ebf..02074d2 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 CFLAGS = -O
 LDC0FLAGS= -i
 LDC1FLAGS= -n
@@ -32,9 +33,8 @@ cvopt:        cvopt.c
 install: c0 c1
        -mv ${DESTDIR}${LIB}/c0 ${DESTDIR}${LIB}/oc0
        -mv ${DESTDIR}${LIB}/c1 ${DESTDIR}${LIB}/oc1
-       install -s c0 ${DESTDIR}${LIB}/c0
-#      install -s c1 ${DESTDIR}${LIB}/c1
-       install c1 ${DESTDIR}${LIB}/c1
+       ${INSTALL} -s c0 ${DESTDIR}${LIB}/c0
+       ${INSTALL} -s c1 ${DESTDIR}${LIB}/c1
 
 restore:
        mv ${DESTDIR}${LIB}/oc0 ${DESTDIR}${LIB}/c0
index 011cd7c..70aaff0 100644 (file)
@@ -39,7 +39,6 @@ union tree *optim(tree) register union tree *tree; {
                         && tree->f.fvalue[2]==0
                         && tree->f.fvalue[3]==0) {
                                tree->t.op = SFCON;
-                               /* I am 99% sure this is wrong (can only affect label numbering): */
                                tree->f.value = tree->f.fvalue[0];
                        }
 #endif
@@ -79,7 +78,7 @@ union tree *optim(tree) register union tree *tree; {
                        tree->t.op = PLUS;
                        if (t->t.type==DOUBLE) {
                                /* PDP-11 FP representation */
-                               abort(); /* I am 99% sure this is wrong: t->c.value ^= 0100000; */
+                               t->f/*c*/.value ^= 0100000;
                        } else
                                t->c.value = -t->c.value;
                }
@@ -618,7 +617,7 @@ union tree *unoptim(tree) register union tree *tree; {
                 * PDP-11 FP negation
                 */
                if (subtre->t.op==SFCON) {
-                       abort(); /* I am 99% sure this is wrong: subtre->c.value ^= 0100000; */
+                       subtre->c.value ^= 0100000;
 #ifdef pdp11
                        subtre->f.fvalue = -subtre->f.fvalue;
 #else
index f6aa47d..a37250e 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/lib\/ccom$//'`"
 CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/lib"
-make CC="$CC" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 48350f9..bedab50 100644 (file)
@@ -3,12 +3,14 @@
 
 CFLAGS=-O -DSTAGEDIR="${STAGEDIR}" -DFLEXNAMES -DTARGET_unix -DTARGET_pdp11 -DTARGET_BSD2_11
 SEPFLAG=-i
+INSTALL=install
+YACC=yacc
 
 cpp:   cpp.o y.tab.o
        $(CC) $(CFLAGS) $(SEPFLAG) -o cpp cpp.o y.tab.o
 
 y.tab.c: cpy.y
-       yacc cpy.y
+       ${YACC} cpy.y
 
 y.tab.o: y.tab.c yylex.c
 
@@ -16,7 +18,7 @@ clean:
        rm -f *.s *.o y.tab.c cpp
 
 install: cpp
-       install -s cpp $(DESTDIR)/lib
+       ${INSTALL} -s cpp $(DESTDIR)/lib
 
 sources: cpp.c cpy.y yylex.c README
 cpp.c cpy.y yylex.c README:
index 46726a8..09c62a5 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/lib\/cpp$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/lib"
-make CC="$CC" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
diff --git a/lib/cpp/o.sh b/lib/cpp/o.sh
new file mode 100755 (executable)
index 0000000..449b719
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+ROOT="`pwd |sed -e 's/\/lib\/cpp$//'`"
+CC="$ROOT/cross/bin/cc"
+INSTALL="install --strip-program=\"$ROOT/cross/bin/strip\""
+YACC="$ROOT/cross/usr/bin/yacc"
+mkdir --parents "$ROOT/stage/lib"
+make CC="$CC" YACC="$YACC" && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/stage" install
index e8f1c5f..21eb529 100644 (file)
@@ -44,7 +44,7 @@ HOSTLOOKUP=   named
 #HOSTLOOKUP=   hosttable
 #                                                      
 AR=ar
-INSTALL=install -m 644
+INSTALL=${INSTALL} -m 644
 LORDER=lorder
 RANLIB=ranlib
 DFLMON=        mon.o
index 2d785cf..5ac1e28 100755 (executable)
@@ -3,10 +3,12 @@ ROOT="`pwd |sed -e 's/\/lib\/libc\/gen$//'`"
 AR="$ROOT/cross/bin/ar"
 AS="$ROOT/cross/bin/as"
 CC="$ROOT/cross/bin/cc"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 CPP="$ROOT/cross/lib/cpp"
 LD="$ROOT/cross/bin/ld"
 LORDER="$ROOT/cross/usr/bin/lorder"
 MKDEP="$ROOT/cross/usr/bin/mkdep"
 RANLIB="$ROOT/cross/usr/bin/ranlib"
-make CC="$CC" MKDEP="$MKDEP" depend && \
-make AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C"
+make CC="$CC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend && \
+make AR="$AR" AS="$AS" CC="$CC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C"
index da35593..185acad 100755 (executable)
@@ -3,6 +3,8 @@ ROOT="`pwd |sed -e 's/\/lib\/libc$//'`"
 AR="$ROOT/cross/bin/ar"
 AS="$ROOT/cross/bin/as"
 CC="$ROOT/cross/bin/cc"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 CPP="$ROOT/cross/lib/cpp"
 LD="$ROOT/cross/bin/ld"
 LORDER="$ROOT/cross/usr/bin/lorder"
@@ -10,6 +12,6 @@ MKDEP="$ROOT/cross/usr/bin/mkdep"
 RANLIB="$ROOT/cross/usr/bin/ranlib"
 mkdir --parents "$ROOT/stage/lib"
 mkdir --parents "$ROOT/stage/usr/lib"
-make CC="$CC" MKDEP="$MKDEP" depend && \
-make AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C" && \
+make CC="$CC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend && \
+make AR="$AR" AS="$AS" CC="$CC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C" && \
 make RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
index d064139..7a0d67a 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -19,9 +20,9 @@ TAGSFILE=tags
 all: ${OBJS}
 
 install: ${OBJS}
-       install -c -m 0644 crt0.o ${DESTDIR}/lib/crt0.o
-       install -c -m 0644 mcrt0.o ${DESTDIR}/lib/mcrt0.o
-#      install -c -m 0644 gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o
+       ${INSTALL} -c -m 0644 crt0.o ${DESTDIR}/lib/crt0.o
+       ${INSTALL} -c -m 0644 mcrt0.o ${DESTDIR}/lib/mcrt0.o
+#      ${INSTALL} -c -m 0644 gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o
 
 crt0.o:        crt0.s
        ${CPP} ${DEFS} ${DFLAGS} crt0.s | sed 's;^#;/;' | ${AS} -o x.o
index b287471..861d848 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 #      @(#)Makefile    1.2 (2.11BSD GTE) 1996/3/26
 #
@@ -46,8 +48,7 @@ depend: ${SRCS}
 
 #install: FRC libkern.a
 install: libkern.a
-#      install -o root -g bin -m 644 libkern.a ${DESTDIR}/usr/lib/libkern.a
-       install -m 644 libkern.a ${DESTDIR}/usr/lib/libkern.a
+       ${INSTALL} -o root -g bin -m 644 libkern.a ${DESTDIR}/usr/lib/libkern.a
        ${RANLIB} ${DESTDIR}/usr/lib/libkern.a
 
 #FRC:
index 87c46ab..eb03182 100755 (executable)
@@ -3,12 +3,14 @@ ROOT="`pwd |sed -e 's/\/lib\/libkern$//'`"
 AR="$ROOT/cross/bin/ar"
 AS="$ROOT/cross/bin/as"
 CC="$ROOT/cross/bin/cc"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 CPP="$ROOT/cross/lib/cpp"
 LD="$ROOT/cross/bin/ld"
 LORDER="$ROOT/cross/usr/bin/lorder"
 MKDEP="$ROOT/cross/usr/bin/mkdep"
 RANLIB="$ROOT/cross/usr/bin/ranlib"
 mkdir --parents "$ROOT/stage/usr/lib"
-make CC="$CC" MKDEP="$MKDEP" depend && \
-make AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER"
+make CC="$CC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend && \
+make AR="$AR" AS="$AS" CC="$CC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" LORDER="$LORDER"
 make RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
index 7e16b34..e943b42 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #      Makefile        1.13    86/03/11
 #
@@ -81,7 +82,7 @@ stab.o: $(P2ONEP) stab.c
        $(CC) -c $(COPTS) stab.c
 
 install: all
-       install -s ${TESTDIR}/ccom ${DESTDIR}/lib/ccom
+       ${INSTALL} -s ${TESTDIR}/ccom ${DESTDIR}/lib/ccom
 
 GREP=  egrep
 
index 358c7a6..fd3155b 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1999/2/19 - Steven Schultz
 #
@@ -16,7 +18,7 @@ acctd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 acctd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} acctd tags ${MAN}
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: acctd
-       install -s -o root -g bin -m 700 acctd ${DESTDIR}/usr/libexec/acctd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN}
+       ${INSTALL} -s -o root -g bin -m 700 acctd ${DESTDIR}/usr/libexec/acctd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN}
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 4b88ad5..4e5253e 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ comsat: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 comsat.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} comsat tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: comsat
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 comsat ${DESTDIR}/usr/libexec/comsat
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 comsat ${DESTDIR}/usr/libexec/comsat
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index f8e80c6..58d499f 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/6/25 - Steven Schultz
 #
@@ -20,7 +21,7 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ctimed
-       install -s -o root -g bin -m 755 ctimed ${DESTDIR}/usr/libexec/ctimed
+       ${INSTALL} -s -o root -g bin -m 755 ctimed ${DESTDIR}/usr/libexec/ctimed
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 52e2f75..26cc055 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ fingerd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 fingerd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} fingerd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: fingerd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 fingerd ${DESTDIR}/usr/libexec/fingerd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 fingerd ${DESTDIR}/usr/libexec/fingerd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index c96d840..7fcc2d8 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ ftpd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 ftpd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} ftpd tags ftpcmd.c
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ftpd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 ftpd ${DESTDIR}/usr/libexec/ftpd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 ftpd ${DESTDIR}/usr/libexec/ftpd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 5aaa297..86265cc 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/10/24 - sms
 #
@@ -20,7 +21,7 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: getNAME
-       install -s -o root -g bin -m 755 getNAME ${DESTDIR}/usr/libexec/getNAME
+       ${INSTALL} -s -o root -g bin -m 755 getNAME ${DESTDIR}/usr/libexec/getNAME
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 0bfc678..d6ab88f 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -17,7 +18,7 @@ getty:        ${OBJS}
        ${CC} ${SEPFLAG} -o getty ${OBJS}
 
 install: all
-       install -s -m 555 -o bin -g bin getty ${DESTDIR}/usr/libexec/getty
+       ${INSTALL} -s -m 555 -o bin -g bin getty ${DESTDIR}/usr/libexec/getty
 
 clean:
        rm -f getty ${OBJS} a.out core errs
index 2322e09..2cc86b4 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Makefile                             Makefile for the Pidentd daemon
 #
@@ -49,21 +51,21 @@ identd.8: identd.man
        sed -e 's,xDESTDIRx,$(EXECDIR),g' -e 's,xCONFDIRx,$(CONFDIR),g' $? > $@
 
 identd.0: identd.8
-       /usr/man/manroff identd.8 > identd.0
+       ${MANROFF} identd.8 > identd.0
 
 idecrypt.0: idecrypt.man
-       /usr/man/manroff idecrypt.man > idecrypt.0
+       ${MANROFF} idecrypt.man > idecrypt.0
 
 identconn: identconn.sh
        sed -e 's,xDESTROOTx,$(DESTROOT),g' $? > $@
 
 install: identd identd.0 identconn itest idecrypt
-       install -m 644 identd.0 $(MANDIR)/identd.0
-       install -m 755 identd $(EXECDIR)/identd
-       install -m 755 identconn $(BINDIR)/identconn
-       install -m 644 idecrypt.0  $(MANDIR)/idecrypt.0
-       install -m 755 idecrypt $(BINDIR)/idecrypt
-       install -o root -g kmem -m 2555 itest ${BINDIR}/itest
+       ${INSTALL} -m 644 identd.0 $(MANDIR)/identd.0
+       ${INSTALL} -m 755 identd $(EXECDIR)/identd
+       ${INSTALL} -m 755 identconn $(BINDIR)/identconn
+       ${INSTALL} -m 644 idecrypt.0  $(MANDIR)/idecrypt.0
+       ${INSTALL} -m 755 idecrypt $(BINDIR)/idecrypt
+       ${INSTALL} -o root -g kmem -m 2555 itest ${BINDIR}/itest
 
 tests:
        (cd testdir ; make)
index 64c542c..22642a8 100644 (file)
@@ -35,7 +35,7 @@ kernel.o:     kernel/$(KSRC).c identd.h error.h kernel/kvm.h Makefile
 
 libkvm.a:      kvm.o
        @rm -f libkvm.a
-       ar cq libkvm.a kvm.o
+       ${AR} cq libkvm.a kvm.o
 
 itest: itest.o kernel.o kvm.o
        $(CC) $(LDFLAGS) -o itest itest.o kernel.o kvm.o $(LIBS)
index 8f734e8..64a9ee1 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/10/24 - sms
 #
@@ -20,7 +21,7 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: makekey
-       install -s -o root -g bin -m 755 makekey ${DESTDIR}/usr/libexec/makekey
+       ${INSTALL} -s -o root -g bin -m 755 makekey ${DESTDIR}/usr/libexec/makekey
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index dc58590..1917a1a 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #@(#)@(#)Makefile      2.6.1 1996/11/27
 
 DESTDIR                =
@@ -61,8 +62,8 @@ clean:
        rm -f core *.o *.Z* ${CATPAGE} ${TARGET}
 
 install: ${TARGET} ${CATPAGE}
-       install -c -m 700 -o root -g staff ${TARGET} ${INSTALLDIR}
-       install -c -m 444 -o root -g staff ${CATPAGE} ${MANDIR}
+       ${INSTALL} -c -m 700 -o root -g staff ${TARGET} ${INSTALLDIR}
+       ${INSTALL} -c -m 444 -o root -g staff ${CATPAGE} ${MANDIR}
 
 ${CATPAGE}:    ${MANPAGE}
        nroff -h -man ${MANPAGE} > ${CATPAGE}
index 0ecc45b..a5b0105 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ rexecd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 rexecd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} rexecd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: rexecd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 rexecd ${DESTDIR}/usr/libexec/rexecd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 rexecd ${DESTDIR}/usr/libexec/rexecd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index a3f3e77..1aa5744 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ rlogind: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} -lutil
 
 rlogind.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} rlogind tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: rlogind
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 rlogind ${DESTDIR}/usr/libexec/rlogind
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 rlogind ${DESTDIR}/usr/libexec/rlogind
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index a2891ac..b740360 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ rshd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 rshd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} rshd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: rshd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 rshd ${DESTDIR}/usr/libexec/rshd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 rshd ${DESTDIR}/usr/libexec/rshd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 45160ae..c666562 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ talkd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 talkd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} talkd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: talkd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 talkd ${DESTDIR}/usr/libexec/ntalkd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 talkd ${DESTDIR}/usr/libexec/ntalkd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index e0fc14a..b6bb401 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 # @(#) Makefile 1.20 1996/11/16
 #  Tailored and trimmed version created for 2.11BSD on April 7, 1995.
 
@@ -48,17 +50,17 @@ all: config-check tcpd tcpdmatch try-from safe_finger tcpdchk tcpd.0 \
        hosts5access.0 hosts3access.0 hosts_options.0 tcpdchk.0 tcpdmatch.0
 
 install: all
-       install -s -m 1751 -o root -g staff tcpd /usr/libexec/tcpd
-       install -s -m 751 -o root -g staff tcpdmatch /usr/ucb/tcpdmatch
-       install -s -m 751 -o root -g staff try-from /usr/ucb/try-from
-       install -s -m 751 -o root -g staff safe_finger /usr/ucb/safe_finger
-       install -s -m 751 -o root -g staff tcpdchk /usr/ucb/tcpdchk
-       install -c -m 444 -o bin -g bin hosts3access.0 /usr/man/cat3/hosts_access.0
-       install -c -m 444 -o bin -g bin hosts5access.0 /usr/man/cat5/hosts_access.0
-       install -c -m 444 -o bin -g bin hosts_options.0 /usr/man/cat5/hosts_options.0
-       install -c -m 444 -o bin -g bin tcpd.0 /usr/man/cat8/tcpd.0
-       install -c -m 444 -o bin -g bin tcpdchk.0 /usr/man/cat8/tcpdchk.0
-       install -c -m 444 -o bin -g bin tcpdmatch.0 /usr/man/cat8/tcpdmatch.0
+       ${INSTALL} -s -m 1751 -o root -g staff tcpd /usr/libexec/tcpd
+       ${INSTALL} -s -m 751 -o root -g staff tcpdmatch /usr/ucb/tcpdmatch
+       ${INSTALL} -s -m 751 -o root -g staff try-from /usr/ucb/try-from
+       ${INSTALL} -s -m 751 -o root -g staff safe_finger /usr/ucb/safe_finger
+       ${INSTALL} -s -m 751 -o root -g staff tcpdchk /usr/ucb/tcpdchk
+       ${INSTALL} -c -m 444 -o bin -g bin hosts3access.0 /usr/man/cat3/hosts_access.0
+       ${INSTALL} -c -m 444 -o bin -g bin hosts5access.0 /usr/man/cat5/hosts_access.0
+       ${INSTALL} -c -m 444 -o bin -g bin hosts_options.0 /usr/man/cat5/hosts_options.0
+       ${INSTALL} -c -m 444 -o bin -g bin tcpd.0 /usr/man/cat8/tcpd.0
+       ${INSTALL} -c -m 444 -o bin -g bin tcpdchk.0 /usr/man/cat8/tcpdchk.0
+       ${INSTALL} -c -m 444 -o bin -g bin tcpdmatch.0 /usr/man/cat8/tcpdmatch.0
 
 clean:
        rm -f tcpd miscd safe_finger tcpdmatch tcpdchk try-from *.[oa] *.core \
@@ -86,7 +88,7 @@ config-check:
 
 $(LIB):        $(LIB_OBJ)
        rm -f $(LIB)
-       ar $(ARFLAGS) $(LIB) $(LIB_OBJ)
+       ${AR} $(ARFLAGS) $(LIB) $(LIB_OBJ)
        -$(RANLIB) $(LIB)
 
 tcpd:  tcpd.o $(LIB)
index e8c2c05..9813ad1 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ telnetd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 telnetd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} telnetd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: telnetd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 telnetd ${DESTDIR}/usr/libexec/telnetd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 telnetd ${DESTDIR}/usr/libexec/telnetd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 1cbcb19..d0f726f 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ tftpd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 tftpd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} tftpd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: tftpd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 tftpd ${DESTDIR}/usr/libexec/tftpd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 tftpd ${DESTDIR}/usr/libexec/tftpd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index e451bfb..f06faaf 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #      #(@)Makefile    1.2.2   (2.11BSD) 1996/11/27
 #
@@ -45,11 +46,11 @@ install: ${STD} ${NSTD}
        -for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
        -for i in ${STD} ${NSTD}; do \
-               (install $$i ${DESTDIR}/usr/local/$$i); done
+               (${INSTALL} $$i ${DESTDIR}/usr/local/$$i); done
        -chgrp kmem ${DESTDIR}/usr/local/trace
        -chmod 2755 ${DESTDIR}/usr/local/trace
 #      -for i in ${SHELL}; do \
-#              (install -c -m 755 $$i.sh ${DESTDIR}/usr/local/$$i); done
+#              (${INSTALL} -c -m 755 $$i.sh ${DESTDIR}/usr/local/$$i); done
        -sh /usr/sbin/makewhatis ${MANDIR}
 
 clean:
index 67e42be..50c91db 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 ##
 ##  I wrote this Makefile, based on comments in the source.  -rich $alz.
 ##  Define INDEX to use index() in place of strchr() (v7, BSD).
@@ -30,12 +32,12 @@ afio: afio.o
        $(CC) -i $(CFLAGS) -o afio afio.o
 
 install: all
-       install -s -c -m 0751 afio ${DESTDIR}/usr/local/afio
-       install -c -m 444 -o bin -g bin afio.0 ${DESTDIR}/usr/local/man/cat1
+       ${INSTALL} -s -c -m 0751 afio ${DESTDIR}/usr/local/afio
+       ${INSTALL} -c -m 444 -o bin -g bin afio.0 ${DESTDIR}/usr/local/man/cat1
 
 afio.0:        afio.1
        rm -f afio.0
-       /usr/man/manroff afio.1 > afio.0
+       ${MANROFF} afio.1 > afio.0
 
 clean:
        rm -f *.o afio afio.0
index 15b4d87..aa35a81 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 # Makefile for ddd
 
 DEFS = -DBSD
@@ -5,7 +7,7 @@ CFLAGS = -O $(DEFS)
 
 CC = cc
 LINT = lint
-CP = install -s -m 755 
+CP = ${INSTALL} -s -m 755 
 RM = rm -f
 
 SRC = ddd.c
@@ -31,10 +33,10 @@ lint: $(SRC) $(HEAD)
 
 install: all
        $(CP) $(BIN) ${DESTDIR}$(BINDIR)
-       install -m 444 -o bin -g bin $(MAN) ${DESTDIR}$(MANDIR)
+       ${INSTALL} -m 444 -o bin -g bin $(MAN) ${DESTDIR}$(MANDIR)
 
 $(MAN): $(MANSRC)
-       /usr/man/manroff $(MANSRC) > $(MAN)
+       ${MANROFF} $(MANSRC) > $(MAN)
 
 clean:
        -$(RM) $(BIN) $(OBJ) all lint a.out core *~ #* $(SHAR) $(MAN)
index cd85ee3..1d81f61 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Revised 1996/1/28
 #
@@ -17,11 +19,11 @@ clean:
        rm -f ${OBJS} core mkovmake ${MAN}
 
 install: all ${MAN}
-       install -s -o bin -g bin -m 755 mkovmake ${DESTDIR}/usr/local
-       install -c -m 444 -o bin -g bin ${MAN} ${DESTDIR}/usr/local/man/cat1
+       ${INSTALL} -s -o bin -g bin -m 755 mkovmake ${DESTDIR}/usr/local
+       ${INSTALL} -c -m 444 -o bin -g bin ${MAN} ${DESTDIR}/usr/local/man/cat1
 
 ${MAN}: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index 42a8eef..1223eae 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #  Makefile for mp, the PostScript pretty printer.
 #
@@ -126,31 +127,31 @@ install:   common-install
 common-install: $(BINARIES)
        -mkdir -p ${MPLIBDIR}
 #                                                     mp
-       install -m 751 -o bin -g bin -s mp $(MPBINDIR)
+       ${INSTALL} -m 751 -o bin -g bin -s mp $(MPBINDIR)
 #                                                     mp.1
        nroff -h -man mp.1 > mp.0
-       install -m 644 -o bin -g bin mp.0 $(MPMANDIR)
+       ${INSTALL} -m 644 -o bin -g bin mp.0 $(MPMANDIR)
 #                                                     mailp.1
        nroff -h -man mailp.1 > mailp.0
-       install -m 644 -o bin -g bin mailp.0 $(MPMANDIR)
+       ${INSTALL} -m 644 -o bin -g bin mailp.0 $(MPMANDIR)
 #                                                     mp.common.ps
-       install -c -m 644 -o bin -g bin mp.common.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.common.ps $(MPLIBDIR)
 #                                                     mp.pro.ps
-       install -c -m 644 -o bin -g bin mp.pro.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.ps $(MPLIBDIR)
 #                                                     mp.pro.l.ps
-       install -c -m 644 -o bin -g bin mp.pro.l.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.l.ps $(MPLIBDIR)
 #                                                     mp.pro.alt.ps
-       install -c -m 644 -o bin -g bin mp.pro.alt.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.alt.ps $(MPLIBDIR)
 #                                                     mp.pro.altl.ps
-       install -c -m 644 -o bin -g bin mp.pro.altl.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.altl.ps $(MPLIBDIR)
 #                                                     mp.pro.ff.ps
-       install -c -m 644 -o bin -g bin mp.pro.ff.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.ff.ps $(MPLIBDIR)
 #                                                     mp.pro.fp.ps
-       install -c -m 644 -o bin -g bin mp.pro.fp.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.fp.ps $(MPLIBDIR)
 #                                                     mp.pro.tm.ps
-       install -c -m 644 -o bin -g bin mp.pro.tm.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.tm.ps $(MPLIBDIR)
 #                                                     mp.pro.ts.ps
-       install -c -m 644 -o bin -g bin mp.pro.ts.ps $(MPLIBDIR)
+       ${INSTALL} -c -m 644 -o bin -g bin mp.pro.ts.ps $(MPLIBDIR)
 #                                                     mailp
 #
           -sed -e s,BINDIR,$(MPBINDIR),g mailp >$(MPBINDIR)/mailp
index 8f533df..40568b9 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 #       Makefile for Mtools
 #
@@ -98,39 +100,39 @@ mkmanifest:        $(MKMANIFEST)
        $(LD) $(LDFLAGS) $(MKMANIFEST) $(SHOBJ) -o mkmanifest $(SHLIB)
 
 mattrib.0: Mattrib.1
-        nroff -man Mattrib.1  >  mattrib.0
+        ${MANROFF} Mattrib.1  >  mattrib.0
 mcd.0: Mcd.1
-        nroff -man Mcd.1  >  mcd.0
+        ${MANROFF} Mcd.1  >  mcd.0
 mcopy.0: Mcopy.1
-        nroff -man Mcopy.1  >  mcopy.0
+        ${MANROFF} Mcopy.1  >  mcopy.0
 mdel.0: Mdel.1
-        nroff -man Mdel.1  >  mdel.0
+        ${MANROFF} Mdel.1  >  mdel.0
 mdir.0: Mdir.1
-        nroff -man Mdir.1  >  mdir.0
+        ${MANROFF} Mdir.1  >  mdir.0
 mformat.0: Mformat.1
-        nroff -man Mformat.1  >  mformat.0
+        ${MANROFF} Mformat.1  >  mformat.0
 mkmanifest.0: Mkmanifest.1
-        nroff -man Mkmanifest.1  >  mkmanifest.0
+        ${MANROFF} Mkmanifest.1  >  mkmanifest.0
 mlabel.0: Mlabel.1
-        nroff -man Mlabel.1  >  mlabel.0
+        ${MANROFF} Mlabel.1  >  mlabel.0
 mmd.0: Mmd.1
-        nroff -man Mmd.1  >  mmd.0
+        ${MANROFF} Mmd.1  >  mmd.0
 mrd.0: Mrd.1
-        nroff -man Mrd.1  >  mrd.0
+        ${MANROFF} Mrd.1  >  mrd.0
 mread.0: Mread.1
-        nroff -man Mread.1  >  mread.0
+        ${MANROFF} Mread.1  >  mread.0
 mren.0: Mren.1
-        nroff -man Mren.1  >  mren.0
+        ${MANROFF} Mren.1  >  mren.0
 mtools.0: Mtools.1
-        nroff -man Mtools.1  >  mtools.0
+        ${MANROFF} Mtools.1  >  mtools.0
 mtype.0: Mtype.1
-        nroff -man Mtype.1  >  mtype.0
+        ${MANROFF} Mtype.1  >  mtype.0
 mwrite.0: Mwrite.1
-        nroff -man Mwrite.1  >  mwrite.0
+        ${MANROFF} Mwrite.1  >  mwrite.0
 
 install: $(PROGS) $(MANPAGES)
-       install -s -m 755 -o bin $(PROGS) ${DESTDIR}$(BINDIR)
-       install -c -m 444 -o bin -g bin *.0 ${DESTDIR}$(MANDIR)
+       ${INSTALL} -s -m 755 -o bin $(PROGS) ${DESTDIR}$(BINDIR)
+       ${INSTALL} -c -m 444 -o bin -g bin *.0 ${DESTDIR}$(MANDIR)
 
 clean:
        rm -f $(PROGS) *.0 *.o
index ea15356..6651a57 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1990 Michael A. Cooper.
 # This software may be freely distributed provided it is not sold for 
@@ -69,7 +71,7 @@ reconfig:
 $(OBJS): $(HFILES)
 
 qterm.0:
-       /usr/man/manroff qterm.1 > qterm.0
+       ${MANROFF} qterm.1 > qterm.0
 
 shar:
        shar README qtermtab $(CONFIGFILES) $(CFILES) $(HFILES) > qterm.shar
@@ -81,9 +83,9 @@ clean:
 # Install target for BSD machines.
 #
 install: qterm qterm.0 qtermtab
-       install -c -m 755 qterm $(BIN)
-       install -c -m 644 qterm.0 $(MAN)
-       install -c -m 644 qtermtab $(TABFILE)
+       ${INSTALL} -c -m 755 qterm $(BIN)
+       ${INSTALL} -c -m 644 qterm.0 $(MAN)
+       ${INSTALL} -c -m 644 qtermtab $(TABFILE)
 
 #
 # Install target for System V machines.
index 710cc11..65e4496 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #      
 #      Makefile for welcome.  Revised 1996/1/28
 #
@@ -17,11 +19,11 @@ ${PROGRAM}: ${OBJS}
        ${CC} ${SEPFLAG} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
 
 install: ${PROGRAM} welcome.0
-       install -s -m 755 ${PROGRAM} ${DESTDIR}/${BINDIR}
-       install -c -m 444 -o bin -g bin welcome.0 ${DESTDIR}/usr/local/man/cat1
+       ${INSTALL} -s -m 755 ${PROGRAM} ${DESTDIR}/${BINDIR}
+       ${INSTALL} -c -m 444 -o bin -g bin welcome.0 ${DESTDIR}/usr/local/man/cat1
 
 welcome.0: welcome.1
-       /usr/man/manroff welcome.1 > welcome.0
+       ${MANROFF} welcome.1 > welcome.0
 
 tags:
        ctags -tdw *.c
index 296b214..6ccb94f 100644 (file)
@@ -1,10 +1,11 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 # Driver makefile for zmodem.  Calls makefile.generic.
 
 DESTDIR=
 CC=cc
 CFLAGS=-O -DV7 -DMD=2 -DTXBSIZE=8192 -DNFGVMIN
 SEPFLAG=-i
-ROFF  = /usr/man/manroff
 DESTBIN = $(DESTDIR)/usr/local
 DESTMAN = $(DESTDIR)/usr/local/man/cat1
 
@@ -23,16 +24,16 @@ rz: rz.o
        size rz
 
 rz.0:  rz.1
-       /usr/man/manroff rz.1 > rz.0
+       ${MANROFF} rz.1 > rz.0
 
 sz.0:  sz.1
-       /usr/man/manroff sz.1 > sz.0
+       ${MANROFF} sz.1 > sz.0
 
 install: rz sz rz.0 sz.0
-       install -c -s -m 755 rz ${DESTBIN}
-       install -c -s -m 755 sz ${DESTBIN}
-       install -c -m 444 rz.0 ${DESTMAN}
-       install -c -m 444 -o bin -g bin sz.0 ${DESTMAN}
+       ${INSTALL} -c -s -m 755 rz ${DESTBIN}
+       ${INSTALL} -c -s -m 755 sz ${DESTBIN}
+       ${INSTALL} -c -m 444 rz.0 ${DESTMAN}
+       ${INSTALL} -c -m 444 -o bin -g bin sz.0 ${DESTMAN}
        rm -f $(DESTBIN)/sb $(DESTBIN)/sx
        ln $(DESTBIN)/sz $(DESTBIN)/sb
        ln $(DESTBIN)/sz $(DESTBIN)/sx
index f2f8443..42f3249 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -28,8 +29,8 @@ all: scriptinstall FRC
        done
 
 scriptinstall: FRC
-       install -c -o bin -g bin -m 444 makewhatis.sed ${DESTDIR}/usr/man/makewhatis.sed
-       install -c -o bin -g bin -m 755 manroff ${DESTDIR}/usr/man/manroff
+       ${INSTALL} -c -o bin -g bin -m 444 makewhatis.sed ${DESTDIR}/usr/man/makewhatis.sed
+       ${INSTALL} -c -o bin -g bin -m 755 manroff ${DESTDIR}/usr/man/manroff
 
 install: FRC
        for i in ${DIRS}; do \
@@ -44,8 +45,8 @@ install: FRC
        done
        sort -u whatis_tmp > whatis.db
        -rm -f whatis_tmp
-       install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/man/whatis
-       install -c -o bin -g bin -m 444 man.template ${DESTDIR}/usr/man/man.template
+       ${INSTALL} -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/man/whatis
+       ${INSTALL} -c -o bin -g bin -m 444 man.template ${DESTDIR}/usr/man/man.template
 
 clean: FRC
        for i in ${DIRS}; do \
index 4529548..2664a38 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -77,7 +79,8 @@ OBJS2=        nroff.0 nslookup.0 od.0 pagesize.0 pdx.0 pi.0 pix.0 \
 .SUFFIXES: .1 .0
 
 .1.0:
-       ${DESTDIR}/usr/man/manroff $*.1 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 all: _make_01 _make_02 
 
@@ -86,15 +89,16 @@ _make_01: ${OBJS1}
 _make_02: ${OBJS2}
 
 eqn.0:
-       eqn eqn.1 | ${DESTDIR}/usr/man/manroff > $@
+#      eqn eqn.1 | ${DESTDIR}/usr/man/manroff > $@
+       eqn eqn.1 | ${MANROFF} > $@
 
 clean: FRC
        rm -f ${OBJS1}
        rm -f ${OBJS2}
 
 install: _make_01 _make_02
-       install -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}${MDIR}
-       install -c -o bin -g bin -m 444 ${OBJS2} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS2} ${DESTDIR}${MDIR}
        rm -f ${DESTDIR}${MDIR}/case.0
        ln ${DESTDIR}/${MDIR}/sh.0 ${DESTDIR}${MDIR}/case.0
        rm -f ${DESTDIR}${MDIR}/checkeq.0
index 6caa1af..1091f0a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -59,7 +61,8 @@ OBJS= accept.0 access.0 acct.0 adjtime.0 bind.0 brk.0 chdir.0 chmod.0 \
 .SUFFIXES: .2 .0
 
 .2.0:
-       ${DESTDIR}/usr/man/manroff $*.2 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.2 > $*.0
+       ${MANROFF} $*.2 > $*.0
 
 all: _make_01
 
@@ -79,7 +82,7 @@ REM= sbrk.0 dup2.0 fstat.0 lstat.0 readv.0 recvfrom.0 sendmsg.0 recvmsg.0 \
        seteuid.0 setegid.0 getegid.0
 
 install: _make_01
-       install -c -o bin -g bin -m 444 ${OBJS} ${P}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS} ${P}
        for i in ${REM}; do \
                rm -f  ${P}/$$i; \
        done
index 729341e..8f578c3 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -108,7 +110,8 @@ REMO5 = sigaddset.0 sigdelset.0 sigemptyset.0 sigfillset.0 sigismember.0
 .SUFFIXES: .3 .0
 
 .3.0:
-       ${DESTDIR}/usr/man/manroff $*.3 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.3 > $*.0
+       ${MANROFF} $*.3 > $*.0
 
 all: _make_01 _make_02
 
@@ -121,8 +124,8 @@ clean: FRC
        rm -f ${OBJS2}
 
 install: _make_01 _make_02
-       install -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}${MDIR}
-       install -c -o bin -g bin -m 444 ${OBJS2} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS2} ${DESTDIR}${MDIR}
        for i in ${REMO1}; do \
                rm -f  ${DESTDIR}${MDIR}/$$i; \
        done
index bc748f9..f228902 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -35,7 +37,8 @@ OBJS= abort.0 access.0 alarm.0 bessel.0 bit.0 chdir.0 chmod.0 etime.0 \
        ttynam.0 unlink.0 wait.0
 
 .3.0:
-       ${DESTDIR}/usr/man/manroff $*.3 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.3 > $*.0
+       ${MANROFF} $*.3 > $*.0
 
 all: _make_01
 
@@ -45,7 +48,7 @@ clean: FRC
        rm -f ${OBJS}
 
 install: _make_01
-       install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
        rm -f ${DESTDIR}${MDIR}/and.0
        ln ${DESTDIR}${MDIR}/bit.0 ${DESTDIR}${MDIR}/and.0
        rm -f ${DESTDIR}${MDIR}/lshift.0
index ab99634..bcbcb63 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -34,7 +36,8 @@ OBJS= acc.0 arp.0 bk.0 br.0 cons.0 css.0 de.0 dh.0 dhu.0 dhv.0 \
 .SUFFIXES: .4 .0
 
 .4.0:
-       ${DESTDIR}/usr/man/manroff $*.4 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.4 > $*.0
+       ${MANROFF} $*.4 > $*.0
 
 all: ${OBJS}
 
@@ -42,7 +45,7 @@ clean: FRC
        rm -f ${OBJS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
        rm -f ${MDIR}/dvhp.0
        ln ${MDIR}/xp.0 ${MDIR}/dvhp.0
        rm -f ${MDIR}/hp.0
index a18109d..271ec56 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -37,7 +39,8 @@ OBJS= L-devices.0 L-dialcodes.0 L.aliases.0 L.cmds.0 L.sys.0 \
 .SUFFIXES: .5 .0
 
 .5.0:
-       ${DESTDIR}/usr/man/manroff $*.5 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.5 > $*.0
+       ${MANROFF} $*.5 > $*.0
 
 all: _make_01
 
@@ -47,7 +50,7 @@ clean: FRC
        rm -f ${OBJS}
 
 install: _make_01
-       install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
        rm -f ${DESTDIR}${MDIR}/inode.0
        ln ${DESTDIR}${MDIR}/fs.0 ${DESTDIR}${MDIR}/inode.0
        rm -f ${DESTDIR}${MDIR}/dumpdates.0
index ddc6f9d..593cc17 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -31,7 +33,8 @@ OBJS= aardvark.0 adventure.0 arithmetic.0 backgammon.0 banner.0 \
 .SUFFIXES: .6 .0
 
 .6.0:
-       ${DESTDIR}/usr/man/manroff $*.6 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.6 > $*.0
+       ${MANROFF} $*.6 > $*.0
 
 all: _make_01
 
@@ -41,7 +44,7 @@ clean: FRC
        rm -f ${OBJS}
 
 install: _make_01
-       install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
        rm -f ${DESTDIR}${MDIR}/snscore.0
        ln ${DESTDIR}${MDIR}/snake.0 ${DESTDIR}${MDIR}/snscore.0
        rm -f ${DESTDIR}${MDIR}/cfscores.0
index 1bc1149..5d779c7 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -25,7 +27,8 @@ OBJS= ascii.0 environ.0 eqnchar.0 hier.0 hostname.0 intro.0 mailaddr.0 \
 .SUFFIXES: .7 .0
 
 .7.0:
-       ${DESTDIR}/usr/man/manroff $*.7 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.7 > $*.0
+       ${MANROFF} $*.7 > $*.0
 
 all: _make_01
 
@@ -35,7 +38,7 @@ clean: FRC
        rm -f ${OBJS}
 
 install: _make_01
-       install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
        rm -f ${DESTDIR}${MDIR}/miscellaneous.0
        ln ${DESTDIR}${MDIR}/intro.0 ${DESTDIR}${MDIR}/miscellaneous.0
 
index 5ad71a4..94ef73a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -51,7 +53,8 @@ OBJS= XNSrouted.0 adduser.0 autoconfig.0 \
 .SUFFIXES: .8 .0
 
 .8.0:
-       ${DESTDIR}/usr/man/manroff $*.8 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.8 > $*.0
+       ${MANROFF} $*.8 > $*.0
 
 all: _make_01
 
@@ -61,7 +64,7 @@ clean: FRC
        rm -f ${OBJS}
 
 install: _make_01
-       install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR}
        rm -f ${DESTDIR}${MDIR}/uucpd.0
        ln ${DESTDIR}${MDIR}/uucico.0 ${DESTDIR}${MDIR}/uucpd.0
 
diff --git a/n.sh b/n.sh
index 3ee2276..fedf20a 100755 (executable)
--- a/n.sh
+++ b/n.sh
@@ -4,6 +4,8 @@ ROOT="`pwd`"
 
 # set up to build cross toolchain
 CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh"
+MANROFF="nroff -man"
 
 # create skeleton filesystem for cross toolchain
 mkdir --parents "$ROOT/cross/bin"
@@ -13,87 +15,98 @@ mkdir --parents "$ROOT/cross/usr/lib"
 mkdir --parents "$ROOT/cross/usr/man/cat1"
 mkdir --parents "$ROOT/cross/usr/man/cat3"
 mkdir --parents "$ROOT/cross/usr/man/cat5"
+mkdir --parents "$ROOT/cross/usr/share/misc"
 mkdir --parents "$ROOT/cross/usr/ucb"
 
 # clean leftover files from other architecture
 make clean
 
+# do depend, it doesn't need libs
+make -C bin depend
+make -C lib depend
+make -C ucb depend
+make -C usr.bin depend
+
 # do /usr/lib/libvmf.a first, since ld needs it
-make -C usr.lib/libvmf CC="$CC"
-make -C usr.lib/libvmf DESTDIR="$ROOT/cross" install
+make -C usr.lib/libvmf CC="$CC" MANROFF="$MANROFF"
+make -C usr.lib/libvmf INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
 
-make -C bin CC="$CC" SEPFLAG= size
-make -C bin/ar CC="$CC" SEPFLAG=
-make -C bin/as CC="$CC" SEPFLAG=
-make -C bin/cc CC="$CC" CROSSDIR="\\\"$ROOT/cross\\\"" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG=
-make -C bin/ld CC="$CC" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= LDFLAGS="-L$ROOT/cross/usr/lib"
-make -C bin/nm CC="$CC" SEPFLAG=
-make -C lib/c2 CC="$CC" SEPFLAG=
-make -C lib/ccom CC="$CC" LDC0FLAGS= LDC1FLAGS= PURFLAG=
-make -C lib/cpp CC="$CC" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG=
-make -C ucb/strcompact CC="$CC" SEPFLAG= CROSSDIR="\\\"$ROOT/cross\\\"" LOCALESTR="\\\"LC_ALL=C \\\""
-make -C ucb/symcompact CC="$CC" SEPFLAG=
-make -C ucb/symdump CC="$CC" SEPFLAG=
-make -C ucb/symorder CC="$CC" SEPFLAG=
+make -C bin CC="$CC" MANROFF="$MANROFF" SEPFLAG= size
+make -C bin/ar CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C bin/as CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C bin/cc CC="$CC" MANROFF="$MANROFF" CROSSDIR="\\\"$ROOT/cross\\\"" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG=
+make -C bin/ld CC="$CC" MANROFF="$MANROFF" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG= LDFLAGS="-L$ROOT/cross/usr/lib"
+make -C bin/nm CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C bin/strip CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C lib/c2 CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C lib/ccom CC="$CC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG=
+make -C lib/cpp CC="$CC" MANROFF="$MANROFF" STAGEDIR="\\\"$ROOT/stage\\\"" SEPFLAG=
+make -C ucb/strcompact CC="$CC" MANROFF="$MANROFF" SEPFLAG= CROSSDIR="\\\"$ROOT/cross\\\"" LOCALESTR="\\\"LC_ALL=C \\\""
+make -C ucb/symcompact CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C ucb/symdump CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C ucb/symorder CC="$CC" MANROFF="$MANROFF" SEPFLAG=
 make -C usr.bin CC="$ROOT/cross/bin/cc" NM="$ROOT/cross/bin/nm" lorder mkdep
-make -C usr.bin/ranlib CC="$CC" SEPFLAG=
-
-install bin/size -m 755 "$ROOT/cross/bin"
-make -C bin/ar DESTDIR="$ROOT/cross" install
-make -C bin/as DESTDIR="$ROOT/cross" install
-make -C bin/cc DESTDIR="$ROOT/cross" install
-make -C bin/ld DESTDIR="$ROOT/cross" install
-make -C bin/nm DESTDIR="$ROOT/cross" install
-make -C lib/c2 DESTDIR="$ROOT/cross" install
-make -C lib/ccom DESTDIR="$ROOT/cross" install
-make -C lib/cpp DESTDIR="$ROOT/cross" install
-make -C ucb/strcompact DESTDIR="$ROOT/cross" install
-make -C ucb/symcompact DESTDIR="$ROOT/cross" install
-make -C ucb/symdump DESTDIR="$ROOT/cross" install
-make -C ucb/symorder DESTDIR="$ROOT/cross" install
-install usr.bin/lorder -m 755 "$ROOT/cross/usr/bin"
-install usr.bin/mkdep -m 755 "$ROOT/cross/usr/bin"
-make -C usr.bin/ranlib DESTDIR="$ROOT/cross" install
-
-# now got cross toolchain installed, set up to build target
-AR="$ROOT/cross/bin/ar"
-AS="$ROOT/cross/bin/as"
-CC="$ROOT/cross/bin/cc"
-CPP="$ROOT/cross/lib/cpp"
-LD="$ROOT/cross/bin/ld"
-LORDER="$ROOT/cross/usr/bin/lorder"
-MKDEP="$ROOT/cross/usr/bin/mkdep"
-RANLIB="$ROOT/cross/usr/bin/ranlib"
-SIZE="$ROOT/cross/bin/size"
-STRCOMPACT="$ROOT/cross/usr/ucb/strcompact"
-SYMCOMPACT="$ROOT/cross/usr/ucb/symcompact"
-SYMORDER="$ROOT/cross/usr/ucb/symorder"
-
-# create skeleton filesystem for target
-mkdir --parents "$ROOT/stage/lib"
-mkdir --parents "$ROOT/stage/usr/include"
-mkdir --parents "$ROOT/stage/usr/lib"
-
-# clean leftover files from other architecture
-make clean
-make -C sys/GENERIC clean
-
-# do /usr/include first, since libc needs it
-make -C include SHARED=copies SYSDIR="$ROOT/sys" DESTDIR="$ROOT/stage" install
-
-# do /lib/libc.a next, since everything needs it
-make -C lib/libc CC="$CC" MKDEP="$MKDEP" depend
-make -C lib/libc AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C"
-make -C lib/libc RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
-
-# now we can build a test program, see test/hello.c
-
-# do /lib/libkern.a, since the kernel needs it
-make -C lib/libkern CC="$CC" MKDEP="$MKDEP" depend
-make -C lib/libkern AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER"
-make -C lib/libkern RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
+make -C usr.bin/ranlib CC="$CC" MANROFF="$MANROFF" SEPFLAG=
+make -C usr.bin/yacc CC="$CC" MANROFF="$MANROFF" CROSSDIR="\\\"$ROOT/cross\\\"" SEPFLAG=
 
-# now we can build the kernel
-make -C sys/GENERIC I="$ROOT/stage/usr/include" CC="$CC" MKDEP="$MKDEP" depend
-make -C sys/GENERIC I="$ROOT/stage/usr/include" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" SIZE="$SIZE" STRCOMPACT="$STRCOMPACT" SYMCOMPACT="$SYMCOMPACT" SYMORDER="$SYMORDER"
-make -C sys/GENERIC DESTDIR="$ROOT/stage" install
+"$INSTALL" bin/size "$ROOT/cross/bin"
+make -C bin/ar INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C bin/as INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C bin/cc INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C bin/ld INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C bin/nm INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C bin/strip INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C lib/c2 INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C lib/ccom INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C lib/cpp INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C ucb/strcompact INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C ucb/symcompact INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C ucb/symdump INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C ucb/symorder INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+"$INSTALL" usr.bin/lorder "$ROOT/cross/usr/bin"
+"$INSTALL" usr.bin/mkdep "$ROOT/cross/usr/bin"
+make -C usr.bin/ranlib INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+make -C usr.bin/yacc INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
+#
+## now got cross toolchain installed, set up to build target
+#AR="$ROOT/cross/bin/ar"
+#AS="$ROOT/cross/bin/as"
+#CC="$ROOT/cross/bin/cc"
+#CPP="$ROOT/cross/lib/cpp"
+#LD="$ROOT/cross/bin/ld"
+#LORDER="$ROOT/cross/usr/bin/lorder"
+#MKDEP="$ROOT/cross/usr/bin/mkdep"
+#RANLIB="$ROOT/cross/usr/bin/ranlib"
+#SIZE="$ROOT/cross/bin/size"
+#STRCOMPACT="$ROOT/cross/usr/ucb/strcompact"
+#SYMCOMPACT="$ROOT/cross/usr/ucb/symcompact"
+#SYMORDER="$ROOT/cross/usr/ucb/symorder"
+#
+## create skeleton filesystem for target
+#mkdir --parents "$ROOT/stage/lib"
+#mkdir --parents "$ROOT/stage/usr/include"
+#mkdir --parents "$ROOT/stage/usr/lib"
+#
+## clean leftover files from other architecture
+#make clean
+#make -C sys/GENERIC clean
+#
+## do /usr/include first, since libc needs it
+#make -C include SHARED=copies SYSDIR="$ROOT/sys" DESTDIR="$ROOT/stage" install
+#
+## do /lib/libc.a next, since everything needs it
+#make -C lib/libc CC="$CC" MKDEP="$MKDEP" depend
+#make -C lib/libc AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C"
+#make -C lib/libc RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
+#
+## now we can build a test program, see test/hello.c
+#
+## do /lib/libkern.a, since the kernel needs it
+#make -C lib/libkern CC="$CC" MKDEP="$MKDEP" depend
+#make -C lib/libkern AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER"
+#make -C lib/libkern RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
+#
+## now we can build the kernel
+#make -C sys/GENERIC I="$ROOT/stage/usr/include" CC="$CC" MKDEP="$MKDEP" depend
+#make -C sys/GENERIC I="$ROOT/stage/usr/include" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" SIZE="$SIZE" STRCOMPACT="$STRCOMPACT" SYMCOMPACT="$SYMCOMPACT" SYMORDER="$SYMORDER"
+#make -C sys/GENERIC DESTDIR="$ROOT/stage" install
index 6b56dd4..a33f3c0 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #      @(#)Makefile    5.3.1   (2.11BSD)       1996/1/28
 #
 DESTDIR=
@@ -11,7 +13,7 @@ MOBJ= ansitape.0 vmsprep.0
 .SUFFIXES: .1 .0
 
 .1.0:
-       /usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 all:   ansitape vmsprep ${MOBJ}
 
@@ -22,10 +24,10 @@ vmsprep: vmsprep.o
        cc ${SEPFLAG} -o vmsprep vmsprep.o
 
 install: vmsprep ansitape ${MOBJ}
-       install -s ansitape ${DESTDIR}/usr/new/ansitape
-       install -s vmsprep ${DESTDIR}/usr/new/vmsprep
-       install -c -m 444 -o bin -g bin ansitape.0 ${DESTDIR}/usr/new/man/cat1
-       install -c -m 444 -o bin -g bin vmsprep.0 ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -s ansitape ${DESTDIR}/usr/new/ansitape
+       ${INSTALL} -s vmsprep ${DESTDIR}/usr/new/vmsprep
+       ${INSTALL} -c -m 444 -o bin -g bin ansitape.0 ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -c -m 444 -o bin -g bin vmsprep.0 ${DESTDIR}/usr/new/man/cat1
 
 clean:
        rm -f *.o a.out core errs makefile.bak Makefile.bak ansitape vmsprep *.0
index df651d3..a3cda15 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # bm Makefile - revised 1996/1/28
 #
@@ -15,14 +17,14 @@ OBJS=       Execute.o GetPatFile.o Global.o MakeDesc.o MakeSkip.o MatchFound.o \
 .SUFFIXES: .1 .0
 
 .1.0:
-       /usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 bm: ${OBJS} bm.0
        cc -o $@ ${SEPFLAG} ${OBJS}
 
 install: bm bm.0
-       install -s bm ${DESTDIR}/usr/new/bm
-       install -c -m 444 -o bin -g bin  bm.0 ${DESTDIR}/usr/new/man/cat1/bm.0
+       ${INSTALL} -s bm ${DESTDIR}/usr/new/bm
+       ${INSTALL} -c -m 444 -o bin -g bin  bm.0 ${DESTDIR}/usr/new/man/cat1/bm.0
 
 tags: ${HDRS} ${SRCS}
        ctags $<
index eb0e89f..4389274 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # crash makefile
 #
@@ -14,14 +16,14 @@ OBJS=       crash.o crashsubs.o dispnet.o symbol.o if.o inet.o route.o
 .SUFFIXES: .1 .0
 
 .1.0:
-       /usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 crash: ${OBJS}
        ${CC} -o $@ ${SEPFLAG} ${OBJS}
 
 install: crash crash.0
-       install -s crash ${DESTDIR}/usr/new/crash
-       install -c crash.0 ${DESTDIR}/usr/new/man/cat1/crash.0
+       ${INSTALL} -s crash ${DESTDIR}/usr/new/crash
+       ${INSTALL} -c crash.0 ${DESTDIR}/usr/new/man/cat1/crash.0
 
 tags: ${HDRS} ${SRCS}
        ctags ${HDRS} ${SRCS}
index 5c78d07..155b5ed 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 ###########################################################################
 # This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE #
 # is provided to you without charge, and with no warranty.  You may give  #
@@ -133,11 +135,11 @@ xjove:    $(OBJECTS)
        @-size xjove
 
 gjove: $(OBJECTS)
-       ld -X /lib/gcrt0.o -o gjove $(OBJECTS) -lc $(LIBS)
+       ${LD} -X /lib/gcrt0.o -o gjove $(OBJECTS) -lc $(LIBS)
        @-size gjove
 
 ovjove:        $(OBJECTS)
-       ld $(SEPFLAG) $(LDFLAGS) -X /lib/crt0.o \
+       ${LD} $(SEPFLAG) $(LDFLAGS) -X /lib/crt0.o \
                -Z $(OVLAY1) \
                -Z $(OVLAY2) \
                -Z $(OVLAY3) \
@@ -198,34 +200,34 @@ DESTDIR_LIBDIR:
        -mkdir $(DESTDIR)$(LIBDIR)
 
 TEACH-JOVE: doc/teach-jove
-       install -c -m 644 doc/teach-jove $(TEACH-JOVE)
+       ${INSTALL} -c -m 644 doc/teach-jove $(TEACH-JOVE)
 
 doc/cmds.doc:  doc/cmds.doc.nr doc/jove.4 doc/jove.5
        nroff doc/cmds.doc.nr doc/jove.4 doc/jove.5 > doc/cmds.doc
 
 CMDS.DOC: doc/cmds.doc
-       install -c -m 644 doc/cmds.doc $(CMDS.DOC)
+       ${INSTALL} -c -m 644 doc/cmds.doc $(CMDS.DOC)
 
 JOVERC: doc/system.rc
-       install -c -m 644 doc/system.rc $(JOVERC)
+       ${INSTALL} -c -m 644 doc/system.rc $(JOVERC)
 
 PORTSRV: portsrv
-       install -c -s -m 755 portsrv $(PORTSRV)
+       ${INSTALL} -c -s -m 755 portsrv $(PORTSRV)
 
 RECOVER: recover
-       install -c -s -m 755 recover $(RECOVER)
+       ${INSTALL} -c -s -m 755 recover $(RECOVER)
 
 JOVE: xjove
-       install -c -s -m 755 xjove $(JOVE)
+       ${INSTALL} -c -s -m 755 xjove $(JOVE)
 
 TEACHJOVE: teachjove
-       install -c -s -m 755 teachjove $(TEACHJOVE)
+       ${INSTALL} -c -s -m 755 teachjove $(TEACHJOVE)
 
 JOVEM: doc/jove.nr
        @sed -e 's;TMPDIR;$(TMPDIR);' \
             -e 's;LIBDIR;$(LIBDIR);' \
             -e 's;SHELL;$(SHELL);' doc/jove.nr \
-       | /usr/man/manroff \
+       | ${MANROFF} \
        > $(JOVEM)
        chmod 444 $(JOVEM)
        chown bin.bin $(JOVEM)
@@ -234,7 +236,7 @@ TEACHJOVEM: doc/teachjove.nr
        @sed -e 's;TMPDIR;$(TMPDIR);' \
             -e 's;LIBDIR;$(LIBDIR);' \
             -e 's;SHELL;$(SHELL);' doc/teachjove.nr \
-       | /usr/man/manroff \
+       | ${MANROFF} \
        > $(TEACHJOVEM)
        chmod 444 $(TEACHJOVEM)
        chown bin.bin $(TEACHJOVEM)
index 56375b5..5e99347 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 DESTDIR=
 
 SEPFLAG=-i
@@ -14,7 +15,7 @@ obint: obint.o in.o sup.o
        cc -o $@ ${SEPFLAG} obint.o in.o sup.o
 
 install: l11
-       install -s l11 ${DESTDIR}/usr/new/l11
+       ${INSTALL} -s l11 ${DESTDIR}/usr/new/l11
 
 cmp: l11
        cmp l11 ${DESTDIR}/usr/new/l11
index 15644f4..ca36734 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # la Makefile.  Revised 1996/1/28
 #
@@ -13,11 +15,11 @@ la: la.o
        cc ${CFLAGS} ${SEPFLAG} la.o -o la
 
 install: la la.0
-       install -s la ${DESTDIR}/usr/new/la
-       install -c -m 444 -o bin -g bin la.0 ${DESTDIR}/usr/new/man/cat1/la.0
+       ${INSTALL} -s la ${DESTDIR}/usr/new/la
+       ${INSTALL} -c -m 444 -o bin -g bin la.0 ${DESTDIR}/usr/new/man/cat1/la.0
 
 la.0: la.1
-       /usr/man/manroff la.1 > la.0
+       ${MANROFF} la.1 > la.0
 
 clean:
        rm -f la *.o la.0 MAKELOG
index 223cfa2..2fef484 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 # m11 Makefile.  Revised 1996/1/28
 #
 # Note that the pathname for macxrf is wired into exec.m11 ...
@@ -18,7 +20,7 @@ MFLAGS=
 .SUFFIXES: .1 .0
 
 .1.0:
-       /usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 SRCS=  exec.m11 macro.m11 code.m11 expr.m11 fltg.m11 getl.m11 \
        lout.m11  mac.m11 srch.m11 xlat.m11 misc.m11 pst.m11 \
@@ -37,9 +39,9 @@ macxrf: macxrf.c
        cc ${SEPFLAG} -O -w -o macxrf macxrf.c
 
 install: all m11.0
-       install -s m11 ${DESTDIR}/usr/new/m11
-       install -s macxrf ${DESTDIR}/usr/new/macxrf
-       install -c -m 444 -o bin -g bin m11.0 ${DESTDIR}/usr/new/man/cat1/m11.0
+       ${INSTALL} -s m11 ${DESTDIR}/usr/new/m11
+       ${INSTALL} -s macxrf ${DESTDIR}/usr/new/macxrf
+       ${INSTALL} -c -m 444 -o bin -g bin m11.0 ${DESTDIR}/usr/new/man/cat1/m11.0
 
 cmp: all
        cmp m11 ${DESTDIR}/usr/new/m11
index 67b7c07..7d62859 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Makefile for NNTP server support programs
 #
@@ -21,7 +22,7 @@ mkgrdates: mkgrdates.o
        $(CC) ${CFLAGS} -o mkgrdates mkgrdates.o
 
 install: mkgrdates
-       install -s -m  755 ${DESTDIR}${BIN}/mkgrdates
+       ${INSTALL} -s -m  755 ${DESTDIR}${BIN}/mkgrdates
 
 lint:
        lint mkgrdates.c
index 8ae7f20..a26b4a0 100644 (file)
@@ -45,7 +45,7 @@ isec8:        $(SEC8)
        touch isec8
 
 ar:    $(FILES)
-       ar r ../Page.a $(FILES)
+       ${AR} r ../Page.a $(FILES)
        touch ar
 
 dist:  $(FILES) $(OTHERS)
index 668ce99..999b675 100644 (file)
@@ -246,7 +246,7 @@ saveutil:
 #
 
 libnfcom.a:    $(LIBOBJS)
-       ar r libnfcom.a $(LIBOBJS)
+       ${AR} r libnfcom.a $(LIBOBJS)
        -ranlib libnfcom.a
 
 #
index 1b7c144..619f782 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #!/bin/make -f
 # pathalias -- by steve bellovin, as told to peter honeyman
 
@@ -31,7 +33,7 @@ SRC = $(CSRC) parse.y makedb.c arpatxt.c
 .SUFFIXES: .1 .0
 
 .1.0:
-       /usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 all: pathalias makedb arpatxt pathalias.0
 
@@ -70,7 +72,7 @@ lint: $(LSRC)
        lint arpatxt.c
 
 install: pathalias makedb arpatxt pathalias.0
-       install -s pathalias ${DESTDIR}/usr/new
-       install -s makedb ${DESTDIR}/usr/new
-       install -s arpatxt ${DESTDIR}/usr/new
-       install -c -m 444 -o bin -g bin pathalias.0 ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -s pathalias ${DESTDIR}/usr/new
+       ${INSTALL} -s makedb ${DESTDIR}/usr/new
+       ${INSTALL} -s arpatxt ${DESTDIR}/usr/new
+       ${INSTALL} -c -m 444 -o bin -g bin pathalias.0 ${DESTDIR}/usr/new/man/cat1
index 7ca45e9..456eb6a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -28,9 +30,11 @@ LINKS=
 .SUFFIXES: .5 .1 .0
 
 .5.0:
-       ${DESTDIR}/usr/man/manroff $*.5 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.5 > $*.0
+       ${MANROFF} $*.5 > $*.0
 .1.0:
-       ${DESTDIR}/usr/man/manroff $*.1 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 all: ${OBJS}
 
@@ -38,8 +42,8 @@ clean: FRC
        rm -f ${OBJS}
 
 install: ${OBJS1} ${OBJS5}
-       install -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}/usr/new/man/cat1
-       install -c -o bin -g bin -m 444 ${OBJS5} ${DESTDIR}/usr/new/man/cat5
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -c -o bin -g bin -m 444 ${OBJS5} ${DESTDIR}/usr/new/man/cat5
 
 FRC:
 
index b478ecf..9cde932 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #$Header: /usr/src/local/bin/rcs/src/RCS/Makefile,v 1.10 87/12/18 17:06:19 narten Exp $
 # Copyright (C) 1982 by Walter F. Tichy
 #                       Purdue University
@@ -147,7 +148,7 @@ install:    all
 installog:     installsnoop install
 
 installsnoop:  snoop
-       install -s snoop ${DESTDIR}$(SNOOP)
+       ${INSTALL} -s snoop ${DESTDIR}$(SNOOP)
        chmod u+s ${DESTDIR}$(SNOOP)
        touch ${DESTDIR}$(SNOOPFILE)
        chmod 644 ${DESTDIR}$(SNOOPFILE)
index fdfda7a..20f8931 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 #REMOTE=-DREMOTE                       # -DREMOTE  use remote tape
 SWAP=                          # -DSWAP swap bytes
@@ -15,11 +17,11 @@ vmsbackup: vmsbackup.o match.o
        cc $(LFLAGS) -o vmsbackup vmsbackup.o match.o $(LIBS)
 
 install: vmsbackup $(MAN)
-       install -m $(MODE) -o $(OWNER) -s vmsbackup ${DESTDIR}$(BINDIR) 
-       install -c -m 0444 -o bin -g bin vmsbackup.0 ${DESTDIR}$(MANDIR)
+       ${INSTALL} -m $(MODE) -o $(OWNER) -s vmsbackup ${DESTDIR}$(BINDIR)      
+       ${INSTALL} -c -m 0444 -o bin -g bin vmsbackup.0 ${DESTDIR}$(MANDIR)
 
 vmsbackup.0: $(MANSRC)
-       /usr/man/manroff $(MANSRC) > $(MAN)
+       ${MANROFF} $(MANSRC) > $(MAN)
 
 clean:
        rm -f vmsbackup *.o core $(MAN)
diff --git a/o.sh b/o.sh
index 4fd0a35..04166ca 100755 (executable)
--- a/o.sh
+++ b/o.sh
@@ -9,12 +9,15 @@ CC="$ROOT/cross/bin/cc"
 CPP="$ROOT/cross/lib/cpp"
 LD="$ROOT/cross/bin/ld"
 LORDER="$ROOT/cross/usr/bin/lorder"
+MANROFF="nroff -man"
 MKDEP="$ROOT/cross/usr/bin/mkdep"
+INSTALL="$ROOT/install.sh --strip-program=\"$ROOT/cross/usr/bin/strip\""
 RANLIB="$ROOT/cross/usr/bin/ranlib"
 SIZE="$ROOT/cross/bin/size"
 STRCOMPACT="$ROOT/cross/usr/ucb/strcompact"
 SYMCOMPACT="$ROOT/cross/usr/ucb/symcompact"
 SYMORDER="$ROOT/cross/usr/ucb/symorder"
+YACC="$ROOT/cross/usr/bin/yacc"
 
 # create skeleton filesystem for target
 mkdir --parents "$ROOT/stage/bin"
@@ -309,25 +312,31 @@ mkdir --parents "$ROOT/stage/usr/ucb"
 make clean
 
 # do /usr/include, depend needs it
-make -C include SHARED=copies SYSDIR="$ROOT/sys" DESTDIR="$ROOT/stage" install
+make -C include INSTALL="$INSTALL" SHARED=copies SYSDIR="$ROOT/sys" DESTDIR="$ROOT/stage" install
 
 # do depend, it doesn't need libs
 make CC="$CC" MKDEP="$MKDEP" depend
 
-# do libc, it needs to be installed before building the rest
-make -C lib AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C"
-make -C lib RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
-
-# do remaining libs, they need to be installed before building the rest
-make -C usr.lib AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C"
-make -C usr.lib RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
-
-# do /lib/libkern.a, since the kernel needs it
-make -C lib/libkern CC="$CC" MKDEP="$MKDEP" depend
-make -C lib/libkern AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER"
-make -C lib/libkern RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
-
-# now we can build the kernel
-make -C sys/GENERIC I="$ROOT/stage/usr/include" CC="$CC" MKDEP="$MKDEP" depend
-make -C sys/GENERIC I="$ROOT/stage/usr/include" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" SIZE="$SIZE" STRCOMPACT="$STRCOMPACT" SYMCOMPACT="$SYMCOMPACT" SYMORDER="$SYMORDER"
-make -C sys/GENERIC DESTDIR="$ROOT/stage" install
+# build libraries, except lib/libkern and usr.lib/libU77
+for i in \
+lib/libc \
+usr.lib/lib2648 \
+usr.lib/libcurses \
+usr.lib/libdbm \
+usr.lib/liberrlst \
+usr.lib/libF77 \
+usr.lib/libI77 \
+usr.lib/libident \
+usr.lib/libln \
+usr.lib/libmp \
+usr.lib/libom \
+usr.lib/libplot \
+usr.lib/libstubs \
+usr.lib/libtermlib \
+usr.lib/libutil \
+usr.lib/libvmf \
+usr.lib/liby
+do
+  make -C $i AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" LORDER="$LORDER" MANROFF="$MANROFF" RANLIB="$RANLIB" YACC="$YACC" LOCALE="LC_ALL=C"
+  make -C $i INSTALL="$INSTALL" RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
+done
index 90b47ea..2377aec 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 DESTDIR=
 CFLAGS=        -O
@@ -34,9 +35,9 @@ install:
        -for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
        -for i in ${STD} ${NSTD}; do \
-               (install $$i ${DESTDIR}/usr/old/$$i); done
+               (${INSTALL} $$i ${DESTDIR}/usr/old/$$i); done
        -for i in ${SHELL}; do \
-               (install -c -m 755 $$i.sh ${DESTDIR}/usr/old/$$i); done
+               (${INSTALL} -c -m 755 $$i.sh ${DESTDIR}/usr/old/$$i); done
 
 clean:
        rm -f a.out core *.s *.o
index 355a038..15c63d1 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # arcv makefile
 #
@@ -13,7 +14,7 @@ all: ${OBJS}
        cc ${SEPFLAG} ${OBJS} -o arcv
 
 install:
-       install -s arcv ${DESTDIR}/usr/old/arcv
+       ${INSTALL} -s arcv ${DESTDIR}/usr/old/arcv
 
 clean:
        rm -f arcv *.o core
index 0ddb035..bb9ebb2 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # checkobj Makefile.  Revised 1996/.1/28
 #
@@ -13,11 +15,11 @@ checkobj: checkobj.o
        cc ${CFLAGS} ${SEPFLAG} checkobj.o -o checkobj
 
 install: checkobj checkobj.0
-       install -s checkobj ${DESTDIR}/usr/new/checkobj
-       install -c -m 444 -o bin -g bin checkobj.0 ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -s checkobj ${DESTDIR}/usr/new/checkobj
+       ${INSTALL} -c -m 444 -o bin -g bin checkobj.0 ${DESTDIR}/usr/new/man/cat1
 
 checkobj.0: checkobj.1
-       /usr/man/manroff checkobj.1 > checkobj.0
+       ${MANROFF} checkobj.1 > checkobj.0
 
 clean:
        rm -f checkobj *.o checkobj.0 MAKELOG
index 03292f2..742d5ab 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.5     84/08/26
 
 CFLAGS=-O
@@ -14,9 +15,9 @@ uncompact: uncompact.o tree.o
 compact.o uncompact.o tree.o: compact.h
 
 install:
-       install -s compact ${DESTDIR}/usr/ucb
-       install -s uncompact ${DESTDIR}/usr/ucb
-       install -c -m 755 ccat.sh ${DESTDIR}/usr/ucb/ccat
+       ${INSTALL} -s compact ${DESTDIR}/usr/ucb
+       ${INSTALL} -s uncompact ${DESTDIR}/usr/ucb
+       ${INSTALL} -c -m 755 ccat.sh ${DESTDIR}/usr/ucb/ccat
 
 clean:
        rm -f compact uncompact compact.o uncompact.o tree.o
index 7fe7569..1ede8e0 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # sccsid = "@(#)Makefile       1.3.1 (2.11BSD) 1996/11/17"
 #
 #      dump.h                  header file
@@ -29,8 +30,8 @@ dumpdir: dumpdir.c
        cc ${CFLAGS} ${SEPFLAG} dumpdir.c -o dumpdir
 
 install:
-       install -s dump ${DESTDIR}/sbin/dump
-       install -s dumpdir ${DESTDIR}/sbin/dumpdir
+       ${INSTALL} -s dump ${DESTDIR}/sbin/dump
+       ${INSTALL} -s dumpdir ${DESTDIR}/sbin/dumpdir
 
 clean:
        rm -f *.o dump dumpdir
index a0650fc..8c01407 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # 'nmcoll' is remnant from the era before long(er) symbol names were
 # supported in object files.
@@ -11,11 +13,11 @@ SEPFLAG=-i
 all: nmcoll.sh nmcoll.0
 
 install: nmcoll.sh nmcoll.0
-       install -c -m 755 nmcoll.sh ${DESTDIR}/usr/new/nmcoll
-       install -c -m 444 -o bin -g bin nmcoll.0 ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -c -m 755 nmcoll.sh ${DESTDIR}/usr/new/nmcoll
+       ${INSTALL} -c -m 444 -o bin -g bin nmcoll.0 ${DESTDIR}/usr/new/man/cat1
 
 nmcoll.0: nmcoll.1
-       /usr/man/manroff nmcoll.1 > nmcoll.0
+       ${MANROFF} nmcoll.1 > nmcoll.0
 
 clean:
        -rm -f nmcoll.0
index 4eded5d..36ac427 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # oldassn Makefile.  Revised 1996/1/28
 #
@@ -15,11 +17,11 @@ oldassn: oldassn.l
        rm lex.yy.c
 
 install: oldassn oldassn.0
-       install -s oldassn ${DESTDIR}/usr/new/oldassn
-       install -c -m 444 -o bin -g bin oldassn.0 ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -s oldassn ${DESTDIR}/usr/new/oldassn
+       ${INSTALL} -c -m 444 -o bin -g bin oldassn.0 ${DESTDIR}/usr/new/man/cat1
 
 oldassn.0: oldassn.1
-       /usr/man/manroff oldassn.1 > oldassn.0
+       ${MANROFF} oldassn.1 > oldassn.0
 
 clean:
        rm -f oldassn *.o lex.yy.c MAKELOG oldassn.0
index 35c5a5e..6abda97 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # shortc Makefile.  Revised 1996/1/28
 #
@@ -13,11 +15,11 @@ shortc:     shortc.o
        cc ${CFLAGS} ${SEPFLAG} shortc.o -o shortc
 
 install: shortc shortc.0
-       install -s shortc ${DESTDIR}/usr/new/shortc
-       install -c -m 444 -o bin -g bin shortc.0 ${DESTDIR}/usr/new/man/cat1
+       ${INSTALL} -s shortc ${DESTDIR}/usr/new/shortc
+       ${INSTALL} -c -m 444 -o bin -g bin shortc.0 ${DESTDIR}/usr/new/man/cat1
 
 shortc.0: shortc.1
-       /usr/man/manroff shortc.1 > shortc.0
+       ${MANROFF} shortc.1 > shortc.0
 
 clean:
        rm -f shortc shortc.0 *.o MAKELOG
index f6080df..6a2a4c3 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # v6 makefile
 #
@@ -13,7 +14,7 @@ all: ${OBJS} inode.h filsys.h
        cc ${SEPFLAG} ${OBJS} -o v6
 
 install:
-       install -s v6 ${DESTDIR}/usr/old/v6
+       ${INSTALL} -s v6 ${DESTDIR}/usr/old/v6
 
 clean:
        rm -f v6 *.o core
index c00881e..82a1235 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -18,7 +19,7 @@ XNSrouted: ${OBJS}
        ${CC} ${SEPFLAG} -o XNSrouted ${OBJS}
 
 install: XNSrouted
-       install -s XNSrouted ${DESTDIR}/sbin
+       ${INSTALL} -s XNSrouted ${DESTDIR}/sbin
 
 clean:
        rm -f XNSrouted *.o core
index e924c31..7f6ca96 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ badsect: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 badsect.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} badsect tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: badsect
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 badsect ${DESTDIR}/sbin/badsect
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 badsect ${DESTDIR}/sbin/badsect
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 245a0bf..818ae87 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ clri: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 clri.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} clri tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: clri
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 clri ${DESTDIR}/sbin/clri
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 clri ${DESTDIR}/sbin/clri
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 98800a1..f9db795 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ dcheck: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 dcheck.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} dcheck tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: dcheck
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 dcheck ${DESTDIR}/sbin/dcheck
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 dcheck ${DESTDIR}/sbin/dcheck
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 76174ff..601629b 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ dmesg: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 dmesg.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} dmesg tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: dmesg
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o bin -g kmem -m 2755 dmesg ${DESTDIR}/sbin/dmesg
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g kmem -m 2755 dmesg ${DESTDIR}/sbin/dmesg
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 10ebeb8..93f2c2c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # sccsid = "@(#)Makefile       1.5 (2.11BSD GTE) 1996/11/16"
 #
 #      dump.h                  header file
@@ -35,9 +36,9 @@ dumpdir: dumpdir.c
        cc ${CFLAGS} ${SEPFLAG} dumpdir.c -o dumpdir
 
 install: all
-       install -s dump ${DESTDIR}/sbin/dump
-       install -s rdump ${DESTDIR}/sbin/rdump
-       install -s dumpdir ${DESTDIR}/sbin/dumpdir
+       ${INSTALL} -s dump ${DESTDIR}/sbin/dump
+       ${INSTALL} -s rdump ${DESTDIR}/sbin/rdump
+       ${INSTALL} -s dumpdir ${DESTDIR}/sbin/dumpdir
 
 clean:
        rm -f *.o dump rdump dumpdir
index 96f5aa1..4562527 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ dumpfs: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 dumpfs.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} dumpfs tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: dumpfs
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 dumpfs ${DESTDIR}/sbin/dumpfs
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 dumpfs ${DESTDIR}/sbin/dumpfs
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 26a8115..ff4425c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -47,7 +48,7 @@ strings.o: strings
        rm -f xs.c
 
 install: ${PROG}
-       install -s ${PROG} ${DESTDIR}/sbin/${PROG}
+       ${INSTALL} -s ${PROG} ${DESTDIR}/sbin/${PROG}
 
 clean:
        rm -f a.out core ${OBJS} ${PROG} strings.o x.c xs.c strings
index b0d3025..ea34bbe 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1999/7/21 - Steven Schultz
 #
@@ -16,7 +18,7 @@ gt307: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 gt307.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} gt307 tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: gt307
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 gt307 ${DESTDIR}/sbin/gt307
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 gt307 ${DESTDIR}/sbin/gt307
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 5a9451e..884882c 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ icheck: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 icheck.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} icheck tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: icheck
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 icheck ${DESTDIR}/sbin/icheck
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 icheck ${DESTDIR}/sbin/icheck
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index a5575b2..2cbad16 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ ifconfig: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 ifconfig.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} ifconfig tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ifconfig
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 ifconfig ${DESTDIR}/sbin/ifconfig
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 ifconfig ${DESTDIR}/sbin/ifconfig
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 9975d3f..93f0c37 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1997/1/10 - Steven Schultz
 #
@@ -16,7 +18,7 @@ init: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 init.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} init tags 
@@ -25,9 +27,9 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: init
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
        -mv /etc/init /etc/init.old
-       install -s -o root -g bin -m 700 init ${DESTDIR}/etc/init
+       ${INSTALL} -s -o root -g bin -m 700 init ${DESTDIR}/etc/init
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 6bd4dde..d49587f 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ mkfs: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 mkfs.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} mkfs tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: mkfs
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 mkfs ${DESTDIR}/sbin/mkfs
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 mkfs ${DESTDIR}/sbin/mkfs
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index d1a53f8..c69d0a3 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ mknod: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 mknod.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} mknod tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: mknod
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 mknod ${DESTDIR}/sbin/mknod
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 mknod ${DESTDIR}/sbin/mknod
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index a07b997..7d24a4b 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -36,11 +38,11 @@ depend: ${SRCS}
        ${MKDEP} -p ${CFLAGS} ${SRCS}
 
 install: ${MAN} mkpasswd
-       install -s -o bin -g bin -m 755 mkpasswd ${DESTDIR}/sbin/mkpasswd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g bin -m 755 mkpasswd ${DESTDIR}/sbin/mkpasswd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
 
 mkpasswd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index 2e6c472..b92edb4 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/1/15 - Steven Schultz
 #
@@ -19,7 +21,7 @@ mount: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 mount.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} mount tags 
@@ -28,8 +30,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 mount ${DESTDIR}/sbin/mount
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 mount ${DESTDIR}/sbin/mount
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index f7c2341..1f24673 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ ncheck: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 ncheck.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} ncheck tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ncheck
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 ncheck ${DESTDIR}/sbin/ncheck
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 ncheck ${DESTDIR}/sbin/ncheck
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 2aebd1d..f89f117 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ newfs: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 newfs.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} newfs tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: newfs
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 newfs ${DESTDIR}/sbin/newfs
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 newfs ${DESTDIR}/sbin/newfs
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 603981a..87580de 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/1/23 - Steven Schultz
 #
@@ -16,7 +18,7 @@ quotacheck: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 quotacheck.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} quotacheck tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 quotacheck ${DESTDIR}/sbin/quotacheck
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 quotacheck ${DESTDIR}/sbin/quotacheck
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index fd68264..d2766ea 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ reboot: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 reboot.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} reboot tags 
@@ -25,11 +27,11 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: reboot
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
        -rm -f ${DESTDIR}/usr/man/cat8/fastboot.0 ${DESTDIR}/usr/man/cat8/halt.0
        ln ${DESTDIR}/usr/man/cat8/reboot.0 ${DESTDIR}/usr/man/cat8/fastboot.0
        ln ${DESTDIR}/usr/man/cat8/reboot.0 ${DESTDIR}/usr/man/cat8/halt.0
-       install -s -o root -g bin -m 755 reboot ${DESTDIR}/sbin/reboot
+       ${INSTALL} -s -o root -g bin -m 755 reboot ${DESTDIR}/sbin/reboot
        -rm ${DESTDIR}/sbin/fastboot ${DESTDIR}/sbin/halt
        ln ${DESTDIR}/sbin/reboot ${DESTDIR}/sbin/halt
        ln ${DESTDIR}/sbin/reboot ${DESTDIR}/sbin/fastboot
index 91360c5..4144165 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ restor: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 restor.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} restor tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: restor
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 restor ${DESTDIR}/sbin/restor
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 restor ${DESTDIR}/sbin/restor
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index af8557d..3ec2e54 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ route: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 route.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} route tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: route
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 route ${DESTDIR}/sbin/route
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 route ${DESTDIR}/sbin/route
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index c2283f0..6cca86f 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -21,7 +22,7 @@ routed: ${OBJS}
        ${CC} ${SEPFLAG} -o routed ${LDFLAGS} ${OBJS}
 
 install: routed
-       install -s routed ${DESTDIR}/sbin
+       ${INSTALL} -s routed ${DESTDIR}/sbin
 
 # The following can be deleted where not appropriate to use the kernel's
 # inline code expansions.
index dd2f501..6cf2325 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ savecore: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 savecore.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} savecore tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: savecore
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 savecore ${DESTDIR}/sbin/savecore
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 savecore ${DESTDIR}/sbin/savecore
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index b1562fb..2730f63 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ shutdown: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 shutdown.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} shutdown tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: shutdown
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g operator -m 4750 shutdown ${DESTDIR}/sbin/shutdown
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g operator -m 4750 shutdown ${DESTDIR}/sbin/shutdown
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 27a662f..132fb8e 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ slattach: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 slattach.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} slattach tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: slattach
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 slattach ${DESTDIR}/sbin/slattach
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 slattach ${DESTDIR}/sbin/slattach
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index c121b55..dc88a6b 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ swapon: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 swapon.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} swapon tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: swapon
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 swapon ${DESTDIR}/sbin/swapon
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 swapon ${DESTDIR}/sbin/swapon
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index ef1efa1..5d0f8eb 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -20,7 +21,7 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: testnet
-       install -s -o root -g bin -m 755 testnet ${DESTDIR}/sbin/testnet
+       ${INSTALL} -s -o root -g bin -m 755 testnet ${DESTDIR}/sbin/testnet
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 8dd4c1a..298bd02 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ tunefs: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 tunefs.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} tunefs tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: tunefs
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 tunefs ${DESTDIR}/sbin/tunefs
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 tunefs ${DESTDIR}/sbin/tunefs
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 6153253..bef080b 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/1/15 - Steven Schultz
 #
@@ -16,7 +18,7 @@ umount: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 umount.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} umount tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 umount ${DESTDIR}/sbin/umount
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 umount ${DESTDIR}/sbin/umount
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index c40cd52..0117bfe 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1996/10/21 - sms
 #
@@ -14,6 +15,6 @@ all:  ${SRCS}
 install:${SRCS}
        -mkdir -p ${DESTDIR}/usr/share/adb
        -chmod a+r,a+x ${DESTDIR}/usr/share/adb
-       install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/adb
+       ${INSTALL} -c -m 444 ${SRCS} ${DESTDIR}/usr/share/adb
 
 clean:
index d98d7ef..0a460d4 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1996/10/23 - sms
 #
@@ -19,6 +20,6 @@ all:  ${SRCS}
 install:${SRCS}
        -mkdir -p ${DESTDIR}/usr/share/font
        -chmod a+r,a+x ${DESTDIR}/usr/share/font
-       install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/font
+       ${INSTALL} -c -m 444 ${SRCS} ${DESTDIR}/usr/share/font
 
 clean:
index e9284cb..65924a3 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Public domain - 1996/10/22 - sms
 #
 #      @(#)Makefile    1.0 (2.11BSD) 1996/10/22
@@ -18,6 +19,6 @@ all:  ${SRCS}
 install:${SRCS}
        -mkdir -p ${DESTDIR}/usr/share/fontinfo
        -chmod a+r,a+x ${DESTDIR}/usr/share/fontinfo
-       install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/fontinfo
+       ${INSTALL} -c -m 444 ${SRCS} ${DESTDIR}/usr/share/fontinfo
 
 clean:
index 374b2d0..7f7f1f8 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
@@ -25,7 +26,7 @@ install: ${LESSONS} ${FILES}
        done
        @for i in ${FILES}; do \
                echo copy $$i; \
-               install -c -m 644 $$i ${DESTDIR}/usr/share/learn/$$i; \
+               ${INSTALL} -c -m 644 $$i ${DESTDIR}/usr/share/learn/$$i; \
        done
 # For some unknown reason the following line sometimes fails with an
 # exit -115 ...
index fbf9f39..05dc919 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1996/10/23 - sms
 #
@@ -17,7 +18,7 @@ all:
 install:${SRCS}
        -mkdir -p ${S}
        -chmod a+r,a+x ${S}
-       install -c -m 444 ${SRCS} ${S}
+       ${INSTALL} -c -m 444 ${SRCS} ${S}
 
 clean:
 
index e71cf54..f7b13df 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -35,11 +36,11 @@ install: revisions $(SRCS)
                    -e '/%beginstrip%/,$$s/[.   ][      ]*\\".*//' \
                    -e '/^$$/d' \
                    -e '/\\n@/d' $$i > _mac_tmp_; \
-               install -m 0444 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
+               ${INSTALL} -m 0444 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
        done
        -mkdir -p ${DESTDIR}/usr/share/tmac
        mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/share/tmac/tmac.e
-       install -c -m 0444 revisions ${DESTDIR}${LIB}/revisions
-       install -c -m 444 ${MISC} ${DESTDIR}${LIB}
+       ${INSTALL} -c -m 0444 revisions ${DESTDIR}${LIB}/revisions
+       ${INSTALL} -c -m 444 ${MISC} ${DESTDIR}${LIB}
 
 clean:
index 3e4ceff..79a8424 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1996/10/21 - sms
 #
@@ -14,6 +15,6 @@ all:  ${SRCS}
 install:${SRCS}
        -mkdir -p ${DESTDIR}/usr/share/misc
        -chmod a+r,a+x ${DESTDIR}/usr/share/misc
-       install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/misc
+       ${INSTALL} -c -m 444 ${SRCS} ${DESTDIR}/usr/share/misc
 
 clean:
index 2082f53..cb43aa1 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public domain - 1996/10/21 - sms.
 #
@@ -13,7 +14,7 @@ all:  ${SRCS}
 install:${SRCS}
        -mkdir -p /usr/share/ms
        -chmod a+r /usr/share/ms
-       install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/ms
+       ${INSTALL} -c -m 444 ${SRCS} ${DESTDIR}/usr/share/ms
        chmod a+x ${DESTDIR}/usr/share/ms/endnote
 
 clean:
index 2f888e1..04459c4 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -15,16 +16,16 @@ termcap: reorder termcap.src
        ex - termcap.src < reorder
 
 install: termcap tabset map3270
-       install -c -m 444 termcap ${DESTDIR}/usr/share/misc/termcap
+       ${INSTALL} -c -m 444 termcap ${DESTDIR}/usr/share/misc/termcap
        rm -f ${DESTDIR}/etc/termcap
        ln -s ../usr/share/misc/termcap ${DESTDIR}/etc/termcap
-       install -c -m 444 map3270 ${DESTDIR}/usr/share/misc/map3270
+       ${INSTALL} -c -m 444 map3270 ${DESTDIR}/usr/share/misc/map3270
 
 tabset: FRC
        rm -fr ${DESTDIR}/usr/share/tabset
        mkdir ${DESTDIR}/usr/share/tabset
        chmod 755 ${DESTDIR}/usr/share/tabset
-       install -c -m 444 tabset/* ${DESTDIR}/usr/share/tabset
+       ${INSTALL} -c -m 444 tabset/* ${DESTDIR}/usr/share/tabset
 
 clean:
        rm -f termcap
index 20e4ef3..dcc874c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1985 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -18,6 +19,6 @@ all:  ${SRCS}
 install:${SRCS}
        -mkdir -p ${DESTDIR}/usr/share/tmac
        -chmod a+r,a+x ${DESTDIR}/usr/share/tmac
-       install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/tmac
+       ${INSTALL} -c -m 444 ${SRCS} ${DESTDIR}/usr/share/tmac
 
 clean:
index 8252253..751843d 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 # @(#)Makefile 1.6 Makefile 1997/12/28
 
 DESTDIR=
@@ -6,7 +8,7 @@ DESTDIR=
 # system, change the line below (after finding the zone you want in the
 # time zone files, or adding it to a time zone file).
 # Alternately, if you discover you've got the wrong time zone, you can just
-#      install -c -m 444 /usr/share/zoneinfo/right_zone /etc/localtime
+#      ${INSTALL} -c -m 444 /usr/share/zoneinfo/right_zone /etc/localtime
 
 LOCALTIME=     US/Pacific
 
@@ -43,16 +45,16 @@ all:                zdump zic ${ZICMAN} ${ZDUMAN}
 
 install:       zic $(DATA) $(MAN)
                (umask 22; ./zic -d ${SHARDIR} $(DATA))
-               install -c -m 444 -o bin -g bin ${SHARDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
-               install -c -m 444 -o bin -g bin $(ZICMAN) ${MANDIR}/${ZICMAN}
-               install -c -m 444 -o bin -g bin $(ZDUMAN) ${MANDIR}/${ZDUMAN}
-               install -c -s -m 755 -o bin -g bin zic ${DESTDIR}/usr/sbin/zic
+               ${INSTALL} -c -m 444 -o bin -g bin ${SHARDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
+               ${INSTALL} -c -m 444 -o bin -g bin $(ZICMAN) ${MANDIR}/${ZICMAN}
+               ${INSTALL} -c -m 444 -o bin -g bin $(ZDUMAN) ${MANDIR}/${ZDUMAN}
+               ${INSTALL} -c -s -m 755 -o bin -g bin zic ${DESTDIR}/usr/sbin/zic
 
 zdump.0:       $(ZDUMANSRC)
-               /usr/man/manroff $(ZDUMANSRC) > $(ZDUMAN)
+               ${MANROFF} $(ZDUMANSRC) > $(ZDUMAN)
 
 zic.0:         $(ZICMANSRC)
-               /usr/man/manroff $(ZICMANSRC) > $(ZICMAN)
+               ${MANROFF} $(ZICMANSRC) > $(ZICMAN)
 
 zdump:         $(TZDOBJS)
                $(CC) $(CFLAGS) $(LFLAGS) $(SEPFLAG) $(TZDOBJS) -o $@
index b0f5cf6..919c0a6 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 OPTS=-DCURLY -DUCB_METER -DINET -DQUOTA -DUCB_CLIST
 #
 # Copyright (c) 1988 Regents of the University of California.
@@ -105,7 +106,7 @@ all: unix netnix
 
 # d.unix.o must be last object file in the dependency list!
 unix: ${SUB} ${KERNOBJ} d.unix.o checksys
-       ld -X -i -o unix ${LD_KOBJ} d.unix.o
+       ${LD} -X -i -o unix ${LD_KOBJ} d.unix.o
        size unix
        @echo Compacting symbol table
        -symcompact unix
@@ -117,7 +118,7 @@ unix: ${SUB} ${KERNOBJ} d.unix.o checksys
 
 # d.netnix.o must be the last object file in the dependency list!
 netnix: d.netnix.o
-       -ld -X -i -o netnix ${NETOBJ} -lkern d.netnix.o
+       -${LD} -X -i -o netnix ${NETOBJ} -lkern d.netnix.o
        size netnix
        @echo Compacting symbol table
        -symcompact netnix
@@ -131,8 +132,8 @@ netnix: d.netnix.o
 # include ${NETOBJ} and ${KERNOBJ} on dependency line, but the pdp make doesn't
 # have enough table space.
 d.unix.o d.netnix.o: netbind FRC
-       ld -q -r -d -X -i -o unix.o ${LD_KOBJ}
-       ld -q -r -d -X -i -o netnix.o ${NETOBJ} -lkern
+       ${LD} -q -r -d -X -i -o unix.o ${LD_KOBJ}
+       ${LD} -q -r -d -X -i -o netnix.o ${NETOBJ} -lkern
        ./netbind unix.o netnix.o
        rm unix.o netnix.o
        ${AS} - -o d.unix.o d.unix.s
@@ -174,8 +175,8 @@ clean:
        rm -f netnix netbind d.unix.s d.netnix.s
 
 install:
-       install -c -o root -g kmem -m 744 unix ${DESTDIR}/unix
-       install -c -o root -g kmem -m 744 netnix ${DESTDIR}/netnix
+       ${INSTALL} -c -o root -g kmem -m 744 unix ${DESTDIR}/unix
+       ${INSTALL} -c -o root -g kmem -m 744 netnix ${DESTDIR}/netnix
 
 depend: FRC
        for i in ${SUB}; do \
index e6ae679..094dd8c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 OPTS=-DGENERIC -DSOFUB_MAP
 #
 # Copyright (c) 1988 Regents of the University of California.
@@ -125,8 +126,7 @@ clean:
        rm -f unix core mklog *.o assym.h csym.h genassym gencsym checksys
 
 install:
-#      install -c -o root -g kmem -m 744 unix ${DESTDIR}/unix
-       install -m 644 unix ${DESTDIR}/unix
+       ${INSTALL} -c -o root -g kmem -m 744 unix ${DESTDIR}/unix
 
 depend: FRC
        for i in ${SUB}; do \
index 36ea672..e272b47 100755 (executable)
@@ -2,6 +2,8 @@
 ROOT="`pwd |sed -e 's/\/sys\/GENERIC$//'`"
 AS="$ROOT/cross/bin/as"
 CC="$ROOT/cross/bin/cc"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 CPP="$ROOT/cross/lib/cpp"
 LD="$ROOT/cross/bin/ld"
 MKDEP="$ROOT/cross/usr/bin/mkdep"
@@ -9,6 +11,6 @@ SIZE="$ROOT/cross/bin/size"
 STRCOMPACT="$ROOT/cross/usr/ucb/strcompact"
 SYMCOMPACT="$ROOT/cross/usr/ucb/symcompact"
 SYMORDER="$ROOT/cross/usr/ucb/symorder"
-make I="$ROOT/stage/usr/include" CC="$CC" MKDEP="$MKDEP" depend
-make I="$ROOT/stage/usr/include" AS="$AS" CC="$CC" CPP="$CPP" LD="$LD" SIZE="$SIZE" STRCOMPACT="$STRCOMPACT" SYMCOMPACT="$SYMCOMPACT" SYMORDER="$SYMORDER"
+make I="$ROOT/stage/usr/include" CC="$CC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend
+make I="$ROOT/stage/usr/include" AS="$AS" CC="$CC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" SIZE="$SIZE" STRCOMPACT="$STRCOMPACT" SYMCOMPACT="$SYMCOMPACT" SYMORDER="$SYMORDER"
 make DESTDIR="$ROOT/stage" install
index 5489866..bad7a50 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 OPTS=-DSMS -DUCB_METER -DINET -DQUOTA -DUCB_CLIST
 #
 # Copyright (c) 1988 Regents of the University of California.
@@ -105,7 +106,7 @@ all: unix netnix
 
 # d.unix.o must be last object file in the dependency list!
 unix: ${SUB} ${KERNOBJ} d.unix.o checksys
-       ld -X -i -o unix ${LD_KOBJ} d.unix.o
+       ${LD} -X -i -o unix ${LD_KOBJ} d.unix.o
        size unix
        @echo Compacting symbol table
        -symcompact unix
@@ -117,7 +118,7 @@ unix: ${SUB} ${KERNOBJ} d.unix.o checksys
 
 # d.netnix.o must be the last object file in the dependency list!
 netnix: d.netnix.o
-       -ld -X -i -o netnix ${NETOBJ} -lkern d.netnix.o
+       -${LD} -X -i -o netnix ${NETOBJ} -lkern d.netnix.o
        size netnix
        @echo Compacting symbol table
        -symcompact netnix
@@ -131,8 +132,8 @@ netnix: d.netnix.o
 # include ${NETOBJ} and ${KERNOBJ} on dependency line, but the pdp make doesn't
 # have enough table space.
 d.unix.o d.netnix.o: netbind FRC
-       ld -q -r -d -X -i -o unix.o ${LD_KOBJ}
-       ld -q -r -d -X -i -o netnix.o ${NETOBJ} -lkern
+       ${LD} -q -r -d -X -i -o unix.o ${LD_KOBJ}
+       ${LD} -q -r -d -X -i -o netnix.o ${NETOBJ} -lkern
        ./netbind unix.o netnix.o
        rm unix.o netnix.o
        ${AS} - -o d.unix.o d.unix.s
@@ -174,8 +175,8 @@ clean:
        rm -f netnix netbind d.unix.s d.netnix.s
 
 install:
-       install -c -o root -g kmem -m 744 unix ${DESTDIR}/unix
-       install -c -o root -g kmem -m 744 netnix ${DESTDIR}/netnix
+       ${INSTALL} -c -o root -g kmem -m 744 unix ${DESTDIR}/unix
+       ${INSTALL} -c -o root -g kmem -m 744 netnix ${DESTDIR}/netnix
 
 depend: FRC
        for i in ${SUB}; do \
index 03b0336..1b29139 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Makefile for the system autoconfiguration program
 #
@@ -21,7 +22,7 @@ autoconfig: ${OBJS}
        ${CC} ${OBJS} -o $@
 
 install:
-       install -s -m 700 autoconfig ${DESTDIR}/etc
+       ${INSTALL} -s -m 700 autoconfig ${DESTDIR}/etc
 
 depend: 
        ${CC} -M ${CFLAGS} ${SRCS} | \
index ce084fa..5199f9c 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #      Makefile        (2.11BSD)       2.3     1997/8/11
 #
 #      The limitations on program size have been removed.  The addition
@@ -103,12 +105,12 @@ dump:
        dump 0f ${DUMP} /dev/r${DISK}
 
 install: boot
-       install -s boot ${ROOT}/
+       ${INSTALL} -s boot ${ROOT}/
 
 
 libsa.a: ${DRIVERS}
-       ar rv $@ $?
-       ranlib $@
+       ${AR} rv $@ $?
+       ${RANLIB} $@
 
 mkfs.o: ${MKFS}
        cc ${CFLAGS} -c ${MKFS}
@@ -125,19 +127,19 @@ mtboot: mtboot.o
        rm -f $@.o
 
 boot: M.o conf.o boot.o ubmapset.o libsa.a
-       ld -X -o $@ M.o conf.o boot.o ubmapset.o libsa.a -lc
+       ${LD} -X -o $@ M.o conf.o boot.o ubmapset.o libsa.a -lc
 
 mkfs: srt0.o conf.o libsa.a mkfs.o
-       ld -X -o $@ srt0.o conf.o $@.o libsa.a -lc
+       ${LD} -X -o $@ srt0.o conf.o $@.o libsa.a -lc
 
 restor: srt0-i.o conf.o libsa.a restor.o
-       ld -X -i -o $@ srt0-i.o conf.o $@.o libsa.a -lc
+       ${LD} -X -i -o $@ srt0-i.o conf.o $@.o libsa.a -lc
 
 icheck: srt0-i.o conf.o libsa.a icheck.o
-       ld -X -i -o $@ srt0-i.o conf.o $@.o libsa.a -lc
+       ${LD} -X -i -o $@ srt0-i.o conf.o $@.o libsa.a -lc
 
 disklabel: srt0.o conf.o libsa.a disklabel.o displaylab.o
-       ld -X -o $@ srt0.o conf.o $@.o displaylab.o libsa.a -lc
+       ${LD} -X -o $@ srt0.o conf.o $@.o displaylab.o libsa.a -lc
 
 maketape: maketape.c
        cc -O -o $@ maketape.c
@@ -146,7 +148,7 @@ makesimtape: makesimtape.c
        cc -O -o $@ makesimtape.c
 
 toyset: toyset.o srt0.o conf.o libsa.a
-       ld -X -o $@ srt0.o conf.o $@.o libsa.a -lc
+       ${LD} -X -o $@ srt0.o conf.o $@.o libsa.a -lc
 
 tags: FRC
        rm -f tags
index 88bcce2..56a2d96 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    5.16.2 (2.11BSD) 1996/10/31
 
 SRCS=  version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \
@@ -36,10 +37,10 @@ Mail:       $S $(OBJS)
        @size Mail
 
 install: all
-       install -s Mail ${DESTDIR}/usr/ucb/Mail
-       install -s fmt ${DESTDIR}/usr/ucb/fmt
+       ${INSTALL} -s Mail ${DESTDIR}/usr/ucb/Mail
+       ${INSTALL} -s fmt ${DESTDIR}/usr/ucb/fmt
        cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail
-       install -c -m 444 Mail.rc ${DESTDIR}/etc/Mail.rc
+       ${INSTALL} -c -m 444 Mail.rc ${DESTDIR}/etc/Mail.rc
 
 tags:  $(SRCS)
        ${CTAGS} $(SRCS);
index 42bc0d4..3c9ce0c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -52,13 +53,13 @@ install: ${STD} ${NSTD} ${KMEM} ${SETUID}
        -for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
        -for i in ${CSHSCRIPT}; do \
-               (install -m 755 -c $$i.csh ${DESTDIR}/usr/ucb/$$i); done
+               (${INSTALL} -m 755 -c $$i.csh ${DESTDIR}/usr/ucb/$$i); done
        -for i in ${STD} ${NSTD}; do \
-               (install -s $$i ${DESTDIR}/usr/ucb/$$i); done
+               (${INSTALL} -s $$i ${DESTDIR}/usr/ucb/$$i); done
        -for i in ${KMEM}; do \
-               (install -g kmem -m 2755 -s $$i ${DESTDIR}/usr/ucb/$$i); done
+               (${INSTALL} -g kmem -m 2755 -s $$i ${DESTDIR}/usr/ucb/$$i); done
        -for i in ${SETUID}; do \
-               (install -o root -m 4755 -s $$i ${DESTDIR}/usr/ucb/$$i); done
+               (${INSTALL} -o root -m 4755 -s $$i ${DESTDIR}/usr/ucb/$$i); done
        rm -f ${DESTDIR}/usr/ucb/uptime ${DESTDIR}/usr/ucb/f
        ln ${DESTDIR}/usr/ucb/w ${DESTDIR}/usr/ucb/uptime
        ln ${DESTDIR}/usr/ucb/finger ${DESTDIR}/usr/ucb/f
index a10569a..97f2718 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #      @(#)Makefile    5.5 (Berkeley) 9/18/85
 #
@@ -15,7 +16,7 @@ USERMEM:
        sh usermem.sh > USERMEM
 
 install: compress
-       install -s compress $(BIN)
+       ${INSTALL} -s compress $(BIN)
        rm -f $(BIN)/uncompress $(BIN)/zcat
        ln $(BIN)/compress $(BIN)/uncompress
        ln $(BIN)/compress $(BIN)/zcat
index 31405a6..2f10dde 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # dbx makefile
 #
@@ -11,7 +12,7 @@ dbx: ${OBJS}
        ${CC} -o dbx ${SEPFLAG} ${OBJS}
 
 install: dbx
-       install -s dbx ${DESTDIR}/usr/ucb
+       ${INSTALL} -s dbx ${DESTDIR}/usr/ucb
 
 clean:
        rm -f *.o a.out core errs dbx
index e9ad234..bfd4749 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -33,7 +34,7 @@ error:        $(OBJS)
 $(OBJS): $(HDRS)
 
 install: error
-       install -s error $(DESTDIR)/usr/ucb
+       ${INSTALL} -s error $(DESTDIR)/usr/ucb
 
 clean:
        rm -f error $(OBJS)
index ec401eb..8212918 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -131,14 +132,14 @@ install: a.out exrecover expreserve
        -rm -f ${DESTDIR}/${BINDIR}/vi
        -rm -f ${DESTDIR}/${BINDIR}/view
        -rm -f ${DESTDIR}/usr/bin/ex
-       install -s -m 1755 a.out ${DESTDIR}/${BINDIR}/ex
-       install -c -m 444  exstrings ${DESTDIR}/${MISCDIR}/exstrings
+       ${INSTALL} -s -m 1755 a.out ${DESTDIR}/${BINDIR}/ex
+       ${INSTALL} -c -m 444  exstrings ${DESTDIR}/${MISCDIR}/exstrings
        ln ${DESTDIR}/${BINDIR}/ex ${DESTDIR}/${BINDIR}/vi
        ln ${DESTDIR}/${BINDIR}/ex ${DESTDIR}/${BINDIR}/view
        ln ${DESTDIR}/${BINDIR}/ex ${DESTDIR}/usr/bin/ex
        chmod 1755 ${DESTDIR}/${BINDIR}/ex
-       install -s -o root -m 4755 exrecover ${DESTDIR}/${SBINDIR}/exrecover
-       install -s -o root -m 4755 expreserve ${DESTDIR}/${SBINDIR}/expreserve
+       ${INSTALL} -s -o root -m 4755 exrecover ${DESTDIR}/${SBINDIR}/exrecover
+       ${INSTALL} -s -o root -m 4755 expreserve ${DESTDIR}/${SBINDIR}/expreserve
 # The following line normally fails.  This is OK.
        -mkdir ${DESTDIR}/usr/preserve
 
index 6bf9824..efe3609 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -39,11 +41,11 @@ depend: ${SRCS}
 
 # install: ${MAN}
 install: finger ${MAN}
-       install -s -o bin -g bin -m 755 finger ${DESTDIR}/usr/ucb
-       install -c -o bin -g bin -m 444 finger.0 ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o bin -g bin -m 755 finger ${DESTDIR}/usr/ucb
+       ${INSTALL} -c -o bin -g bin -m 444 finger.0 ${DESTDIR}/usr/man/cat1
 
 ${MAN}: finger.1
-       /usr/man/manroff finger.1 > ${MAN}
+       ${MANROFF} finger.1 > ${MAN}
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index a1b002c..9af1f8b 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # fp makefile
 #
@@ -11,7 +12,7 @@ fp: ${OBJS}
        ${CC} -o fp ${SEPFLAG} ${OBJS}
 
 install: fp
-       install -s fp ${DESTDIR}/usr/ucb
+       ${INSTALL} -s fp ${DESTDIR}/usr/ucb
 
 clean:
        rm -f *.o a.out core errs fp
index b6359fe..e9dabb9 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -29,7 +31,7 @@ ftp: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS}
 
 ftp.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} core ftp
@@ -41,8 +43,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ftp ${MAN}
-       install -s -o bin -g bin -m 751 ftp ${DESTDIR}/usr/ucb
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o bin -g bin -m 751 ftp ${DESTDIR}/usr/ucb
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index c9d56d4..a3ef787 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -21,7 +22,7 @@ clean:
        sccs get $<
 
 install: indent
-       install -s indent ${DESTDIR}/usr/ucb/indent
+       ${INSTALL} -s indent ${DESTDIR}/usr/ucb/indent
 
 depend:
        ${CC} -M ${SRCS} | \
index ff8e795..9dd987f 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # lisp makefile
 #
@@ -11,7 +12,7 @@ lisp: ${OBJS}
        ${CC} -o lisp ${SEPFLAG} ${OBJS}
 
 install: lisp
-       install -s -m 711 lisp ${DESTDIR}/usr/ucb
+       ${INSTALL} -s -m 711 lisp ${DESTDIR}/usr/ucb
 
 clean:
        rm -f *.o a.out core errs lisp
index 07570ef..d5f4e13 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -30,7 +32,7 @@ lock: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${OBJS}
 
 lock.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} core lock
@@ -42,8 +44,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: lock ${MAN}
-       install -s -o root -g bin -m 4755 lock ${DESTDIR}/usr/ucb
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 4755 lock ${DESTDIR}/usr/ucb
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index f2d0b01..6383de6 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -39,8 +40,8 @@ depend: FRC
 
 install: man apropos
        rm -f ${DESTDIR}/usr/ucb/whatis ${DESTDIR}/usr/ucb/apropos
-       install -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/ucb/apropos
-       install -s -o bin -g bin -m 755 man ${DESTDIR}/usr/ucb/man
+       ${INSTALL} -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/ucb/apropos
+       ${INSTALL} -s -o bin -g bin -m 755 man ${DESTDIR}/usr/ucb/man
        ln ${DESTDIR}/usr/ucb/apropos ${DESTDIR}/usr/ucb/whatis
 
 lint: FRC
index 066a083..fddae79 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -13,10 +14,10 @@ more:       more.o
        ${CC} ${SEPFLAG} -o more more.o -ltermcap
 
 install: more more.help
-       install -m 755 -s more ${DESTDIR}/usr/ucb/more
+       ${INSTALL} -m 755 -s more ${DESTDIR}/usr/ucb/more
        rm -f ${DESTDIR}/usr/ucb/page
        ln ${DESTDIR}/usr/ucb/more ${DESTDIR}/usr/ucb/page
-       install -m 444 -c more.help ${DESTDIR}/usr/share/misc/more.help
+       ${INSTALL} -m 444 -c more.help ${DESTDIR}/usr/share/misc/more.help
 
 clean:
        rm -f more more.o core a.out errs
index 8c6b181..dc7ff11 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -12,7 +13,7 @@ SRCS = msgs.c msgs.h Makefile
 msgs: msgs.c msgs.h
        cc ${SEPFLAG} $(CFLAGS) -o msgs msgs.c -ltermlib
 install: msgs
-       install -s msgs ${DESTDIR}/usr/ucb
+       ${INSTALL} -s msgs ${DESTDIR}/usr/ucb
 clean:
        -rm -f msgs
 sources: $(SRCS)
index e849a26..5bca72a 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
 #
@@ -27,7 +28,7 @@ depend: FRC
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: netstat
-       install -s -g kmem -m 2755 netstat ${DESTDIR}/usr/ucb/netstat
+       ${INSTALL} -s -g kmem -m 2755 netstat ${DESTDIR}/usr/ucb/netstat
 
 lint: FRC
        lint ${CFLAGS} ${SRCS}
index 56a5432..4aea3e7 100644 (file)
@@ -89,13 +89,13 @@ Version.c: version
 install: ${ALL}
        -mkdir -p ${DESTDIR}/usr/share/pascal
        chmod 755 ${DESTDIR}/usr/share/pascal
-       install -c ${ERRORSTRINGS} ${DESTDIR}/usr/share/pascal
-       install -c how_pi ${DESTDIR}/usr/share/pascal
-       install -c how_pix ${DESTDIR}/usr/share/pascal
+       ${INSTALL} -c ${ERRORSTRINGS} ${DESTDIR}/usr/share/pascal
+       ${INSTALL} -c how_pi ${DESTDIR}/usr/share/pascal
+       ${INSTALL} -c how_pix ${DESTDIR}/usr/share/pascal
        dd if=px_header.out of=${DESTDIR}/usr/share/pascal/npx_header conv=sync
        chmod a+r $(DESTDIR)/usr/share/pascal/npx_header
-       install -s pi ${DESTDIR}/usr/ucb
-       install -s pix ${DESTDIR}/usr/ucb
+       ${INSTALL} -s pi ${DESTDIR}/usr/ucb
+       ${INSTALL} -s pix ${DESTDIR}/usr/ucb
 
 tags: FRC
        ctags ${HDRS} ${SRCS}
index 07f7955..79fa50d 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # px makefile
 #
@@ -34,7 +35,7 @@ all: ${ALL}
        ${AS} -o $*.o $*.s
 
 px: as.o ${OBJS}
-       ld ${SEPFLAG} ${LDFLAGS} -o px /lib/crt0.o as.o ${OBJS} -lm -lc
+       ${LD} ${SEPFLAG} ${LDFLAGS} -o px /lib/crt0.o as.o ${OBJS} -lm -lc
 
 gather: gather.o
        cc ${SEPFLAG} -o gather gather.o
@@ -48,8 +49,8 @@ E.s E.h: Edata Emake.ed
        ed - Edata < Emake.ed
 
 install: ${ALL}
-       install -s px ${DESTDIR}/usr/ucb/px
-       install -s gather ${DESTDIR}/usr/libexec/gather
+       ${INSTALL} -s px ${DESTDIR}/usr/ucb/px
+       ${INSTALL} -s gather ${DESTDIR}/usr/libexec/gather
 
 tags: FRC
 
index 1830c69..7058a3f 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # pxp makefile
 #
@@ -51,8 +52,8 @@ y.tab.c y.tab.h: pas.y
        ${ED} - y.tab.c < gram.ex
 
 install: pxp how_pxp
-       install -s pxp ${DESTDIR}/usr/ucb/pxp
-       install -c how_pxp ${DESTDIR}/usr/share/pascal/how_pxp
+       ${INSTALL} -s pxp ${DESTDIR}/usr/ucb/pxp
+       ${INSTALL} -c how_pxp ${DESTDIR}/usr/share/pascal/how_pxp
 
 tags: FRC
        ctags ${HDRS} ${SRCS}
index d098868..6e732bd 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -39,7 +40,7 @@ clean:
        rm -f ${OBJS} gram.c errs rdist strings strings.o x.c xs.c y.tab.c
 
 install: rdist
-       install -s -m 4751 rdist ${DESTDIR}/usr/ucb/rdist
+       ${INSTALL} -s -m 4751 rdist ${DESTDIR}/usr/ucb/rdist
 
 lint:  docmd.c expand.c gram.c lookup.c main.c server.c
        ${LINT} docmd.c expand.c gram.c lookup.c main.c server.c
index 983faf0..da4027d 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -23,10 +24,10 @@ unixtomh: unixtomh.c
        ${CC} ${SEPFLAG} ${CFLAGS} -o unixtomh unixtomh.c
 
 install: bugfiler sendbug.sh bugformat unixtomh
-       install -s bugfiler ${DESTDIR}/usr/libexec/bugfiler
-       install -c -m 555 sendbug.sh ${DESTDIR}/usr/ucb/sendbug
-       install -s unixtomh ${DESTDIR}/usr/libexec/unixtomh
-       install -c -m 644 bugformat ${DESTDIR}/usr/share/misc/bugformat
+       ${INSTALL} -s bugfiler ${DESTDIR}/usr/libexec/bugfiler
+       ${INSTALL} -c -m 555 sendbug.sh ${DESTDIR}/usr/ucb/sendbug
+       ${INSTALL} -s unixtomh ${DESTDIR}/usr/libexec/unixtomh
+       ${INSTALL} -c -m 644 bugformat ${DESTDIR}/usr/share/misc/bugformat
 
 clean:
        rm -f *.o bugfiler unixtomh
index 72f1651..e5640c4 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Nick
 
 # using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
@@ -15,7 +16,7 @@ strcompact: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${OBJS}
 
 install: all
-       install -s -m 755 strcompact ${DESTDIR}/usr/ucb
+       ${INSTALL} -s -m 755 strcompact ${DESTDIR}/usr/ucb
 
 lint:
        lint -havx ${SRCS}
index d478489..c049737 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/ucb\/strcompact$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" SEPFLAG= CROSSDIR="\\\"$ROOT/cross\\\"" LOCALESTR="\\\"LC_ALL=C \\\"" && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= CROSSDIR="\\\"$ROOT/cross\\\"" LOCALESTR="\\\"LC_ALL=C \\\"" && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index c9b4203..1d36ed8 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Nick
 
 # using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
@@ -15,7 +16,7 @@ symcompact: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${OBJS}
 
 install: all
-       install -s -m 755 symcompact ${DESTDIR}/usr/ucb
+       ${INSTALL} -s -m 755 symcompact ${DESTDIR}/usr/ucb
 
 lint:
        lint -havx ${SRCS}
index a477ec6..b3b411d 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/ucb\/symcompact$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 3bbd769..8012037 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Nick
 
 # using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
@@ -15,7 +16,7 @@ symdump: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${OBJS}
 
 install: all
-       install -s -m 755 symdump ${DESTDIR}/usr/ucb
+       ${INSTALL} -s -m 755 symdump ${DESTDIR}/usr/ucb
 
 lint:
        lint -havx ${SRCS}
index d414b9d..9de7a36 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/ucb\/symdump$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index d20aca4..23f1ac3 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Nick
 
 # using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
@@ -15,7 +16,7 @@ symorder: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${OBJS}
 
 install: all
-       install -s -m 755 symorder ${DESTDIR}/usr/ucb
+       ${INSTALL} -s -m 755 symorder ${DESTDIR}/usr/ucb
 
 lint:
        lint -havx ${SRCS}
index 3bca54f..af4ee59 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/ucb\/symorder$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index aa57145..6893774 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -22,7 +23,7 @@ talk: ${OBJS}
 ${OBJS}: talk.h talk_ctl.h
 
 install: talk
-       install -g tty -m 2755 -s talk ${DESTDIR}/usr/ucb/talk
+       ${INSTALL} -g tty -m 2755 -s talk ${DESTDIR}/usr/ucb/talk
 
 clean:
        rm -f ${OBJS} a.out errs core talk
index bba290c..0d115a2 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -16,11 +18,11 @@ tftp:       main.o tftp.o tftpsubs.o
        ${CC} main.o tftp.o tftpsubs.o ${SEPFLAG} -o tftp
 
 tftp.0:        tftp.1
-       /usr/man/manroff tftp.1 > tftp.0
+       ${MANROFF} tftp.1 > tftp.0
 
 clean:
        rm -f ${ALL} *.o *.s errs core a.out t.? tftp.0
 
 install:  tftp tftp.0
-       install -s tftp ${DESTDIR}/usr/ucb
-       install -c -m 444 tftp.0 ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s tftp ${DESTDIR}/usr/ucb
+       ${INSTALL} -c -m 444 tftp.0 ${DESTDIR}/usr/man/cat1
index 1129705..30926e1 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 # Makefile for tn3270 and friends...
 # @(#)Makefile 2.12    1996/11/16
 
@@ -78,8 +79,8 @@ mset: mset.o map3270.o
        ${CC} ${CFLAGS} ${SEPFLAG} -o mset mset.o map3270.o $(LIBCURSES)
 
 install: tn3270 mset
-       install -s tn3270 $(BINDIR)
-       install -s mset $(BINDIR)
+       ${INSTALL} -s tn3270 $(BINDIR)
+       ${INSTALL} -s mset $(BINDIR)
 
 clean:
        rm -f $(ALLO) mset tn3270 m4.out errs Makefile.bak
index db97e0c..3daab14 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -15,14 +17,14 @@ tset:       tset.o
        ${CC} ${SEPFLAG} ${CFLAGS} tset.o -o tset -ltermlib
 
 tset.0:        tset.1
-       /usr/man/manroff tset.1 > tset.0
+       ${MANROFF} tset.1 > tset.0
 
 install: all
-       install -s tset ${DESTDIR}/usr/ucb
+       ${INSTALL} -s tset ${DESTDIR}/usr/ucb
        rm -f ${DESTDIR}/usr/ucb/reset
        ln ${DESTDIR}/usr/ucb/tset ${DESTDIR}/usr/ucb/reset
        rm -f ${DESTDIR}/usr/man/cat1/reset.0
-       install -c -o bin -g bin -m 444 tset.0 ${DESTDIR}/usr/man/cat1/tset.0
+       ${INSTALL} -c -o bin -g bin -m 444 tset.0 ${DESTDIR}/usr/man/cat1/tset.0
        ln ${DESTDIR}/usr/man/cat1/tset.0 ${DESTDIR}/usr/man/cat1/reset.0
 
 clean:
index 5d3c5b0..3540d01 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -20,10 +21,10 @@ retest: retest.o regexp.o
        cc ${SEPFLAG} ${CFLAGS} -o retest retest.c regexp.o
 
 install: all
-       install -s vfontedpr ${DESTDIR}/usr/libexec/vfontedpr
-       install -c vgrind.sh ${DESTDIR}/usr/ucb/vgrind
-       install -c -m 444 vgrindefs.src ${DESTDIR}/usr/share/misc/vgrindefs
-       install -c -m 444 tmac.vgrind ${DESTDIR}/usr/share/tmac/tmac.vgrind
+       ${INSTALL} -s vfontedpr ${DESTDIR}/usr/libexec/vfontedpr
+       ${INSTALL} -c vgrind.sh ${DESTDIR}/usr/ucb/vgrind
+       ${INSTALL} -c -m 444 vgrindefs.src ${DESTDIR}/usr/share/misc/vgrindefs
+       ${INSTALL} -c -m 444 tmac.vgrind ${DESTDIR}/usr/share/tmac/tmac.vgrind
 
 clean:
        rm -f ${CMDS} ${OBJS}
index 2cddacc..6a4203a 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # vlp makefile
 #
@@ -11,7 +12,7 @@ vlp: ${OBJS}
        ${CC} -o vlp ${SEPFLAG} ${OBJS}
 
 install: vlp
-       install -s vlp ${DESTDIR}/usr/ucb
+       ${INSTALL} -s vlp ${DESTDIR}/usr/ucb
 
 clean:
        rm -f *.o a.out core errs vlp
index 1d04bf1..0c2efd8 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -219,8 +220,8 @@ clean:;             @rm -f $(OBJS) make.out a.out
 depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM)
 
 install:       $(PROGRAM) windowrc
-               install -s a.out $(DESTDIR)/usr/ucb/window
-#              install -c windowrc $(DESTDIR)/usr/local/lib
+               ${INSTALL} -s a.out $(DESTDIR)/usr/ucb/window
+#              ${INSTALL} -c windowrc $(DESTDIR)/usr/local/lib
 
 print:;                @$(PRINT) $(MAKEFILE) README $(HDRS) $(SRCS)
 
index ef27c23..0346bc2 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        1.9 (2.11BSD GTE) 1997/7/26
 #
 NM=nm
@@ -57,10 +58,10 @@ install: ${STD} ${NSTD} ${KMEM}
        -for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
        -for i in ${SCRIPT}; do \
-               (install -c -m 555 $$i ${DESTDIR}/usr/bin/$$i); done
+               (${INSTALL} -c -m 555 $$i ${DESTDIR}/usr/bin/$$i); done
        -for i in ${KMEM}; do \
-               (install -s -g kmem -m 2755 $$i ${DESTDIR}/usr/bin/$$i); done
-       install -s ${STD} ${NSTD} ${DESTDIR}/usr/bin
+               (${INSTALL} -s -g kmem -m 2755 $$i ${DESTDIR}/usr/bin/$$i); done
+       ${INSTALL} -s ${STD} ${NSTD} ${DESTDIR}/usr/bin
 
 clean:
        for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
@@ -81,5 +82,105 @@ bc egrep:
        ${CC} ${SEPFLAG} -o $@ $@.o
        rm -f $@.o
 
-# DO NOT DELETE THIS LINE -- make depend uses it
-
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+
+basename: basename.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+cal: cal.c
+cb: cb.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+checkeq: checkeq.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+col: col.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+comm: comm.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+crypt: crypt.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+deroff: deroff.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+fgrep: fgrep.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+fgrep: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+file: file.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+file: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+file: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+file: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+file: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+file: /home/nick/src/211bsd.git/stage/usr/include/a.out.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/exec.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+file: /home/nick/src/211bsd.git/stage/usr/include/nlist.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+file: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+file: /home/nick/src/211bsd.git/stage/usr/include/string.h
+file: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+iostat: iostat.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/nlist.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/file.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/buf.h
+iostat: /home/nick/src/211bsd.git/stage/usr/include/sys/dk.h
+join: join.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+look: look.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+look: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+mesg: mesg.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+mesg: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mesg: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+mesg: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+mesg: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+ptx: ptx.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+ptx: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+ptx: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+rev: rev.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+sleep: sleep.c
+sort: sort.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+sort: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+sort: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+sort: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+sort: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+sort: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+sort: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+spline: spline.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+spline: /home/nick/src/211bsd.git/stage/usr/include/math.h
+split: split.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+sum: sum.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+tabs: tabs.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+tabs: /home/nick/src/211bsd.git/stage/usr/include/sgtty.h
+tabs: /home/nick/src/211bsd.git/stage/usr/include/sys/ioctl.h
+tabs: /home/nick/src/211bsd.git/stage/usr/include/sys/ttychars.h
+tabs: /home/nick/src/211bsd.git/stage/usr/include/sys/ttydev.h
+tc: tc.c /home/nick/src/211bsd.git/stage/usr/include/signal.h
+tc: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+tk: tk.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+tk: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+touch: touch.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+touch: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+touch: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+touch: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+touch: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+tr: tr.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+tsort: tsort.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+tty: tty.c
+uniq: uniq.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+uniq: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+units: units.c /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index 85584c2..63e8042 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -42,10 +43,10 @@ install: all
                chown daemon $(DESTDIR)/$$i; \
                chgrp daemon $(DESTDIR)/$$i; \
                done
-       install -s -o daemon atrun $(DESTDIR)/usr/libexec
-       install -s -o daemon -m 4755 atq $(DESTDIR)/usr/bin
-       install -s -o daemon -m 4755 at $(DESTDIR)/usr/bin
-       install -s -o daemon -m 4755 atrm $(DESTDIR)/usr/bin
+       ${INSTALL} -s -o daemon atrun $(DESTDIR)/usr/libexec
+       ${INSTALL} -s -o daemon -m 4755 atq $(DESTDIR)/usr/bin
+       ${INSTALL} -s -o daemon -m 4755 at $(DESTDIR)/usr/bin
+       ${INSTALL} -s -o daemon -m 4755 atrm $(DESTDIR)/usr/bin
 
 clean:
        rm -f $(ALL) errs *.o
index a2e47c7..4e53a74 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1.1   (2.11BSD) 1996/10/23
 #
 DESTDIR=
@@ -8,8 +9,8 @@ calendar: calendar.c
        ${CC} ${CFLAGS} ${SEPFLAG} -o calendar calendar.c
 
 install: calendar calendar.sh
-       install -s calendar $(DESTDIR)/usr/libexec
-       install -c -m 755 calendar.sh $(DESTDIR)/usr/bin/calendar
+       ${INSTALL} -s calendar $(DESTDIR)/usr/libexec
+       ${INSTALL} -c -m 755 calendar.sh $(DESTDIR)/usr/bin/calendar
 
 clean:
        rm -f calendar
index 2045071..48035c4 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #      @(#)Makefile    1.4     (Berkeley)      83/06/30
 #
@@ -12,7 +13,7 @@ dc:   dc.c dc.h
        ${CC} ${CFLAGS} ${SEPFLAG} dc.c -o dc
 
 install: dc
-       install -s dc ${DESTDIR}/usr/bin/dc
+       ${INSTALL} -s dc ${DESTDIR}/usr/bin/dc
 
 clean:
        rm -f *.o dc a.out errs core
index dc17913..6ccc50b 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #      @(#)Makefile    4.5.1   (2.11BSD)       1996/10/23
 #
@@ -25,15 +26,15 @@ style: style1 style2 style3
 
 install: style diction style.sh diction.sh explain.sh dict.d explain.d
        -mkdir -p ${DESTDIR}/usr/libexec/diction
-       install -s -m 755 style1 ${DESTDIR}/usr/libexec/diction
-       install -s -m 755 style2 ${DESTDIR}/usr/libexec/diction
-       install -s -m 755 style3 ${DESTDIR}/usr/libexec/diction
-       install -s -m 755 dprog ${DESTDIR}/usr/libexec/diction
-       install -c -m 755 style.sh ${DESTDIR}/usr/bin/style
-       install -c -m 755 diction.sh ${DESTDIR}/usr/bin/diction
-       install -c -m 755 explain.sh ${DESTDIR}/usr/bin/explain
-       install -c -m 444 dict.d ${DESTDIR}/usr/share/misc
-       install -c -m 444 explain.d ${DESTDIR}/usr/share/misc
+       ${INSTALL} -s -m 755 style1 ${DESTDIR}/usr/libexec/diction
+       ${INSTALL} -s -m 755 style2 ${DESTDIR}/usr/libexec/diction
+       ${INSTALL} -s -m 755 style3 ${DESTDIR}/usr/libexec/diction
+       ${INSTALL} -s -m 755 dprog ${DESTDIR}/usr/libexec/diction
+       ${INSTALL} -c -m 755 style.sh ${DESTDIR}/usr/bin/style
+       ${INSTALL} -c -m 755 diction.sh ${DESTDIR}/usr/bin/diction
+       ${INSTALL} -c -m 755 explain.sh ${DESTDIR}/usr/bin/explain
+       ${INSTALL} -c -m 444 dict.d ${DESTDIR}/usr/share/misc
+       ${INSTALL} -c -m 444 explain.d ${DESTDIR}/usr/share/misc
 
 clean:
        rm -f prtlex.c wdslex.c endlex.c
index 56149d9..623fe03 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1.1 (2.11BSD) 1996/10/23
 
 CFLAGS=-O
@@ -8,8 +9,8 @@ diff3: diff3.o
        cc ${SEPFLAG} -o diff3 diff3.o
 
 install: diff3
-       install -s -m 755 diff3 $(DESTDIR)/usr/libexec
-       install -c -m 755 diff3.sh $(DESTDIR)/usr/bin/diff3
+       ${INSTALL} -s -m 755 diff3 $(DESTDIR)/usr/libexec
+       ${INSTALL} -c -m 755 diff3.sh $(DESTDIR)/usr/bin/diff3
 
 clean:
        rm -f diff3.o diff3     
index b52893c..558b992 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1     83/02/11
 
 CFLAGS=-O
@@ -25,7 +26,7 @@ e.def:        e.y
 $(FILES):      e.h e.def
 
 install: eqn
-       install -s eqn $(DESTDIR)/usr/bin
+       ${INSTALL} -s eqn $(DESTDIR)/usr/bin
 
 clean:
        rm -f *.o e.c e.def eqn
index d1b23c2..3d74d43 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile for the Fortran 77 compiler
 #      generating code for the PDP11,
 #      using the Ritchie pass 2
@@ -94,9 +95,9 @@ locdefs:      pdp11defs
                cp pdp11defs locdefs
 
 install: all
-               install -s f77 ${DESTDIR}/usr/bin
-               install -s f77pass1 ${DESTDIR}/usr/libexec
-               install -c -m 644 ${STRINGS} ${DESTDIR}/usr/share/misc
+               ${INSTALL} -s f77 ${DESTDIR}/usr/bin
+               ${INSTALL} -s f77pass1 ${DESTDIR}/usr/libexec
+               ${INSTALL} -c -m 644 ${STRINGS} ${DESTDIR}/usr/share/misc
 
 clean:
                -rm -f f77 f77pass1 *.o gram.c x.c xs.c f77_strings strings
index 08b62cb..bb097ae 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.3.1   (2.11BSD)       1996/10/23
 #
 DESTDIR=
@@ -25,12 +26,12 @@ code: code.o
        cc ${SEPFLAG} ${CFLAGS} -o code code.o
 
 install: ${PROG} ${LIBS}
-       install -s -m 755 ${PROG} ${DESTDIR}/usr/bin/${PROG}
+       ${INSTALL} -s -m 755 ${PROG} ${DESTDIR}/usr/bin/${PROG}
        -mkdir ${DESTDIR}/var/db ${DESTDIR}/usr/libexec/find
        chmod 755 ${DESTDIR}/usr/libexec/find ${DESTDIR}/var/db
-       install -s -m 755 bigram ${DESTDIR}/usr/libexec/find/bigram
-       install -s -m 755 code ${DESTDIR}/usr/libexec/find/code
-       install -c -m 755 updatedb.csh ${DESTDIR}/usr/libexec/find/updatedb
+       ${INSTALL} -s -m 755 bigram ${DESTDIR}/usr/libexec/find/bigram
+       ${INSTALL} -s -m 755 code ${DESTDIR}/usr/libexec/find/code
+       ${INSTALL} -c -m 755 updatedb.csh ${DESTDIR}/usr/libexec/find/updatedb
 
 clean:
        rm -f *.o a.out core ${LIBS} ${PROG}
index 532f13b..f63ebf9 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ fstat: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 fstat.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} fstat tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: fstat
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o bin -g kmem -m 2755 fstat ${DESTDIR}/usr/bin/fstat
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g kmem -m 2755 fstat ${DESTDIR}/usr/bin/fstat
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 5622264..1e6bd98 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1     83/03/30
 #
 CFLAGS=-O
@@ -8,7 +9,7 @@ graph: graph.c
        ${CC} ${SEPFLAG} $(CFLAGS) -o graph graph.c -lplot -lm
 
 install: graph
-       install -s graph ${DESTDIR}/usr/bin/graph
+       ${INSTALL} -s graph ${DESTDIR}/usr/bin/graph
 
 clean:
        rm -f *.o graph
index f122f4a..c82919d 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # 1997/6/25 - Steven Schultz
 #
@@ -12,7 +14,7 @@ MAN=  id.0 groups.0 whoami.0
 .SUFFIXES: .0 .1
 
 .1.0:
-       /usr/man/manroff $*.1 > $@
+       ${MANROFF} $*.1 > $@
 
 all: id ${MAN}
 
@@ -26,10 +28,10 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: id
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 id ${DESTDIR}/usr/bin/id
-       install -c -o bin -g bin -m 755 groups.sh ${DESTDIR}/usr/bin/groups
-       install -c -o bin -g bin -m 755 whoami.sh ${DESTDIR}/usr/bin/whoami
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 id ${DESTDIR}/usr/bin/id
+       ${INSTALL} -c -o bin -g bin -m 755 groups.sh ${DESTDIR}/usr/bin/groups
+       ${INSTALL} -c -o bin -g bin -m 755 whoami.sh ${DESTDIR}/usr/bin/whoami
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 3c6a906..c563716 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -35,10 +36,10 @@ depend: FRC
 install: all
        -mkdir ${DESTDIR}/${LLIB}
        chmod 755 ${DESTDIR}/${LLIB}
-       install -c -s -m 755 learn ${DESTDIR}/usr/bin/learn
-       install -s -m 755 learn ${LLIB}/learn
-       install -s -m 755 lrntee ${LLIB}/lrntee
-       install -s -m 755 lcount ${LLIB}/lcount
+       ${INSTALL} -c -s -m 755 learn ${DESTDIR}/usr/bin/learn
+       ${INSTALL} -s -m 755 learn ${LLIB}/learn
+       ${INSTALL} -s -m 755 lrntee ${LLIB}/lrntee
+       ${INSTALL} -s -m 755 lcount ${LLIB}/lcount
 
 lint: FRC
        lint ${CFLAGS} ${SRCS}
index a86c316..7977cb6 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1.1 (2.11BSD) 1996/10/23
 #
 CFLAGS = -O
@@ -25,9 +26,9 @@ header.o: header.c ldefs.c
 install: all
        -mkdir -p ${DESTDIR}/usr/libdata/lex
        chmod 755 ${DESTDIR}/usr/libdata/lex
-       install -s -m 755 lex $(DESTDIR)/usr/bin
-       install -c -m 444 ncform $(DESTDIR)/usr/libdata/lex
-       install -c -m 444 nrform $(DESTDIR)/usr/libdata/lex
+       ${INSTALL} -s -m 755 lex $(DESTDIR)/usr/bin
+       ${INSTALL} -c -m 444 ncform $(DESTDIR)/usr/libdata/lex
+       ${INSTALL} -c -m 444 nrform $(DESTDIR)/usr/libdata/lex
 
 clean:
        rm -f *.o lex y.tab.c
index 35602c3..0d2e032 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #      @(#)Makefile    1.15    (2.11BSD GTE)   1996/10/23
 #
@@ -108,14 +109,14 @@ lintall:
 install: all SHELL
        -mkdir ${DESTDIR}/usr/libexec/lint
        chmod 755 ${DESTDIR}/usr/libexec/lint
-       install -c -m 755 -s lpass1 ${DESTDIR}/usr/libexec/lint/lint1
-       install -c -m 755 -s lpass2 ${DESTDIR}/usr/libexec/lint/lint2
-       install -c -m 444 lintstrings ${DESTDIR}/usr/share/misc/lintstrings
+       ${INSTALL} -c -m 755 -s lpass1 ${DESTDIR}/usr/libexec/lint/lint1
+       ${INSTALL} -c -m 755 -s lpass2 ${DESTDIR}/usr/libexec/lint/lint2
+       ${INSTALL} -c -m 444 lintstrings ${DESTDIR}/usr/share/misc/lintstrings
        ./libs
        -rm -f ${DESTDIR}/usr/share/lint/llib-ltermlib*
        ln -s llib-ltermcap ${DESTDIR}/usr/share/lint/llib-ltermlib
        ln -s llib-ltermcap.ln ${DESTDIR}/usr/share/lint/llib-ltermlib.ln
-       install -c SHELL ${DESTDIR}/usr/bin/lint
+       ${INSTALL} -c SHELL ${DESTDIR}/usr/bin/lint
 
 clean:
        rm -f *.o errs pcctokens pcclocal.h x.c xs.c strings lintstrings
index a78fce9..18910ad 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    1.0 (2.11BSD GTE) 4/5/94
 
 DEFS=  -DEXTENDED -I.
@@ -13,7 +14,7 @@ m4:   ${OBJS}
        cc ${SEPFLAG} -o m4 ${OBJS}
 
 install: all
-       install -s -m 755 m4 ${DESTDIR}/usr/bin/m4
+       ${INSTALL} -s -m 755 m4 ${DESTDIR}/usr/bin/m4
 
 lint:
        lint -hax ${DEFS} ${SRCS}
index 761a4d0..afc7ac6 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/3/14 - Steven Schultz
 #
@@ -16,7 +18,7 @@ mkerrlst: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} -lerrlst
 
 mkerrlst.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} mkerrlst tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: mkerrlst
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 mkerrlst ${DESTDIR}/usr/bin/mkerrlst
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 mkerrlst ${DESTDIR}/usr/bin/mkerrlst
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index d8aa249..06fffdf 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1     83/02/12
 
 CFLAGS=-O -DNEQN -I../eqn/
@@ -24,7 +25,7 @@ e.def:        ../eqn/e.y
 
 $(FILES):      ../eqn/e.h e.def
 install: neqn
-       install -s neqn $(DESTDIR)/usr/bin
+       ${INSTALL} -s neqn $(DESTDIR)/usr/bin
 
 clean:
        rm -f *.o e.c e.def
index db3ada2..37c0b0f 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # patch Makefile.  Revised 1997/1/12
 #
@@ -15,14 +17,14 @@ OBJS=       patch.o pch.o inp.o util.o version.o
 .SUFFIXES: .man .0
 
 .man.0:
-       /usr/man/manroff $*.man > $*.0
+       ${MANROFF} $*.man > $*.0
 
 patch: ${OBJS} patch.0
        cc ${SEPFLAG} ${OBJS} -o patch
 
 install: patch patch.0
-       install patch ${DESTDIR}/usr/bin
-       install -m 444 -o bin -g bin patch.0 ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s patch ${DESTDIR}/usr/bin
+       ${INSTALL} -m 444 -o bin -g bin patch.0 ${DESTDIR}/usr/man/cat1
 
 clean:
        rm -f *.o *.orig core tags patch *.0
index a178aba..20c5707 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.7     85/11/11
 #
 CFLAGS=        -O
@@ -57,8 +58,8 @@ debug: debug.o
 
 install: all
        -for i in ${ALL}; do \
-               (install -s $$i ${DESTDIR}/usr/bin/$$i); done
-       install -c plot.sh ${DESTDIR}/usr/bin/plot
+               (${INSTALL} -s $$i ${DESTDIR}/usr/bin/$$i); done
+       ${INSTALL} -c plot.sh ${DESTDIR}/usr/bin/plot
 
 clean:
        rm -f *.o ${ALL} a.out core errs debug
index 61c2c58..8369d1d 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1995/05/02 - Steven Schultz
 #
@@ -16,7 +18,7 @@ printf: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 printf.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} printf tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 printf ${DESTDIR}/usr/bin/printf
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 printf ${DESTDIR}/usr/bin/printf
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 0f8b9c3..55df7e7 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.1 (Berkeley) 6/2/83
 #
 # If you don't want to plot, take out the -Dplot and the ref. to plot.a
@@ -11,7 +12,7 @@ prof.o: prof.c
        cc -c $(CFLAGS) $(PLOT) prof.c
 
 install: prof
-       install -s prof $(DESTDIR)/usr/bin
+       ${INSTALL} -s prof $(DESTDIR)/usr/bin
 
 clean :
        rm -f *.o prof
index e34d2b6..677f4d7 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 # using VPATH to compile ./archive.o from ../../bin/ar/archive.c does not
 # work if there is ../../bin/ar/archive.o leftover from building ar
 # using VPATH to compile ./nsym.o from ../../lib/libc/pdp/gen/nsym.c does not
@@ -12,27 +14,22 @@ SEPFLAG=-i
 all:   ranlib.0 ranlib.5.0 ranlib
 
 ranlib.0: ranlib.1
-#      /usr/man/manroff ranlib.1 > ranlib.0
-       nroff -man ranlib.1 > ranlib.0
+#      ${MANROFF} ranlib.1 > ranlib.0
+       ${MANROFF} ranlib.1 > ranlib.0
 
 ranlib.5.0: ranlib.5.5
-#      /usr/man/manroff ranlib.5.5 > ranlib.5.0
-       nroff -man ranlib.5.5 > ranlib.5.0
+#      ${MANROFF} ranlib.5.5 > ranlib.5.0
+       ${MANROFF} ranlib.5.5 > ranlib.5.0
 
 ranlib: ${OBJS}
        ${CC} ${SEPFLAG} -o ranlib ${OBJS}
 
 install: all
-#      install -c -o bin -g bin -m 444 ranlib.5.0 \
-#              ${DESTDIR}/usr/man/cat5/ranlib.0
-#      install -c -o bin -g bin -m 444 ranlib.0 \
-#              ${DESTDIR}/usr/man/cat1/ranlib.0
-#      install -c -s -o bin -g bin -m 755 ranlib ${DESTDIR}/usr/bin/ranlib
-       install -c -m 444 ranlib.5.0 \
+       ${INSTALL} -c -o bin -g bin -m 444 ranlib.5.0 \
                ${DESTDIR}/usr/man/cat5/ranlib.0
-       install -c -m 444 ranlib.0 \
+       ${INSTALL} -c -o bin -g bin -m 444 ranlib.0 \
                ${DESTDIR}/usr/man/cat1/ranlib.0
-       install -c -s -m 755 ranlib ${DESTDIR}/usr/bin/ranlib
+       ${INSTALL} -c -s -o bin -g bin -m 755 ranlib ${DESTDIR}/usr/bin/ranlib
 
 lint:
        lint -havx -I. -I../../bin/ar ${SRCS}
index 6485b0e..0c86b17 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/usr\.bin\/ranlib$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/bin"
-make CC="$CC" SEPFLAG= && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 13faf99..11a0807 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 
 #      @(#)Makefile    1.1 (Berkeley) 12/15/82
 
@@ -18,7 +19,7 @@ y.tab.c:      r.g
 y.tab.h:       r.g
        yacc -d r.g
 install: ratfor
-       install -s ratfor $(DESTDIR)/usr/bin
+       ${INSTALL} -s ratfor $(DESTDIR)/usr/bin
 clean:
        rm -f y.tab.c *.o ratfor y.tab.h
 
index a419656..49c4e72 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.5.1   (2.11BSD)       1996/10/23
 #
 DESTDIR=
@@ -40,16 +41,16 @@ sortbib: sortbib.o
 install: all /usr/dict/papers
        -mkdir -p ${DESTDIR}/usr/libexec/refer
        chmod 755 ${DESTDIR}/usr/libexec/refer
-       install -s -m 755 mkey $(DESTDIR)/usr/libexec/refer
-       install -s -m 755 inv  $(DESTDIR)/usr/libexec/refer
-       install -s -m 755 hunt $(DESTDIR)/usr/libexec/refer
-       install -s -m 755 refer $(DESTDIR)/usr/bin
-       install -s -m 755 addbib $(DESTDIR)/usr/bin
-       install -s -m 755 sortbib $(DESTDIR)/usr/bin
-       install -c -m 755 roffbib.sh $(DESTDIR)/usr/bin/roffbib
-       install -c -m 755 indxbib.sh $(DESTDIR)/usr/bin/indxbib
-       install -s -m 755 lookbib $(DESTDIR)/usr/bin
-       install -c -m 444 tmac.bib $(DESTDIR)/usr/share/tmac
+       ${INSTALL} -s -m 755 mkey $(DESTDIR)/usr/libexec/refer
+       ${INSTALL} -s -m 755 inv  $(DESTDIR)/usr/libexec/refer
+       ${INSTALL} -s -m 755 hunt $(DESTDIR)/usr/libexec/refer
+       ${INSTALL} -s -m 755 refer $(DESTDIR)/usr/bin
+       ${INSTALL} -s -m 755 addbib $(DESTDIR)/usr/bin
+       ${INSTALL} -s -m 755 sortbib $(DESTDIR)/usr/bin
+       ${INSTALL} -c -m 755 roffbib.sh $(DESTDIR)/usr/bin/roffbib
+       ${INSTALL} -c -m 755 indxbib.sh $(DESTDIR)/usr/bin/indxbib
+       ${INSTALL} -s -m 755 lookbib $(DESTDIR)/usr/bin
+       ${INSTALL} -c -m 444 tmac.bib $(DESTDIR)/usr/share/tmac
        (cd /usr/dict/papers; /bin/sh runinv)
 
 clean:
index 574ecb8..d034fc6 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ renice: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 renice.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} renice tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: renice
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 renice ${DESTDIR}/usr/bin/renice
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 renice ${DESTDIR}/usr/bin/renice
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 045e78c..8f70f6c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -47,7 +48,7 @@ depend: ${SRCS} FRC
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: nroff
-       install -s -o bin -g bin -m 751 nroff ${DESTDIR}/usr/bin/nroff
+       ${INSTALL} -s -o bin -g bin -m 751 nroff ${DESTDIR}/usr/bin/nroff
 
 lint: ${SRCS} FRC
        lint ${CFLAGS} ${SRCS}
index 1aaaa16..c310246 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -64,7 +65,7 @@ install: ${ALL}
        -mkdir -p ${DEST}
        chmod 755 ${DEST}
        for file in tab*.o; do \
-               install -c -s -o bin -g bin -m 755 $$file ${DEST}/`basename $$file .o`; \
+               ${INSTALL} -c -s -o bin -g bin -m 755 $$file ${DEST}/`basename $$file .o`; \
        done
        rm -f ${DEST}/tabtn300; ln ${DEST}/tablpr ${DEST}/tabtn300
        rm -f ${DEST}/tabcrt; ln ${DEST}/tablpr ${DEST}/tabcrt
@@ -74,7 +75,7 @@ install: ${ALL}
        rm -f ${DEST}/tabdtc12; ln ${DEST}/tab302-12 ${DEST}/tabdtc12
        rm -f ${DEST}/tabipsi; ln ${DEST}/tab450 ${DEST}/tabipsi
        rm -f ${DEST}/tabipsi12; ln ${DEST}/tab450-12 ${DEST}/tabipsi12
-       install -c -o bin -g bin -m 644 README ${DEST}/README
+       ${INSTALL} -c -o bin -g bin -m 644 README ${DEST}/README
 
 lint: FRC
        lint ${CFLAGS} ${SRCS}
index d15da31..ef67223 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -44,7 +45,7 @@ depend: ${SRCS} FRC
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: troff
-       install -s -o bin -g bin -m 751 troff ${DESTDIR}/usr/bin/troff
+       ${INSTALL} -s -o bin -g bin -m 751 troff ${DESTDIR}/usr/bin/troff
 
 lint: ${SRCS} FRC
        lint ${CFLAGS} ${SRCS}
index a5ae2c1..35c1a3d 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # shar Makefile.  Revised 1997/1/12
 #
@@ -12,10 +14,10 @@ OBJS=       shar.o traverse.o
 .SUFFIXES: .3 .1 .0
 
 .1.0:
-       /usr/man/manroff $*.1 > $*.0
+       ${MANROFF} $*.1 > $*.0
 
 .3.0:
-       /usr/man/manroff $*.3 > $*.0
+       ${MANROFF} $*.3 > $*.0
 
 all: shar traverse shar.0 traverse.0
 
@@ -29,10 +31,10 @@ lint:
        lint -h ${SRCS}
 
 install: shar shar.0
-       install -s shar ${DESTDIR}/usr/bin/shar
-       install -s traverse ${DESTDIR}/usr/bin/traverse
-       install -c -m 444 -o bin -g bin shar.0 ${DESTDIR}/usr/man/cat1
-       install -c -m 444 -o bin -g bin traverse.0 ${DESTDIR}/usr/man/cat3
+       ${INSTALL} -s shar ${DESTDIR}/usr/bin/shar
+       ${INSTALL} -s traverse ${DESTDIR}/usr/bin/traverse
+       ${INSTALL} -c -m 444 -o bin -g bin shar.0 ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -c -m 444 -o bin -g bin traverse.0 ${DESTDIR}/usr/man/cat3
 
 tags: ${SRCS}
        ctags $<
index 6f5bf88..1f9f0e9 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      @(#)Makefile    4.3.1 (2.11BSD) 1996/10/23
 
 CFLAGS= -O
@@ -6,13 +7,13 @@ SEPFLAG= -i
 all:   spell hlist hlista hlistb hstop spellin spellout
 
 install:       all
-       install -s spell $(DESTDIR)/usr/libexec
-       install -s spellin ${DESTDIR}/usr/bin
-       install -s spellout ${DESTDIR}/usr/bin
-       install -c hlista $(DESTDIR)/usr/dict
-       install -c hlistb $(DESTDIR)/usr/dict
-       install -c hstop $(DESTDIR)/usr/dict
-       install -c spell.sh $(DESTDIR)/usr/bin/spell
+       ${INSTALL} -s spell $(DESTDIR)/usr/libexec
+       ${INSTALL} -s spellin ${DESTDIR}/usr/bin
+       ${INSTALL} -s spellout ${DESTDIR}/usr/bin
+       ${INSTALL} -c hlista $(DESTDIR)/usr/dict
+       ${INSTALL} -c hlistb $(DESTDIR)/usr/dict
+       ${INSTALL} -c hstop $(DESTDIR)/usr/dict
+       ${INSTALL} -c spell.sh $(DESTDIR)/usr/bin/spell
 
 clean: 
        rm -f *.o spell spellin hlista hlistb hlist hstop spellout
index ccc2d28..5be8d7b 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.3.1 (2.11BSD) 1996/10/23
 #
 DESTDIR=
@@ -30,9 +31,9 @@ all:  structure beautify
 install: structure beautify struct
        -mkdir ${DESTDIR}/usr/libexec/struct
        chmod 755 ${DESTDIR}/usr/libexec/struct
-       install -s -m 755 structure $(DESTDIR)/usr/libexec/struct/structure
-       install -s -m 755 beautify $(DESTDIR)/usr/libexec/struct/beautify
-       install -c -m 755 struct $(DESTDIR)/usr/bin
+       ${INSTALL} -s -m 755 structure $(DESTDIR)/usr/libexec/struct/structure
+       ${INSTALL} -s -m 755 beautify $(DESTDIR)/usr/libexec/struct/beautify
+       ${INSTALL} -c -m 755 struct $(DESTDIR)/usr/bin
 clean:
        rm -f *.o y.tab.h beauty.c structure beautify
 
index 1f147c9..dac0379 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #      Makefile        4.1     83/02/12
 
 CFLAGS=-O
@@ -10,7 +11,7 @@ tbl : $o
 $o :   t..c
 
 install: tbl
-       install -s tbl $(DESTDIR)/usr/bin
+       ${INSTALL} -s tbl $(DESTDIR)/usr/bin
 
 clean :
        rm -f *.o
index a539c7e..2dcddb5 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -77,7 +78,7 @@ depend: FRC
 
 install: aculib tip
        cd aculib; make ${MFLAGS} install
-       install -s -o ${OWNER} -g ${GROUP} -m 4711 tip ${DESTDIR}/usr/bin/tip
+       ${INSTALL} -s -o ${OWNER} -g ${GROUP} -m 4711 tip ${DESTDIR}/usr/bin/tip
        rm -f ${DESTDIR}/usr/bin/cu
        ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
        touch ${DESTDIR}/${ADM}/aculog
index dd51b04..fb6ad25 100644 (file)
@@ -1,3 +1,4 @@
+RANLIB=ranlib
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -26,8 +27,8 @@ OBJS= biz22.o biz31.o courier.o df.o dn11.o hayes.o ventel.o v831.o \
 all: aculib.a
 
 aculib.a: ${OBJS}
-       ar ru aculib.a ${OBJS}
-       ranlib aculib.a
+       ${AR} ru aculib.a ${OBJS}
+       ${RANLIB} aculib.a
 
 clean: FRC
        rm -f ${OBJS} core aculib.a
index 7d04d32..a92b414 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  2/4/1995 - Steven Schultz
 #
@@ -16,7 +18,7 @@ uname: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 uname.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} uname tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 uname ${DESTDIR}/usr/bin/uname
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 uname ${DESTDIR}/usr/bin/uname
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index c5b0667..bd1b166 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #      Makefile        5.11.3 (2.11BSD GTE)    1996/11/17
 #
 # LIBS can be set to reference other object modules and libraries needed
@@ -142,28 +144,28 @@ mkdirs:
 
 uulib.a: ${COMMON}
        rm -f $@
-       ar cr $@ ${COMMON}
-       ranlib $@
+       ${AR} cr $@ ${COMMON}
+       ${RANLIB} $@
 
 aculib/aculib.a:
        cd aculib; make ${MFLAGS} "CFLAGS=${CFLAGS}"
 
 install: mkdirs ${ALL}
        for i in uucico uuclean; do \
-               install -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${SBINDIR} ;\
+               ${INSTALL} -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${SBINDIR} ;\
        done
        for i in uucp uux uulog uuname uusnap uupoll uuq uusend; do \
-               install -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${BIN} ;\
+               ${INSTALL} -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${BIN} ;\
        done
        rm -f ${BIN}/ruusend
        ln ${BIN}/uusend ${BIN}/ruusend
-       install -s -m 6110 -o ${OWNER} -g ${GROUP} uuxqt ${LIBEXECDIR}
-       install -s -m 6110 -o root -g ${GROUP} acucntrl ${LIBEXECDIR}
-       install -s -m 500 -o uucp uucpd ${LIBEXECDIR}
+       ${INSTALL} -s -m 6110 -o ${OWNER} -g ${GROUP} uuxqt ${LIBEXECDIR}
+       ${INSTALL} -s -m 6110 -o root -g ${GROUP} acucntrl ${LIBEXECDIR}
+       ${INSTALL} -s -m 500 -o uucp uucpd ${LIBEXECDIR}
        @echo Dont forget to fork off /usr/libexec/uucpd in /etc/rc.local
        @echo if you are not running 'inetd'
-       install -s uuencode ${BIN}
-       install -s uudecode ${BIN}
+       ${INSTALL} -s uuencode ${BIN}
+       ${INSTALL} -s uudecode ${BIN}
 
 clean:
        rm -f *.o ${ALL} uulib.a
index aeda54e..2e6d06b 100644 (file)
@@ -8,7 +8,7 @@ OBJS= bsdtcp.o df2.o df12.o dk.o dn.o hys.o hysq.o mic.o nov.o pen.o pnet.o \
        hys24.o cds224.o att2224.o
 
 aculib.a: ${OBJS}
-       ar cr aculib.a ${OBJS}
+       ${AR} cr aculib.a ${OBJS}
        -ranlib aculib.a 2>&1 | sed '/no symbol table/d'
 
 ${OBJS}: ../uucp.h ../condevs.h
index 0fc517e..a5b9efb 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ whereis: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 whereis.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} whereis tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: whereis
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 whereis ${DESTDIR}/usr/bin/whereis
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 whereis ${DESTDIR}/usr/bin/whereis
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 695454c..c73225d 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1995/03/13 - Steven Schultz
 #
@@ -14,7 +16,7 @@ xargs: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 xargs.0: xargs.1
-       /usr/man/manroff xargs.1 > xargs.0
+       ${MANROFF} xargs.1 > xargs.0
 
 clean:
        rm -f ${OBJS} tags xargs xargs.0
@@ -23,8 +25,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -s -o bin -g bin -m 755 xargs ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 xargs.0 ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o bin -g bin -m 755 xargs ${DESTDIR}/usr/bin
+       ${INSTALL} -c -o bin -g bin -m 444 xargs.0 ${DESTDIR}/usr/man/cat1
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 1e64f96..60aa546 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/2/20 - Steven Schultz
 #
@@ -6,8 +8,12 @@
 CFLAGS=         -O
 SEPFLAG= -i
 VPATH= /usr/src/bin/ls
-SRCS=  xinstall.c stat_flags.c
-OBJS=  xinstall.o stat_flags.o
+SRCS=  xinstall.c 
+# Nick: missing and I don't know where it is
+#stat_flags.c
+OBJS=  xinstall.o
+# Nick: missing and I don't know where it is
+#stat_flags.o
 MAN=   install.0
 MANSRC=        install.1
 
@@ -17,7 +23,7 @@ xinstall: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 install.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} xinstall tags 
@@ -26,8 +32,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -s -o root -g bin -m 755 xinstall ${DESTDIR}/usr/bin/install
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       ${INSTALL} -s -o root -g bin -m 755 xinstall ${DESTDIR}/usr/bin/install
 
 lint: ${SRCS}
        lint -hax ${SRCS}
@@ -36,3 +42,31 @@ tags: ${SRCS}
        ctags ${SRCS}
 # DO NOT DELETE THIS LINE -- mkdep uses it.
 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+
+xinstall.o: xinstall.c /home/nick/src/211bsd.git/stage/usr/include/sys/param.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/localopts.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stddef.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/machine/machparam.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/select.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/signal.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/wait.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/stat.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/ctype.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/errno.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/fcntl.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/grp.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/paths.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/pwd.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/stdio.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/stdlib.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/string.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/unistd.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/sys/types.h pathnames.h
+xinstall.o: /home/nick/src/211bsd.git/stage/usr/include/varargs.h
+
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index 24f3204..903addc 100644 (file)
@@ -1,10 +1,11 @@
+INSTALL=install
 #
 #      @(#)Makefile    4.2.1   (2.11BSD)       1996/10/24
 #
 DESTDIR=
 SEPFLAG= -i
-CFLAGS=-O
-SRCS = Makefile dextern files yaccpar \
+CFLAGS=-O -DCROSSDIR="${CROSSDIR}"
+SRCS = Makefile dextern.h files.h yaccpar \
        y1.c y2.c y3.c y4.c \
        yaccdiffs yaccnews
 
@@ -12,10 +13,10 @@ all: yacc
 
 yacc: y1.o y2.o y3.o y4.o
        $(CC) ${SEPFLAG} -o yacc y?.o
-y1.o y2.o y3.o y4.o: dextern files
+y1.o y2.o y3.o y4.o: dextern.h files.h
 install: yacc yaccpar
-       install -s yacc $(DESTDIR)/usr/bin
-       install -c yaccpar $(DESTDIR)/usr/share/misc
+       ${INSTALL} -s yacc $(DESTDIR)/usr/bin
+       ${INSTALL} -c yaccpar $(DESTDIR)/usr/share/misc
 clean :
        -rm -f *.o yacc
 
similarity index 74%
rename from usr.bin/yacc/dextern
rename to usr.bin/yacc/dextern.h
index 295da7a..f01f1d4 100644 (file)
@@ -1,9 +1,15 @@
 /*
  * @(#)dextern 4.2     (Berkeley)      3/21/86
  */
-# include <stdio.h>
-# include <ctype.h>
-# include "files"
+
+#ifndef _DEXTERN_H
+#define _DEXTERN_H 1
+
+#include <ctype.h>
+#include <stdio.h>
+#include <unistd.h>
+#include "files.h"
+#include "krcompat.h"
 
        /*  MANIFEST CONSTANT DEFINITIONS */
 
@@ -218,12 +224,6 @@ extern int zzexcp ;
 extern int zzclose ;
 extern int zzrrconf ;
 extern int zzsrconf ;
-       /* define functions with strange types... */
-
-extern char *cstash();
-extern struct looksets *flset();
-extern char *symnam();
-extern char *writem();
 
        /* default settings for a number of macros */
 
@@ -260,3 +260,58 @@ extern char *writem();
 # ifndef ZAPFILE
 # define ZAPFILE(x) unlink(x)
 # endif
+
+/* y1.c */
+int main PARAMS((int argc, char *argv[]));
+void others PARAMS((void));
+char *chcopy PARAMS((register char *p, register char *q));
+char *writem PARAMS((int *pp));
+char *symnam PARAMS((int i));
+void summary PARAMS((void));
+void error PARAMS((char *s, ...));
+void aryfil PARAMS((int *v, int n, int c));
+int setunion PARAMS((register int *a, register int *b));
+void prlook PARAMS((struct looksets *p));
+void cpres PARAMS((void));
+void cpfir PARAMS((void));
+int state PARAMS((int c));
+void putitem PARAMS((int *ptr, struct looksets *lptr));
+void cempty PARAMS((void));
+void stagen PARAMS((void));
+void closure PARAMS((int i));
+struct looksets *flset PARAMS((struct looksets *p));
+/* y2.c */
+void setup PARAMS((int argc, char *argv[]));
+void finact PARAMS((void));
+int defin PARAMS((int t, register char *s));
+void defout PARAMS((void));
+char *cstash PARAMS((register char *s));
+int gettok PARAMS((void));
+int fdtype PARAMS((int t));
+int chfind PARAMS((int t, register char *s));
+void cpyunion PARAMS((void));
+void cpycode PARAMS((void));
+int skipcom PARAMS((void));
+void cpyact PARAMS((int offset));
+/* y3.c */
+void output PARAMS((void));
+int apack PARAMS((int *p, int n));
+void go2out PARAMS((void));
+void go2gen PARAMS((int c));
+void precftn PARAMS((int r, register int t, int s));
+void wract PARAMS((register int i));
+void wrstate PARAMS((int i));
+void wdef PARAMS((char *s, int n));
+void warray PARAMS((char *s, int *v, int n));
+void hideprod PARAMS((void));
+/* y4.c */
+void callopt PARAMS((void));
+void gin PARAMS((int i));
+void stin PARAMS((int i));
+int nxti PARAMS((void));
+void osummary PARAMS((void));
+void aoutput PARAMS((void));
+void arout PARAMS((char *s, int *v, int n));
+int gtnm PARAMS((void));
+
+#endif
similarity index 71%
rename from usr.bin/yacc/files
rename to usr.bin/yacc/files.h
index 96ced82..414d0a5 100644 (file)
@@ -1,11 +1,15 @@
 /*
  *     @(#)files       4.1.1   (2.11BSD)       1996/10/24
  */
+
+#ifndef _FILES_H
+#define _FILES_H 1
+
        /* this file has the location of the parser, and the size of the progam desired */
        /* It may also contain definitions to override various defaults: for example,
-       /* WORD32 tells yacc that there are at least 32 bits per int */
+        * WORD32 tells yacc that there are at least 32 bits per int */
        /* on some systems, notably IBM, the names for the output files and tempfiles must
-       /* also be changed  */
+        * also be changed  */
 
 /*
  * #ifndef WORD32
  * #endif
  */
        /* location of the parser text file */
-# define PARSER "/usr/share/misc/yaccpar"
+# define PARSER CROSSDIR "/usr/share/misc/yaccpar"
 
        /* basic size of the Yacc implementation */
 /* # define HUGE */
 #define MEDIUM
+
+#endif
diff --git a/usr.bin/yacc/krcompat.h b/usr.bin/yacc/krcompat.h
new file mode 100644 (file)
index 0000000..b5c0b7d
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef _KRCOMPAT_H
+#define _KRCOMPAT_H 1
+
+#undef PARAMS
+#ifdef __STDC__
+#include <stdarg.h>
+#define VA_START(ap, arg) va_start(ap, arg)
+#define PARAMS(args) args
+#else
+#include <varargs.h>
+#define VA_START(ap, arg) va_start(ap)
+#define PARAMS(args) ()
+#endif
+
+#ifdef __GNUC__
+#define NORETURN __attribute__ ((noreturn))
+#else
+#define NORETURN
+#endif
+
+#endif
diff --git a/usr.bin/yacc/n.sh b/usr.bin/yacc/n.sh
new file mode 100755 (executable)
index 0000000..70e88ba
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+ROOT="`pwd |sed -e 's/\/usr\.bin\/yacc$//'`"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
+mkdir --parents "$ROOT/cross/usr/bin"
+mkdir --parents "$ROOT/cross/usr/share/misc"
+make CC="$CC" MANROFF="$MANROFF" CROSSDIR="\\\"$ROOT/cross\\\"" SEPFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
diff --git a/usr.bin/yacc/y.h b/usr.bin/yacc/y.h
new file mode 100644 (file)
index 0000000..2af0a7b
--- /dev/null
@@ -0,0 +1,96 @@
+#ifndef _Y1_H
+#define _Y1_H 1
+
+#undef PARAMS
+#ifdef __STDC__
+#define PARAMS(args) args
+#else
+#define PARAMS(args) ()
+#endif
+
+int main PARAMS((int argc, char *argv[]));
+int others PARAMS((void));
+char *chcopy PARAMS((register char *p, register char *q));
+char *writem PARAMS((int *pp));
+char *symnam PARAMS((int i));
+int summary PARAMS((void));
+int error PARAMS((char *s, int a1));
+int aryfil PARAMS((int *v, int n, int c));
+int setunion PARAMS((register *a, register *b));
+int prlook PARAMS((struct looksets *p));
+int cpres PARAMS((void));
+int cpfir PARAMS((void));
+int state PARAMS((int c));
+int putitem PARAMS((int *ptr, struct looksets *lptr));
+int cempty PARAMS((void));
+int stagen PARAMS((void));
+int closure PARAMS((int i));
+struct looksets *flset PARAMS((struct looksets *p));
+
+#endif
+#ifndef _Y2_H
+#define _Y2_H 1
+
+#undef PARAMS
+#ifdef __STDC__
+#define PARAMS(args) args
+#else
+#define PARAMS(args) ()
+#endif
+
+int setup PARAMS((int argc, char *argv[]));
+int finact PARAMS((void));
+int defin PARAMS((int t, register char *s));
+int defout PARAMS((void));
+char *cstash PARAMS((register char *s));
+int gettok PARAMS((void));
+int fdtype PARAMS((int t));
+int chfind PARAMS((int t, register char *s));
+int cpyunion PARAMS((void));
+int cpycode PARAMS((void));
+int skipcom PARAMS((void));
+int cpyact PARAMS((int offset));
+
+#endif
+#ifndef _Y3_H
+#define _Y3_H 1
+
+#undef PARAMS
+#ifdef __STDC__
+#define PARAMS(args) args
+#else
+#define PARAMS(args) ()
+#endif
+
+int output PARAMS((void));
+int apack PARAMS((int *p, int n));
+int go2out PARAMS((void));
+int go2gen PARAMS((int c));
+int precftn PARAMS((int r, register int t, int s));
+int wract PARAMS((register int i));
+int wrstate PARAMS((int i));
+int wdef PARAMS((char *s, int n));
+int warray PARAMS((char *s, int *v, int n));
+int hideprod PARAMS((void));
+
+#endif
+#ifndef _Y4_H
+#define _Y4_H 1
+
+#undef PARAMS
+#ifdef __STDC__
+#define PARAMS(args) args
+#else
+#define PARAMS(args) ()
+#endif
+
+int callopt PARAMS((void));
+int gin PARAMS((int i));
+int stin PARAMS((int i));
+int nxti PARAMS((void));
+int osummary PARAMS((void));
+int aoutput PARAMS((void));
+int arout PARAMS((char *s, int *v, int n));
+int gtnm PARAMS((void));
+
+#endif
index 51abb05..a068202 100644 (file)
@@ -2,7 +2,8 @@
 static char sccsid[] = "@(#)y1.c       4.1.1   (2.11BSD)       1995/05/11";
 #endif
 
-# include "dextern"
+#include <stdlib.h>
+#include "dextern.h"
 
        /* variables used locally */
 
@@ -47,8 +48,7 @@ int **pres[NNONTERM+2];  /* vector of pointers to productions yielding each nont
 struct looksets *pfirst[NNONTERM+2];  /* vector of pointers to first sets for each nonterminal */
 int pempty[NNONTERM+1];  /* vector of nonterminals nontrivially deriving e */
 
-main(argc,argv) int argc; char *argv[]; {
-
+int main(argc, argv) int argc; char *argv[]; {
        setup(argc,argv); /* initialize and read productions */
        tbitset = NWORDS(ntokens);
        cpres(); /* make table of which productions yield a given nonterminal */
@@ -62,10 +62,10 @@ main(argc,argv) int argc; char *argv[]; {
        callopt();
        others();
        exit(0);
-       }
+}
 
-others(){ /* put out other arrays, copy the parsers */
-       register c, i, j;
+void others() { /* put out other arrays, copy the parsers */
+       register int c, i, j;
 
        finput = fopen( PARSER, "r" );
        if( finput == NULL ) error( "cannot find parser %s", PARSER );
@@ -109,13 +109,13 @@ others(){ /* put out other arrays, copy the parsers */
                }
 
        fclose( ftable );
-       }
+}
 
-char *chcopy( p, q )  register char *p, *q; {
+char *chcopy(p, q) register char *p; register char *q; {
        /* copies string q into p, returning next free char ptr */
        while( *p = *q++ ) ++p;
        return( p );
-       }
+}
 
 # define ISIZE 400
 char *writem(pp) int *pp; { /* creates output string for item pointed to by pp */
@@ -142,15 +142,15 @@ char *writem(pp) int *pp; { /* creates output string for item pointed to by pp *
                }
 
        return( sarr );
-       }
+}
 
-char *symnam(i){ /* return a pointer to the name of symbol i */
+char *symnam(i) int i; { /* return a pointer to the name of symbol i */
        register char *cp;
 
        cp = (i>=NTBASE) ? nontrst[i-NTBASE].name : tokset[i].name ;
        if( *cp == ' ' ) ++cp;
        return( cp );
-       }
+}
 
 struct wset *zzcwp = wsets;
 int zzgoent = 0;
@@ -162,15 +162,14 @@ int zzsrconf = 0;
 int * zzmemsz = mem0;
 int zzrrconf = 0;
 
-summary(){ /* output the summary on the tty */
-
+void summary() { /* output the summary on the tty */
        if( foutput!=NULL ){
                fprintf( foutput, "\n%d/%d terminals, %d/%d nonterminals\n", ntokens, NTERMS,
                            nnonter, NNONTERM );
                fprintf( foutput, "%d/%d grammar rules, %d/%d states\n", nprod, NPROD, nstate, NSTATES );
                fprintf( foutput, "%d shift/reduce, %d reduce/reduce conflicts reported\n", zzsrconf, zzrrconf );
-               fprintf( foutput, "%d/%d working sets used\n", zzcwp-wsets,  WSETSIZE );
-               fprintf( foutput, "memory: states,etc. %d/%d, parser %d/%d\n", zzmemsz-mem0, MEMSIZE,
+               fprintf( foutput, "%d/%d working sets used\n", (int)(zzcwp-wsets),  WSETSIZE );
+               fprintf( foutput, "memory: states,etc. %d/%d, parser %d/%d\n", (int)(zzmemsz-mem0), MEMSIZE,
                            memp-amem, ACTSIZE );
                fprintf( foutput, "%d/%d distinct lookahead sets\n", nlset, LSETSIZE );
                fprintf( foutput, "%d extra closures\n", zzclose - 2*nstate );
@@ -188,29 +187,37 @@ summary(){ /* output the summary on the tty */
 
        fclose( ftemp );
        if( fdefine != NULL ) fclose( fdefine );
-       }
+}
+
+#ifdef __STDC__
+void error(char *s, ...)
+#else
+void error(s, va_alist) char *s; va_dcl
+#endif
+{ /* write out error comment */
+       va_list ap;
 
-/* VARARGS1 */
-error(s,a1) char *s; { /* write out error comment */
-       
        ++nerrors;
        fprintf( stderr, "\n fatal error: ");
-       fprintf( stderr, s,a1);
+       VA_START(ap, s);
+       vfprintf(stderr, s, ap);
+       va_end(ap);
        fprintf( stderr, ", line %d\n", lineno );
        if( !fatfl ) return;
        summary();
        exit(1);
-       }
+}
 
-aryfil( v, n, c ) int *v,n,c; { /* set elements 0 through n-1 to c */
+void aryfil(v, n, c) int *v; int n; int c; { /* set elements 0 through n-1 to c */
        register int i;
+
        for( i=0; i<n; ++i ) v[i] = c;
-       }
+}
 
-setunion( a, b ) register *a, *b; {
+int setunion(a, b) register int *a; register int *b; {
        /* set a to the union of a and b */
        /* return 1 if b is not a subset of a, 0 otherwise */
-       register i, x, sub;
+       register int i, x, sub;
 
        sub = 0;
        SETLOOP(i){
@@ -218,10 +225,10 @@ setunion( a, b ) register *a, *b; {
                if( *a++ != x ) sub = 1;
                }
        return( sub );
-       }
+}
 
-prlook( p ) struct looksets *p;{
-       register j, *pp;
+void prlook(p) struct looksets *p; {
+       register int j, *pp;
 
        pp = p->lset;
        if( pp == 0 ) fprintf( foutput, "\tNULL");
@@ -232,13 +239,14 @@ prlook( p ) struct looksets *p;{
                        }
                fprintf( foutput,  "}" );
                }
-       }
+}
 
-cpres(){ /* compute an array with the beginnings of  productions yielding given nonterminals
+void cpres() {
+       /* compute an array with the beginnings of productions yielding given nonterminals
        The array pres points to these lists */
        /* the array pyield has the lists: the total size is only NPROD+1 */
        int **pmem;
-       register c, j, i;
+       register int c, j, i;
        static int * pyield[NPROD];
 
        pmem = pyield;
@@ -261,12 +269,12 @@ cpres(){ /* compute an array with the beginnings of  productions yielding given
                exit(1);
                }
        if( pmem != &pyield[nprod] ) error( "internal Yacc error: pyield %d", pmem-&pyield[nprod] );
-       }
+}
 
 int indebug = 0;
-cpfir() {
+void cpfir() {
        /* compute an array with the first of nonterminals */
-       register *p, **s, i, **t, ch, changes;
+       register int *p, **s, i, **t, ch, changes;
 
        zzcwp = &wsets[nnonter];
        NTLOOP(i){
@@ -308,11 +316,11 @@ cpfir() {
                        fprintf( foutput,  " %d\n", pempty[i] );
                        }
                }
-       }
+}
 
-state(c){ /* sorts last state,and sees if it equals earlier ones. returns state number */
+int state(c) int c; { /* sorts last state, and sees if it equals earlier ones. returns state number */
        int size1,size2;
-       register i;
+       register int i;
        struct item *p1, *p2, *k, *l, *q1, *q2;
        p1 = pstate[nstate];
        p2 = pstate[nstate+1];
@@ -373,10 +381,10 @@ state(c){ /* sorts last state,and sees if it equals earlier ones. returns state
                }
        tystate[nstate]=MUSTDO;
        return(nstate++);
-       }
+}
 
 int pidebug = 0; /* debugging flag for putitem */
-putitem( ptr, lptr )  int *ptr;  struct looksets *lptr; {
+void putitem(ptr, lptr) int *ptr; struct looksets *lptr; {
        register struct item *j;
 
        if( pidebug && (foutput!=NULL) ) {
@@ -390,16 +398,16 @@ putitem( ptr, lptr )  int *ptr;  struct looksets *lptr; {
                zzmemsz = (int *)j;
                if( zzmemsz >=  &mem0[MEMSIZE] ) error( "out of state space" );
                }
-       }
+}
 
-cempty(){ /* mark nonterminals which derive the empty string */
+void cempty() { /* mark nonterminals which derive the empty string */
        /* also, look for nonterminals which don't derive any token strings */
 
 # define EMPTY 1
 # define WHOKNOWS 0
 # define OK 1
 
-       register i, *p;
+       register int i, *p;
 
        /* first, use the array pempty to detect productions that can never be reduced */
        /* set pempty to WHONOWS */
@@ -454,13 +462,12 @@ again:
                        }
                }
 
-       }
+}
 
 int gsdebug = 0;
-stagen(){ /* generate the states */
-
+void stagen() { /* generate the states */
        int i, j;
-       register c;
+       register int c;
        register struct wset *p, *q;
 
        /* initialize */
@@ -468,10 +475,10 @@ stagen(){ /* generate the states */
        nstate = 0;
        /* THIS IS FUNNY from the standpoint of portability */
        /* it represents the magic moment when the mem0 array, which has
-       /* been holding the productions, starts to hold item pointers, of a
-       /* different type... */
+        * been holding the productions, starts to hold item pointers, of a
+        * different type... */
        /* someday, alloc should be used to allocate all this stuff... for now, we
-       /* accept that if pointers don't fit in integers, there is a problem... */
+        * accept that if pointers don't fit in integers, there is a problem... */
 
        pstate[0] = pstate[1] = (struct item *)mem;
        aryfil( clset.lset, tbitset, 0 );
@@ -524,11 +531,10 @@ stagen(){ /* generate the states */
                goto more; /* we have done one goto; do some more */
                }
        /* no more to do... stop */
-       }
+}
 
 int cldebug = 0; /* debugging flag for closure */
-closure(i){ /* generate the closure of state i */
-
+void closure(i) int i; { /* generate the closure of state i */
        int c, ch, work, k;
        register struct wset *u, *v;
        int *pi;
@@ -629,15 +635,15 @@ closure(i){ /* generate the closure of state i */
                        fprintf( foutput,  "\n" );
                        }
                }
-       }
+}
 
-struct looksets *flset( p )   struct looksets *p; {
+struct looksets *flset(p) struct looksets *p; {
        /* decide if the lookahead set pointed to by p is known */
        /* return pointer to a perminent location for the set */
 
        register struct looksets *q;
        int j, *w;
-       register *u, *v;
+       register int *u, *v;
 
        for( q = &lkst[nlset]; q-- > lkst; ){
                u = p->lset;
@@ -655,4 +661,4 @@ struct looksets *flset( p )   struct looksets *p; {
                q->lset[j] = p->lset[j];
                }
        return( q );
-       }
+}
index 2b58153..814da70 100644 (file)
@@ -2,7 +2,9 @@
 static char sccsid[] = "@(#)y2.c       4.1.1   (2.11BSD)       1995/05/11";
 #endif
 
-# include "dextern"
+#include <string.h>
+#include "dextern.h"
+
 # define IDENTIFIER 257
 # define MARK 258
 # define TERM 259
@@ -66,8 +68,8 @@ int *prdptr[NPROD];   /* pointers to descriptions of productions */
 int levprd[NPROD] ;    /* precedence levels for the productions */
 
 
-setup(argc,argv) int argc; char *argv[];
-{      int i,lev, ty;
+void setup(argc, argv) int argc; char *argv[]; {
+       int i,lev, ty;
        register int t, j;
        int c;
        int *p;
@@ -370,7 +372,7 @@ setup(argc,argv) int argc; char *argv[];
 
                if( ntypes && !(levprd[nprod]&ACTFLAG) && nontrst[*prdptr[nprod]-NTBASE].tvalue ){
                        /* no explicit action, LHS has value */
-                       register tempty;
+                       register int tempty;
                        tempty = prdptr[nprod][1];
                        if( tempty < 0 ) error( "must return a value, since LHS has a type" );
                        else if( tempty >= NTBASE ) tempty = nontrst[tempty-NTBASE].tvalue;
@@ -394,22 +396,21 @@ setup(argc,argv) int argc; char *argv[];
                while( (c=getc(finput)) != EOF ) putc( c, ftable );
                }
        fclose( finput );
-       }
+}
 
-finact(){
+void finact() {
        /* finish action routine */
 
        fclose(faction);
 
        fprintf( ftable, "# define YYERRCODE %d\n", tokset[2].value );
+}
 
-       }
-
-defin( t, s ) register char  *s; {
+int defin(t, s) int t; register char *s; {
 /*     define s to be a terminal if t=0
        or a nonterminal if t=1         */
 
-       register val;
+       register int val;
 
        if (t) {
                if( ++nnonter >= NNONTERM ) error("too many nonterminals, limit %d",NNONTERM);
@@ -452,10 +453,9 @@ defin( t, s ) register char  *s; {
        tokset[ntokens].value = val;
        toklev[ntokens] = 0;
        return( ntokens );
-       }
-
-defout(){ /* write out the defines (at the end of the declaration section) */
+}
 
+void defout() { /* write out the defines (at the end of the declaration section) */
        register int i, c;
        register char *cp;
 
@@ -477,11 +477,9 @@ defout(){ /* write out the defines (at the end of the declaration section) */
                }
 
        ndefout = ntokens+1;
+}
 
-       }
-
-char *
-cstash( s ) register char *s; {
+char * cstash(s) register char *s; {
        char *temp;
 
        temp = cnamp;
@@ -490,12 +488,12 @@ cstash( s ) register char *s; {
                else *cnamp++ = *s;
                }  while ( *s++ );
        return( temp );
-       }
+}
 
-gettok() {
-       register i, base;
+int gettok() {
+       register int i, base;
        static int peekline; /* number of '\n' seen in lookahead */
-       register c, match, reserve;
+       register int c, match, reserve;
 
 begin:
        reserve = 0;
@@ -627,8 +625,8 @@ begin:
        return( IDENTIFIER );
 }
 
-fdtype( t ){ /* determine the type of a symbol */
-       register v;
+int fdtype(t) int t; { /* determine the type of a symbol */
+       register int v;
 
        if( t >= NTBASE ) v = nontrst[t-NTBASE].tvalue;
        else v = TYPE( toklev[t] );
@@ -637,7 +635,7 @@ fdtype( t ){ /* determine the type of a symbol */
        return( v );
        }
 
-chfind( t, s ) register char *s; {
+int chfind(t, s) int t; register char *s; {
        int i;
 
        if (s[0]==' ')t=0;
@@ -655,9 +653,9 @@ chfind( t, s ) register char *s; {
        if( t>1 )
                error( "%s should have been defined earlier", s );
        return( defin( t, s ) );
-       }
+}
 
-cpyunion(){
+void cpyunion() {
        /* copy the union declaration to the output, and the define file if present */
 
        int level, c;
@@ -690,9 +688,9 @@ cpyunion(){
                                }
                        }
                }
-       }
+}
 
-cpycode(){ /* copies code between \{ and \} */
+void cpycode() { /* copies code between \{ and \} */
        register int c;
 
        c = getc(finput);
@@ -713,9 +711,9 @@ cpycode(){ /* copies code between \{ and \} */
                c = getc(finput);
                }
        error("eof before %%}" );
-       }
+}
 
-skipcom(){ /* skip over comments */
+int skipcom() { /* skip over comments */
        register int c, i=0;  /* i is the number of lines skipped */
 
        /* skipcom is called after reading a / */
@@ -731,9 +729,10 @@ skipcom(){ /* skip over comments */
                }
        error( "EOF inside comment" );
        /* NOTREACHED */
-       }
+       return 0; /* keep the compiler happy */
+}
 
-cpyact(offset){ /* copy C action to the next ; or closing } */
+void cpyact(offset) int offset; { /* copy C action to the next ; or closing } */
        register int c;
        int brac, match, j, s, tok;
 
@@ -863,4 +862,4 @@ case '\n':  ++lineno;
 lcopy:
        putc( c , faction );
        goto loop;
-       }
+}
index 4375231..1dfcca0 100644 (file)
@@ -2,14 +2,13 @@
 static char sccsid[] = "@(#)y3.c       4.1.1   (2.11BSD)       1995/05/11";
 #endif
 
-# include "dextern"
+#include "dextern.h"
 
        /* important local variables */
 int lastred;  /* the number of the last reduction of a state */
 int defact[NSTATES];  /* the default actions of states */
 
-output(){ /* print the output for the states */
-
+void output() { /* print the output for the states */
        int i, k;
        register int c;
        register struct wset *u, *v;
@@ -68,13 +67,12 @@ output(){ /* print the output for the states */
        fprintf( ftable, "\t};\n" );
 
        wdef( "YYNPROD", nprod );
-
-       }
+}
 
 int pkdebug = 0;
-apack(p, n ) int *p;{ /* pack state i from temp1 into amem */
+int apack(p, n) int *p; int n; { /* pack state i from temp1 into amem */
        int off;
-       register *pp, *qq, *rr;
+       register int *pp, *qq, *rr;
        int *q, *r;
 
        /* we don't need to worry about checking because we
@@ -121,9 +119,10 @@ apack(p, n ) int *p;{ /* pack state i from temp1 into amem */
                }
        error("no space in action table" );
        /* NOTREACHED */
-       }
+       return 0; /* keep the compiler happy */
+}
 
-go2out(){ /* output the gotos for the nontermninals */
+void go2out() { /* output the gotos for the nontermninals */
        register int i, j, k;
        int best, count, cbest, times;
 
@@ -170,14 +169,10 @@ go2out(){ /* output the gotos for the nontermninals */
                fprintf( ftemp, "%d\n", best );
 
                }
-
-
-
-       }
+}
 
 int g2debug = 0;
-go2gen(c){ /* output the gotos for nonterminal c */
-
+void go2gen(c) int c; { /* output the gotos for nonterminal c */
        register int i, cc;
        int work;
        struct item *p, *q;
@@ -225,11 +220,11 @@ go2gen(c){ /* output the gotos for nonterminal c */
                                }
                        }
                }
-       }
+}
 
-precftn(r,t,s) register int t;
-       /* decide a shift/reduce conflict by precedence.
-       /* r is a rule number, t a token number */
+void precftn(r, t, s) int r; register int t; int s; {
+       /* decide a shift/reduce conflict by precedence.
+        * r is a rule number, t a token number */
        /* the conflict is in state s */
        /* temp1[t] is changed to reflect the action */
 
@@ -259,9 +254,9 @@ precftn(r,t,s) register int t;
                return;
 
                }
-       }
+}
 
-wract(i) register int i; { /* output state i */
+void wract(i) register int i; { /* output state i */
        /* temp1 has the actions, lastred the default */
        int p, p0, p1;
        int ntimes, tred, count;
@@ -289,7 +284,7 @@ wract(i) register int i; { /* output state i */
                }
 
        /* for error recovery, arrange that, if there is a shift on the
-       /* error recovery token, `error', that the default be the error action */
+        * error recovery token, `error', that the default be the error action */
        if( temp1[1] > 0 ) lastred = 0;
 
        /* clear out entries in temp1 which equal lastred */
@@ -329,10 +324,10 @@ wract(i) register int i; { /* output state i */
                }
        fprintf( ftemp, "\n" );
        return;
-       }
+}
 
-wrstate(i){ /* writes state i */
-       register j0,j1;
+void wrstate(i) int i; { /* writes state i */
+       register int j0, j1;
        register struct item *pp, *qq;
        register struct wset *u;
 
@@ -370,15 +365,14 @@ wrstate(i){ /* writes state i */
                if( temp1[++j1] ) fprintf( foutput, "\t%s  goto %d\n", symnam( j0+NTBASE), temp1[j1] );
                }
 
-       }
+}
 
-wdef( s, n ) char *s; { /* output a definition of s to the value n */
+void wdef(s, n) char *s; int n; { /* output a definition of s to the value n */
        fprintf( ftable, "# define %s %d\n", s, n );
-       }
-
-warray( s, v, n ) char *s; int *v, n; {
+}
 
-       register i;
+void warray(s, v, n) char *s; int *v; int n; {
+       register int i;
 
        fprintf( ftable, "short %s[]={\n", s );
        for( i=0; i<n; ){
@@ -387,16 +381,16 @@ warray( s, v, n ) char *s; int *v, n; {
                if( ++i == n ) fprintf( ftable, " };\n" );
                else fprintf( ftable, "," );
                }
-       }
+}
 
-hideprod(){
+void hideprod() {
        /* in order to free up the mem and amem arrays for the optimizer,
-       /* and still be able to output yyr1, etc., after the sizes of
-       /* the action array is known, we hide the nonterminals
-       /* derived by productions in levprd.
-       */
+        * and still be able to output yyr1, etc., after the sizes of
+        * the action array is known, we hide the nonterminals
+        * derived by productions in levprd.
+        */
 
-       register i, j;
+       register int i, j;
 
        j = 0;
        levprd[0] = 0;
@@ -410,4 +404,4 @@ hideprod(){
                levprd[i] = *prdptr[i] - NTBASE;
                }
        if( j ) fprintf( stdout, "%d rules never reduced\n", j );
-       }
+}
index 351ff79..06eae50 100644 (file)
@@ -2,7 +2,7 @@
 static char sccsid[] = "@(#)y4.c       4.1.1   (2.11BSD)       1995/05/11";
 #endif
 
-# include "dextern"
+#include "dextern.h"
 
 # define a amem
 # define mem mem0
@@ -23,9 +23,8 @@ int *maxa;
 int nxdb = 0;
 int adb = 0;
 
-callopt(){
-
-       register i, *p, j, k, *q;
+void callopt() {
+       register int i, *p, j, k, *q;
 
        /* read the arrays from tempfile and set parameters */
 
@@ -86,7 +85,7 @@ callopt(){
                        }
                if( k <= j ){ /* nontrivial situation */
                        /* temporarily, kill this for compatibility
-                       j -= k;  /* j is now the range */
+                       j -= k;*/  /* j is now the range */
                        if( k > maxoff ) maxoff = k;
                        }
                greed[i] = (yypact[i+1]-yypact[i]) + 2*j;
@@ -138,11 +137,10 @@ callopt(){
 
        osummary();
        ZAPFILE(TEMPNAME);
-       }
-
-gin(i){
+}
 
-       register *p, *r, *s, *q1, *q2;
+void gin(i) int i; {
+       register int *p, *r, *s, *q1, *q2;
 
        /* enter gotos on nonterminal i into array a */
 
@@ -183,10 +181,10 @@ gin(i){
        error( "cannot place goto %d\n", i );
 
        nextgi:  ;
-       }
+}
 
-stin(i){
-       register *r, *s, n, flag, j, *q1, *q2;
+void stin(i) int i; {
+       register int *r, *s, n, flag, j, *q1, *q2;
 
        greed[i] = 0;
 
@@ -235,11 +233,10 @@ stin(i){
                }
 
        error( "Error; failure to place state %d\n", i );
+}
 
-       }
-
-nxti(){ /* finds the next i */
-       register i, max, maxi;
+int nxti() { /* finds the next i */
+       register int i, max, maxi;
 
        max = 0;
 
@@ -256,12 +253,12 @@ nxti(){ /* finds the next i */
        if( nxdb ) fprintf( ftable, "nxti = %d, max = %d\n", maxi, max );
        if( max==0 ) return( NOMORE );
        else return( maxi );
-       }
+}
 
-osummary(){
+void osummary() {
        /* write summary */
 
-       register i, *p;
+       register int i, *p;
 
        if( foutput == NULL ) return;
        i=0;
@@ -273,12 +270,9 @@ osummary(){
                pmem-mem+1, MEMSIZE, maxa-a+1, ACTSIZE );
        fprintf( foutput, "%d table entries, %d zero\n", (maxa-a)+1, i );
        fprintf( foutput, "maximum spread: %d, maximum offset: %d\n", maxspr, maxoff );
+}
 
-       }
-
-aoutput(){ /* this version is for C */
-
-
+void aoutput() { /* this version is for C */
        /* write out the optimized parser */
 
        fprintf( ftable, "# define YYLAST %d\n", maxa-a+1 );
@@ -286,12 +280,10 @@ aoutput(){ /* this version is for C */
        arout( "yyact", a, (maxa-a)+1 );
        arout( "yypact", pa, nstate );
        arout( "yypgo", pgo, nnonter+1 );
+}
 
-       }
-
-arout( s, v, n ) char *s; int *v, n; {
-
-       register i;
+void arout(s, v, n) char *s; int *v; int n; {
+       register int i;
 
        fprintf( ftable, "short %s[]={\n", s );
        for( i=0; i<n; ){
@@ -300,12 +292,11 @@ arout( s, v, n ) char *s; int *v, n; {
                if( ++i == n ) fprintf( ftable, " };\n" );
                else fprintf( ftable, "," );
                }
-       }
+}
 
 
-gtnm(){
-
-       register s, val, c;
+int gtnm() {
+       register int s, val, c;
 
        /* read and convert an integer from the standard input */
        /* return the terminating character */
@@ -325,5 +316,4 @@ gtnm(){
        *pmem++ = s*val;
        if( pmem > &mem[MEMSIZE] ) error( "out of space" );
        return( c );
-
-       }
+}
index 33c9a49..e2302ff 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -26,11 +28,11 @@ OBJS=       agoto.o aminmax.o aon.o areaclear.o beep.o bitcopy.o cleara.o \
        zoomn.o zoomon.o zoomout.o
 
 lib2648.a:     ${OBJS}
-       ar cr lib2648.a `lorder ${OBJS} | tsort`
+       ${AR} cr lib2648.a `${LORDER} ${OBJS} | tsort`
 
 install:       lib2648.a
-       install -m 644 lib2648.a ${DESTDIR}${LIBDIR}/lib2648.a
-       ranlib ${DESTDIR}${LIBDIR}/lib2648.a
+       ${INSTALL} -m 644 lib2648.a ${DESTDIR}${LIBDIR}/lib2648.a
+       ${RANLIB} ${DESTDIR}${LIBDIR}/lib2648.a
 
 tags:  /tmp
        ctags ${SRCS}
index e59ab5b..803a696 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -294,14 +296,14 @@ all:              $(LIBRARY) $(LIBRARY_P)
 
 $(LIBRARY):    $(OBJS1) $(OBJS2) Version
                @echo -n "Loading $(LIBRARY) ... "
-               @ar cru $(LIBRARY) \
-                       `lorder $(OBJS1) $(OBJS2) | tsort` Version
+               @${AR} cru $(LIBRARY) \
+                       `${LORDER} $(OBJS1) $(OBJS2) | tsort` Version
                @echo "done"
 
 $(LIBRARY_P):  $(OBJS1) $(OBJS2) Version
                @echo -n "Loading $(LIBRARY_P) ... "
-               @cd profiled; ar cru ../$(LIBRARY_P) \
-                       `lorder $(OBJS1) $(OBJS2) | tsort` Version
+               @cd profiled; ${AR} cru ../$(LIBRARY_P) \
+                       `${LORDER} $(OBJS1) $(OBJS2) | tsort` Version
                @echo "done"
 
 Version:       $(SRCS) mkvers
@@ -312,8 +314,9 @@ Version:    $(SRCS) mkvers
                @rm -f profiled/Version
                ln Version profiled/Version
 
+# for cross compiling, to access the host compiler we use cc not ${CC}
 mkvers:                mkvers.c
-               @$(CC) mkvers.c -o mkvers
+               @cc mkvers.c -o mkvers
 
 clean:;                @rm -f $(OBJS1) $(OBJS2) profiled/*.o $(LIBRARY) $(LIBRARY_P) \
                Version
@@ -326,10 +329,10 @@ extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF
 index:;                @ctags -wx $(HDRS) $(SRCS)
 
 install:       $(LIBRARY) $(LIBRARY_P)
-               install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
-               ranlib $(DEST)/$(LIBRARY)
-               install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
-               ranlib $(DEST)/$(LIBRARY_P)
+               $(INSTALL) -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
+               $(RANLIB) $(DEST)/$(LIBRARY)
+               $(INSTALL) -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
+               $(RANLIB) $(DEST)/$(LIBRARY_P)
 
 library:        $(LIBRARY) $(LIBRARY_P)
 
@@ -375,17 +378,17 @@ $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
 #
 #.c.o:
 #              $(CC) -p `Usef $*` $(CFLAGS) -c $*.c
-#              -ld -x -r $*.o
+#              -$(LD) -x -r $*.o
 #              mv a.out profiled/$*.o
 #              $(CC) `Usef $*` $(CFLAGS) -c $*.c
-#              -ld -x -r $*.o
+#              -$(LD) -x -r $*.o
 #              mv a.out $*.o
 
 .c.o:
                $(CC) -p $(CFLAGS) -c $*.c
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out profiled/$*.o
                $(CC) $(CFLAGS) -c $*.c
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out $*.o
 
index 5598289..501adb0 100644 (file)
@@ -1,5 +1,5 @@
 char *libF77_id[] = {
-       "@(#)libF77.a   Nov 24 11:39:26 1999",
+       "@(#)libF77.a   Jan  6 02:48:39 2017",
        "@(#)abort_.c   5.1     6/7/85",
        "@(#)besj0_.c   5.1     6/7/85",
        "@(#)besj1_.c   5.1     6/7/85",
diff --git a/usr.lib/libF77/mkvers b/usr.lib/libF77/mkvers
deleted file mode 100755 (executable)
index 6aca4af..0000000
Binary files a/usr.lib/libF77/mkvers and /dev/null differ
index c584a16..8bc9c11 100755 (executable)
Binary files a/usr.lib/libF77/profiled/Version and b/usr.lib/libF77/profiled/Version differ
index 5da4b8c..c3ea460 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -109,14 +111,14 @@ all:              $(LIBRARY) $(LIBRARY_P) libI66.o
 
 $(LIBRARY):    $(OBJS) Version
                @echo -n "Loading $(LIBRARY) ... "
-               @ar cru $(LIBRARY) \
-                       `lorder $(OBJS) | tsort` Version
+               @${AR} cru $(LIBRARY) \
+                       `${LORDER} $(OBJS) | tsort` Version
                @echo "done"
 
 $(LIBRARY_P):  $(OBJS) Version
                @echo -n "Loading $(LIBRARY_P) ... "
-               @cd profiled; ar cru ../$(LIBRARY_P) \
-                       `lorder $(OBJS) | tsort` Version
+               @cd profiled; ${AR} cru ../$(LIBRARY_P) \
+                       `${LORDER} $(OBJS) | tsort` Version
                @echo "done"
 
 Version:       $(SRCS) mkvers
@@ -127,8 +129,9 @@ Version:    $(SRCS) mkvers
                @rm -f profiled/Version
                ln Version profiled/Version
 
+# for cross compiling, to access the host compiler we use cc not ${CC}
 mkvers:                mkvers.c
-               @$(CC) mkvers.c -o mkvers
+               @cc mkvers.c -o mkvers
 
 clean:;                @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P) libI66.o
 
@@ -140,11 +143,11 @@ extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF
 index:;                @ctags -wx $(HDRS) $(SRCS)
 
 install:       $(LIBRARY) $(LIBRARY_P) libI66.o
-               install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
-               ranlib $(DEST)/$(LIBRARY)
-               install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
-               ranlib $(DEST)/$(LIBRARY_P)
-               install -m 644 -c libI66.o $(DEST)/libI66.a
+               $(INSTALL) -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
+               $(RANLIB) $(DEST)/$(LIBRARY)
+               $(INSTALL) -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
+               $(RANLIB) $(DEST)/$(LIBRARY_P)
+               $(INSTALL) -m 644 -c libI66.o $(DEST)/libI66.a
 
 library:        $(LIBRARY) $(LIBRARY_P)
 
@@ -165,10 +168,10 @@ f_errlist.o:      f_errlist.c
                ln f_errlist.o profiled/f_errlist.o
 .c.o:
                $(CC) -p $(CFLAGS) -c $*.c
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out profiled/$*.o
                $(CC) $(CFLAGS) -c $*.c
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out $*.o
 
 backspace.o:   fio.h f_errno.h fiodefs.h backspace.c
diff --git a/usr.lib/libI77/Version b/usr.lib/libI77/Version
deleted file mode 100755 (executable)
index 548cacc..0000000
Binary files a/usr.lib/libI77/Version and /dev/null differ
index f3bef96..aadbf00 100644 (file)
@@ -1,5 +1,5 @@
 char *libI77_id[] = {
-       "@(#)libI77.a   Oct 24 10:50:06 1999",
+       "@(#)libI77.a   Jan  6 00:43:48 2017",
        "@(#)backspace.c        5.2     7/30/85",
        "@(#)c_dfe.c    5.2     7/30/85",
        "@(#)c_iio.c    5.2     7/30/85",
diff --git a/usr.lib/libI77/mkvers b/usr.lib/libI77/mkvers
deleted file mode 100755 (executable)
index a8ae875..0000000
Binary files a/usr.lib/libI77/mkvers and /dev/null differ
index 548cacc..695faaa 100755 (executable)
Binary files a/usr.lib/libI77/profiled/Version and b/usr.lib/libI77/profiled/Version differ
index c0aec83..a786f6e 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -135,14 +137,14 @@ all:              $(LIBRARY) $(LIBRARY_P)
 
 $(LIBRARY):    $(OBJS) Version
                @echo -n "Loading $(LIBRARY) ... "
-               @ar cru $(LIBRARY) \
-                       `lorder $(OBJS) | tsort` ioinit.f Version
+               @${AR} cru $(LIBRARY) \
+                       `${LORDER} $(OBJS) | tsort` ioinit.f Version
                @echo "done"
 
 $(LIBRARY_P):  $(OBJS) Version
                @echo -n "Loading $(LIBRARY_P) ... "
-               @cd profiled; ar cru ../$(LIBRARY_P) \
-                       `lorder $(OBJS) | tsort` Version
+               @cd profiled; ${AR} cru ../$(LIBRARY_P) \
+                       `${LORDER} $(OBJS) | tsort` Version
                @echo "done"
 
 Version:       $(SRCS) mkvers
@@ -153,8 +155,9 @@ Version:    $(SRCS) mkvers
                @rm -f profiled/Version
                ln Version profiled/Version
 
+# for cross compiling, to access the host compiler we use cc not ${CC}
 mkvers:                mkvers.c
-               @$(CC) mkvers.c -o mkvers
+               @cc mkvers.c -o mkvers
 
 clean:;                @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P)
 
@@ -166,10 +169,10 @@ extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF
 index:;                @ctags -wx $(HDRS) $(SRCS)
 
 install:       $(LIBRARY) $(LIBRARY_P)
-               install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
-               ranlib $(DEST)/$(LIBRARY)
-               install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
-               ranlib $(DEST)/$(LIBRARY_P)
+               $(INSTALL) -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
+               $(RANLIB) $(DEST)/$(LIBRARY)
+               $(INSTALL) -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
+               $(RANLIB) $(DEST)/$(LIBRARY_P)
 
 library:        $(LIBRARY) $(LIBRARY_P)
 
@@ -185,16 +188,16 @@ $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
                @make -f $(MAKEFILE) DEST=$(DEST) install clean
 .c.o:
                $(CC) -p $(CFLAGS) -c $*.c
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out profiled/$*.o
                $(CC) $(CFLAGS) -c $*.c
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out $*.o
 
 .f.o:
                $(FC) -p $(FFLAGS) -c $*.f
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out profiled/$*.o
                $(FC) $(FFLAGS) -c $*.f
-               -ld -x -r $*.o
+               -$(LD) -x -r $*.o
                mv a.out $*.o
diff --git a/usr.lib/libU77/Version b/usr.lib/libU77/Version
deleted file mode 100755 (executable)
index a65e783..0000000
Binary files a/usr.lib/libU77/Version and /dev/null differ
diff --git a/usr.lib/libU77/mkvers b/usr.lib/libU77/mkvers
deleted file mode 100755 (executable)
index a8ae875..0000000
Binary files a/usr.lib/libU77/mkvers and /dev/null differ
index 87f9a5f..904973d 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
@@ -26,25 +28,25 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -c -p ${CFLAGS} $*.c
-       ld -x -r $*.o
+       ${LD} -x -r $*.o
        mv a.out profiled/$*.o
        ${CC} -c ${CFLAGS} $*.c
-       ld -x -r $*.o
+       ${LD} -x -r $*.o
        mv a.out $*.o
 
 libcurses libcurses_p: ${OBJS}
        @echo building profiled libcurses
-       @cd profiled; ar ru ../libcurses_p ${OBJS}
-       ranlib libcurses_p
+       @cd profiled; ${AR} ru ../libcurses_p ${OBJS}
+       ${RANLIB} libcurses_p
        @echo building normal libcurses
-       @ar ru libcurses ${OBJS}
-       ranlib libcurses
+       @${AR} ru libcurses ${OBJS}
+       ${RANLIB} libcurses
 
 install: libcurses libcurses_p
-       install -m 644 libcurses ${DESTDIR}/usr/lib/libcurses.a
-       ranlib ${DESTDIR}/usr/lib/libcurses.a
-       install -m 644 libcurses_p ${DESTDIR}/usr/lib/libcurses_p.a
-       ranlib ${DESTDIR}/usr/lib/libcurses_p.a
+       ${INSTALL} -m 644 libcurses ${DESTDIR}/usr/lib/libcurses.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libcurses.a
+       ${INSTALL} -m 644 libcurses_p ${DESTDIR}/usr/lib/libcurses_p.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libcurses_p.a
 
 tags:
        cwd=`pwd`; \
@@ -69,4 +71,4 @@ test.o:       test.c
        ${CC} ${CFLAGS} -c test.c
 
 ar:
-       ar crv curses.ar ${CFILES} curses.h curses.ext Makefile
+       ${AR} crv curses.ar ${CFILES} curses.h curses.ext Makefile
index 104dd7a..38a41db 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -13,19 +14,19 @@ all: libdbm.a libdbm_p.a
 
 libdbm.a: dbm.c
        ${CC} -c ${CFLAGS} dbm.c
-       ld -r -o libdbm.a -x dbm.o
+       ${LD} -r -o libdbm.a -x dbm.o
        rm -f dbm.o
 
 libdbm_p.a: dbm.c
        ${CC} -p -c ${CFLAGS} dbm.c
-       ld -r -o libdbm_p.a -X dbm.o
+       ${LD} -r -o libdbm_p.a -X dbm.o
        rm -f dbm.o
 
 install: all
-       install -m 644 libdbm.a $(DESTDIR)/usr/lib
-       install -m 644 libdbm_p.a $(DESTDIR)/usr/lib
+       ${INSTALL} -m 644 libdbm.a $(DESTDIR)/usr/lib
+       ${INSTALL} -m 644 libdbm_p.a $(DESTDIR)/usr/lib
        -cmp -s dbm.h $(DESTDIR)/usr/include/dbm.h || \
-               install -c -m 444 dbm.h $(DESTDIR)/usr/include
+               ${INSTALL} -c -m 444 dbm.h $(DESTDIR)/usr/include
 
 tags:
        ctags -a -f ${TAGSFILE} `pwd`/dbm.c
index ee30832..b446e48 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/3/20 - Steven Schultz
 #
@@ -11,17 +12,17 @@ all: liberrlst.a liberrlst_p.a
 
 liberrlst.a: errlst.c
        ${CC} -c ${CFLAGS} errlst.c
-       ld -r -X -o liberrlst.a errlst.o
+       ${LD} -r -X -o liberrlst.a errlst.o
        rm -f errlst.o
 
 liberrlst_p.a: errlst.c
        ${CC} -p -c ${CFLAGS} errlst.c
-       ld -r -X -o liberrlst_p.a errlst.o
+       ${LD} -r -X -o liberrlst_p.a errlst.o
        rm -f errlst.o
 
 install: all
-       install -m 644 liberrlst.a $(DESTDIR)/usr/lib
-       install -m 644 liberrlst_p.a $(DESTDIR)/usr/lib
+       ${INSTALL} -m 644 liberrlst.a $(DESTDIR)/usr/lib
+       ${INSTALL} -m 644 liberrlst_p.a $(DESTDIR)/usr/lib
 
 tags:
        ctags -a -f ${TAGSFILE} `pwd`/errlst.c
index b393a38..f710382 100644 (file)
@@ -1,3 +1,6 @@
+MANROFF=/usr/man/manroff
+RANLIB=ranlib
+INSTALL=install
 #
 # Place in the public domain 1996/12/13 - sms.
 #
@@ -19,20 +22,20 @@ OBJS = ident.o id_open.o id_close.o id_query.o id_parse.o support.o version.o
 
 .c.o:
        @${CC} -p ${CFLAGS} -c $*.c
-       @-ld -X -o profiled/$*.o -r $*.o
+       @-${LD} -X -o profiled/$*.o -r $*.o
        ${CC} ${CFLAGS} -c $*.c
-       @-ld -x -r $*.o
+       @-${LD} -x -r $*.o
        @mv a.out $*.o
 
 all:   libident.a libident_p.a lookup-tester ident-tester ident.0
 
 libident.a libident_p.a:       $(OBJS)
        @echo building normal libident
-       @ar ru libident.a ${OBJS}
-       ranlib libident.a
+       @${AR} ru libident.a ${OBJS}
+       ${RANLIB} libident.a
        @echo building profiled libident
-       @cd profiled; ar ru ../libident_p.a ${OBJS}
-       ranlib libident_p.a
+       @cd profiled; ${AR} ru ../libident_p.a ${OBJS}
+       ${RANLIB} libident_p.a
 
 ident-tester: libident.a ident-tester.o
        ${CC} $(CFLAGS) ${LFLAGS} -o ident-tester ident-tester.o $(LIB)
@@ -41,14 +44,14 @@ lookup-tester: libident.a lookup-tester.o
        ${CC} $(CFLAGS) ${LFLAGS} -o lookup-tester lookup-tester.o $(LIB)
 
 ident.0: ident.3
-       /usr/man/manroff ident.3 > ident.0
+       ${MANROFF} ident.3 > ident.0
 
 install: all
-       install -c -m 644  libident.a $(LIBDIR)/libident.a
-       install -c -m 644 libident_p.a $(LIBDIR)/libident_p.a
-       ranlib $(LIBDIR)/libident.a $(LIBDIR)/libident_p.a
-       install -c -m 444  ident.h $(INCDIR)/ident.h
-       install -c -m 444 ident.0 $(MANDIR)/ident.0
+       ${INSTALL} -c -m 644  libident.a $(LIBDIR)/libident.a
+       ${INSTALL} -c -m 644 libident_p.a $(LIBDIR)/libident_p.a
+       ${RANLIB} $(LIBDIR)/libident.a $(LIBDIR)/libident_p.a
+       ${INSTALL} -c -m 444  ident.h $(INCDIR)/ident.h
+       ${INSTALL} -c -m 444 ident.0 $(MANDIR)/ident.0
 
 clean:
        -rm -f libident.a libident_p.a ident-tester lookup-tester *.o ident.0
index d5d8980..d63e162 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #      @(#)Makefile    4.2     5/30/85
 #
 CFLAGS = -O
@@ -8,13 +10,13 @@ TAGSFILE=tags
 all: libln.a
 
 libln.a: ${OBJS}
-       ar rc libln.a ${OBJS}
+       ${AR} rc libln.a ${OBJS}
 
 install: all
-       install libln.a ${DESTDIR}/usr/lib
+       ${INSTALL} libln.a ${DESTDIR}/usr/lib
        rm -f ${DESTDIR}/usr/lib/libl.a
        ln ${DESTDIR}/usr/lib/libln.a ${DESTDIR}/usr/lib/libl.a
-       ranlib ${DESTDIR}/usr/lib/libln.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libln.a
 
 tags:
        cwd=`pwd`; \
index 7378f52..e460c11 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #      @(#)Makefile    4.2     5/30/85
 #
 DESTDIR=
@@ -7,11 +9,11 @@ OBJS= pow.o gcd.o msqrt.o mdiv.o mout.o mult.o madd.o util.o
 TAGSFILE=tags
 
 libmp.a: $(OBJS)
-       ar cr libmp.a $(OBJS)
+       ${AR} cr libmp.a $(OBJS)
 
 install: libmp.a
-       install libmp.a ${DESTDIR}/usr/lib/libmp.a
-       ranlib ${DESTDIR}/usr/lib/libmp.a
+       ${INSTALL} libmp.a ${DESTDIR}/usr/lib/libmp.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libmp.a
 
 tags:
        cwd=`pwd`; \
index 32cdb88..97bf4ad 100644 (file)
@@ -1,3 +1,4 @@
+RANLIB=ranlib
 #      @(#)Makefile    4.2     6/5/85
 #
 SCCSID = "@(#)Makefile 4.2 6/5/85"
@@ -18,21 +19,21 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p ${CFLAGS} -c $*.c
-       -ld -X -r $*.o
+       -${LD} -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -ld -x -r $*.o
+       -${LD} -x -r $*.o
        mv a.out $*.o
 
 libom.a libom_p.a : $(FILES)
-       cd profiled; ar cru ../libom_p.a $(FILES)
-       ar cru libom.a $(FILES)
+       cd profiled; ${AR} cru ../libom_p.a $(FILES)
+       ${AR} cru libom.a $(FILES)
 
 install: libom.a libom_p.a
        ${INSTALL} libom.a ${DESTDIR}/usr/lib
-       ranlib ${DESTDIR}/usr/lib/libom.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libom.a
        ${INSTALL} libom_p.a ${DESTDIR}/usr/lib
-       ranlib ${DESTDIR}/usr/lib/libom_p.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libom_p.a
 
 tags:
        cwd=`pwd`; \
index 555be7c..9af2c73 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #      Makefile        4.10    85/09/21
 #
 ALL=   libf77plot libplot lib300 lib300s lib4013 lib4014 lib450 libvt0 \
@@ -57,8 +59,8 @@ FRC:
 
 install: all
        for i in ${ALL}; do \
-               install -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \
-               ranlib ${DESTDIR}/usr/lib/$$i.a; \
+               ${INSTALL} -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \
+               $(RANLIB) ${DESTDIR}/usr/lib/$$i.a; \
        done
 
 clean:
index db21db8..81e2b2d 100644 (file)
@@ -9,7 +9,7 @@ OBJS=   arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \
        line.o linemod.o move.o open.o point.o space.o subr.o
 
 ../libplotaed: ${OBJS}
-       ar ru ../libplotaed ${OBJS}
+       ${AR} ru ../libplotaed ${OBJS}
 
 ${OBJS}:       aed.h
 
index 876a7d4..155638b 100644 (file)
@@ -10,7 +10,7 @@ OBJS= box.o circle.o arc.o cont.o dot.o erase.o line.o linemod.o point.o \
        label.o move.o open.o close.o space.o
 
 ../libplotbg:  ${OBJS}
-       ar ru ../libplotbg ${OBJS}
+       ${AR} ru ../libplotbg ${OBJS}
 
 ${OBJS}:       bg.h
 
index baa25c2..9fd512d 100644 (file)
@@ -10,7 +10,7 @@ OBJS= arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \
        line.o linemod.o move.o open.o point.o space.o subr.o
 
 ../libplotdumb:        ${OBJS}
-       ar ru ../libplotdumb ${OBJS}
+       ${AR} ru ../libplotdumb ${OBJS}
 
 ${OBJS}:       dumb.h
 
index 3a4b3e3..84ad059 100644 (file)
@@ -10,7 +10,7 @@ OBJS= arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \
        line.o linemod.o move.o open.o point.o space.o
 
 ../libplotgigi:        ${OBJS}
-       ar ru ../libplotgigi ${OBJS}
+       ${AR} ru ../libplotgigi ${OBJS}
 
 ${OBJS}:       gigi.h
 
index 4014143..49250dc 100644 (file)
@@ -10,7 +10,7 @@ OBJS= arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \
        line.o linemod.o move.o open.o point.o space.o subr.o
 
 ../libplot2648:        ${OBJS}
-       ar ru ../libplot2648 ${OBJS}
+       ${AR} ru ../libplot2648 ${OBJS}
 
 ${OBJS}:       hp2648.h
 
index ac09311..be18408 100644 (file)
@@ -10,7 +10,7 @@ OBJS= arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \
        line.o linemod.o move.o open.o point.o space.o subr.o
 
 ../libplot7221:        ${OBJS}
-       ar ru ../libplot7221 ${OBJS}
+       ${AR} ru ../libplot7221 ${OBJS}
 
 ${OBJS}:       hp7221.h
 
index 441c57f..b2e1e11 100644 (file)
@@ -14,7 +14,7 @@ DEFRES=       240
 all:   ../libplotimagen
 
 ../libplotimagen: ${OBJS}
-       ar ru ../libplotimagen ${OBJS}
+       ${AR} ru ../libplotimagen ${OBJS}
 
 close.o erase.o label.o line.o open.o: imp.h imPcodes.h
 cont.o move.o: imp.h
index 2b7768a..e2ab36f 100644 (file)
@@ -5,7 +5,7 @@ OBJS=   arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \
        line.o linmod.o move.o open.o point.o putsi.o space.o
 
 ../libplot:    ${OBJS}
-       ar ru ../libplot ${OBJS}
+       ${AR} ru ../libplot ${OBJS}
 
 clean:
        rm -f ${OBJS} errs a.out core
index 192858a..d20fa39 100644 (file)
@@ -5,7 +5,7 @@ OBJS=   arc.o box.o circle.o close.o dot.o erase.o label.o \
        line.o linmod.o move.o open.o point.o space.o subr.o
 
 ../lib300:     ${OBJS}
-       ar ru ../lib300 ${OBJS}
+       ${AR} ru ../lib300 ${OBJS}
 
 clean:
        rm -f ${OBJS} errs a.out core
index 5c61e1d..b85f1bb 100644 (file)
@@ -5,7 +5,7 @@ OBJS=   arc.o box.o circle.o close.o dot.o erase.o label.o \
        line.o linmod.o move.o open.o point.o space.o subr.o
 
 ../lib300s:    ${OBJS}
-       ar ru ../lib300s ${OBJS}
+       ${AR} ru ../lib300s ${OBJS}
 
 clean:
        rm -f ${OBJS} errs a.out core
index 134b372..a029153 100644 (file)
@@ -9,7 +9,7 @@ OBJS=   arc.o box.o circle.o close.o dot.o erase.o label.o \
        line.o linemod.o move.o open.o point.o space.o subr.o
 
 ../lib4013:    ${OBJS}
-       ar ru ../lib4013 `lorder ${OBJS} | tsort`
+       ${AR} ru ../lib4013 `${LORDER} ${OBJS} | tsort`
 
 clean:
        rm -f ${OBJS} errs a.out core
index af7209f..bc0e40d 100644 (file)
@@ -5,7 +5,7 @@ OBJS=   arc.o box.o circle.o close.o dot.o erase.o label.o \
        line.o linemod.o move.o open.o point.o space.o subr.o
 
 ../lib4014:    ${OBJS}
-       ar ru ../lib4014 `lorder ${OBJS} | tsort`
+       ${AR} ru ../lib4014 `${LORDER} ${OBJS} | tsort`
 
 clean:
        rm -f ${OBJS} errs a.out core
index b22ff7b..538abac 100644 (file)
@@ -5,7 +5,7 @@ OBJS=   arc.o box.o circle.o close.o dot.o erase.o label.o \
        line.o linmod.o move.o open.o point.o space.o subr.o
 
 ../lib450:     ${OBJS}
-       ar ru ../lib450 ${OBJS}
+       ${AR} ru ../lib450 ${OBJS}
 
 clean:
        rm -f ${OBJS} errs a.out core
index 27ad738..fc5bcca 100644 (file)
@@ -10,7 +10,7 @@ OBJS = arc.o box.o circle.o clospl.o cont.o dot.o erase.o label.o \
        line.o linemd.o move.o open.o point.o space.o
 
 ../libf77plot: ${OBJS}
-       ar ru ../libf77plot `lorder ${OBJS} | tsort`
+       ${AR} ru ../libf77plot `${LORDER} ${OBJS} | tsort`
 
 clean:
        rm -f ${OBJS} errs a.out core
index ed93e96..adb0c52 100644 (file)
@@ -5,7 +5,7 @@ OBJS=   arc.o box.o circle.o close.o dot.o erase.o label.o \
        line.o linmod.o move.o open.o point.o space.o subr.o
 
 ../libvt0:     ${OBJS}
-       ar ru ../libvt0 ${OBJS}
+       ${AR} ru ../libvt0 ${OBJS}
 
 clean:
        rm -f ${OBJS} errs a.out core
index 8da295e..d4f1b7e 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/6/25 - Steven Schultz
 #
@@ -11,17 +12,17 @@ all: libstubs.a libstubs_p.a
 
 libstubs.a: stubs.c
        ${CC} -c ${CFLAGS} stubs.c
-       ld -r -X -o libstubs.a stubs.o
+       ${LD} -r -X -o libstubs.a stubs.o
        rm -f stubs.o
 
 libstubs_p.a: stubs.c
        ${CC} -p -c ${CFLAGS} stubs.c
-       ld -r -X -o libstubs_p.a stubs.o
+       ${LD} -r -X -o libstubs_p.a stubs.o
        rm -f stubs.o
 
 install: all
-       install -m 644 libstubs.a $(DESTDIR)/usr/lib
-       install -m 644 libstubs_p.a $(DESTDIR)/usr/lib
+       ${INSTALL} -m 644 libstubs.a $(DESTDIR)/usr/lib
+       ${INSTALL} -m 644 libstubs_p.a $(DESTDIR)/usr/lib
 
 tags:
        ctags -a -f ${TAGSFILE} `pwd`/stubs.c
index 0298f41..6483109 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -20,18 +22,18 @@ TAGSFILE=tags
        mv a.out $*.o
 
 termcap.a termcap_p.a: ${OBJS}
-       ar cr termcap.a ${OBJS}
-       cd profiled; ar cr ../termcap_p.a ${OBJS}
+       ${AR} cr termcap.a ${OBJS}
+       cd profiled; ${AR} cr ../termcap_p.a ${OBJS}
 
 install: termcap.a termcap_p.a
-       install -c termcap.a ${DESTDIR}/usr/lib/libtermcap.a
+       ${INSTALL} -c termcap.a ${DESTDIR}/usr/lib/libtermcap.a
        -rm -f ${DESTDIR}/usr/lib/libtermlib.a
        ln ${DESTDIR}/usr/lib/libtermcap.a ${DESTDIR}/usr/lib/libtermlib.a
-       ranlib ${DESTDIR}/usr/lib/libtermcap.a
-       install -c termcap_p.a ${DESTDIR}/usr/lib/libtermcap_p.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libtermcap.a
+       ${INSTALL} -c termcap_p.a ${DESTDIR}/usr/lib/libtermcap_p.a
        -rm -f ${DESTDIR}/usr/lib/libtermlib_p.a
        ln ${DESTDIR}/usr/lib/libtermcap_p.a ${DESTDIR}/usr/lib/libtermlib_p.a
-       ranlib ${DESTDIR}/usr/lib/libtermcap_p.a
+       ${RANLIB} ${DESTDIR}/usr/lib/libtermcap_p.a
 
 tags:
        cwd=`pwd`; \
index 2f83ac7..cbab497 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -23,20 +25,20 @@ OBJS=       login.o logout.o logwtmp.o dkcksum.o
 
 .c.o:
        @${CC} -p ${CFLAGS} -c $*.c
-       @-ld -X -o profiled/$*.o -r $*.o
+       @-${LD} -X -o profiled/$*.o -r $*.o
        ${CC} ${CFLAGS} -c $*.c
-       @-ld -x -r $*.o
+       @-${LD} -x -r $*.o
        @mv a.out $*.o
 
 all: libutil.a libutil_p.a
 
 libutil.a libutil_p.a: ${OBJS}
        @echo building normal libutil
-       @ar ru libutil.a ${OBJS}
-       ranlib libutil.a
+       @${AR} ru libutil.a ${OBJS}
+       ${RANLIB} libutil.a
        @echo building profiled libutil
-       @cd profiled; ar ru ../libutil_p.a ${OBJS}
-       ranlib libutil_p.a
+       @cd profiled; ${AR} ru ../libutil_p.a ${OBJS}
+       ${RANLIB} libutil_p.a
 
 clean:
        rm -f ${OBJS} profiled/*.o libutil.a libutil_p.a
@@ -48,10 +50,10 @@ depend:
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -o bin -g bin -m 644 libutil.a ${DESTDIR}/usr/lib
-       ranlib -t ${DESTDIR}/usr/lib/libutil.a
-       install -o bin -g bin -m 644 libutil_p.a ${DESTDIR}/usr/lib
-       ranlib -t ${DESTDIR}/usr/lib/libutil_p.a
+       ${INSTALL} -o bin -g bin -m 644 libutil.a ${DESTDIR}/usr/lib
+       ${RANLIB} -t ${DESTDIR}/usr/lib/libutil.a
+       ${INSTALL} -o bin -g bin -m 644 libutil_p.a ${DESTDIR}/usr/lib
+       ${RANLIB} -t ${DESTDIR}/usr/lib/libutil_p.a
 
 tags:
        ctags ${SRCS}
index 77a519a..be05e0c 100755 (executable)
@@ -1,7 +1,9 @@
 #!/bin/sh
 ROOT="`pwd |sed -e 's/\/usr\.lib\/libvmf$//'`"
-CC="cc -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+CC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
+INSTALL="$ROOT/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/lib"
 mkdir --parents "$ROOT/cross/usr/man/cat3"
-make CC="$CC" && \
-make DESTDIR="$ROOT/cross" install
+make CC="$CC" MANROFF="$MANROFF" && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index be1de5e..4e712c2 100644 (file)
@@ -1,3 +1,5 @@
+RANLIB=ranlib
+INSTALL=install
 #
 # Copyright (c) 1985 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -11,12 +13,12 @@ DESTDIR=
 CFLAGS=-O 
 
 liby.a:        libmai.o libzer.o
-       ar rv liby.a libmai.o libzer.o
-       ranlib liby.a
+       ${AR} rv liby.a libmai.o libzer.o
+       ${RANLIB} liby.a
 
 install: liby.a
-       install liby.a ${DESTDIR}/usr/lib/liby.a
-       ranlib ${DESTDIR}/usr/lib/liby.a
+       ${INSTALL} liby.a ${DESTDIR}/usr/lib/liby.a
+       ${RANLIB} ${DESTDIR}/usr/lib/liby.a
 
 clean:
        rm -f *.o *.a errs
index 3fdc1ad..ea647b7 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ ac: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 ac.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} ac tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ac
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 ac ${DESTDIR}/usr/sbin/ac
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 ac ${DESTDIR}/usr/sbin/ac
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 22679bd..453f927 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ accton: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 accton.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} accton tags ${MAN}
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: accton
-       install -s -o root -g bin -m 755 accton ${DESTDIR}/usr/sbin/accton
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN}
+       ${INSTALL} -s -o root -g bin -m 755 accton ${DESTDIR}/usr/sbin/accton
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN}
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 3de4acb..061471a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ arff: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 arff.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} arff tags 
@@ -25,10 +27,10 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: arff
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
        -rm -f ${DESTDIR}/usr/man/cat8/flcopy.0
        ln ${DESTDIR}/usr/man/cat8/arff.0 ${DESTDIR}/usr/man/cat8/flcopy.0
-       install -s -o root -g bin -m 755 arff ${DESTDIR}/usr/sbin/arff
+       ${INSTALL} -s -o root -g bin -m 755 arff ${DESTDIR}/usr/sbin/arff
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 6a0492d..01b9a00 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ arp: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 arp.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} arp tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: arp
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o bin -g kmem -m 2755 arp ${DESTDIR}/usr/sbin/arp
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g kmem -m 2755 arp ${DESTDIR}/usr/sbin/arp
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index bc43a41..f426bc1 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ bad144: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 bad144.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} bad144 tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: bad144
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 bad144 ${DESTDIR}/usr/sbin/bad144
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 bad144 ${DESTDIR}/usr/sbin/bad144
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index d082561..fc09720 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ catman: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 catman.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} catman tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: catman
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 catman ${DESTDIR}/usr/sbin/catman
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 catman ${DESTDIR}/usr/sbin/catman
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index f8c4e47..05b2a8c 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ chown: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 chown.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} chown tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: chown
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 chown ${DESTDIR}/usr/sbin/chown
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 chown ${DESTDIR}/usr/sbin/chown
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 80e0a70..804e7b2 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1989 The Regents of the University of California.
 # All rights reserved.
@@ -30,7 +32,7 @@ chroot: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS}
 
 chroot.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} core chroot
@@ -42,8 +44,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ${MAN} chroot
-       install -s -o root -g bin -m 4751 chroot ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 4751 chroot ${DESTDIR}/usr/sbin
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
index 167868a..8e18c53 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -22,7 +23,7 @@ clean:
        rm -f ${OBJS} lex.yy.c y.tab.c y.tab.h config
 
 install: config
-       install -s config ${DESTDIR}/usr/sbin/config
+       ${INSTALL} -s config ${DESTDIR}/usr/sbin/config
 
 lint: ${CFILES}
        lint ${CFILES}
index 4c784bb..04513c5 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  2/3/1995 - Steven Schultz
 #
@@ -16,7 +18,7 @@ dev_mkdb: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 dev_mkdb.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} dev_mkdb tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 dev_mkdb ${DESTDIR}/usr/sbin/dev_mkdb
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 dev_mkdb ${DESTDIR}/usr/sbin/dev_mkdb
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 2f2dd67..e42d682 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ diskpart: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 diskpart.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} diskpart tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: diskpart
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 diskpart ${DESTDIR}/usr/sbin/diskpart
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 diskpart ${DESTDIR}/usr/sbin/diskpart
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index c18fcc1..09784e2 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ edquota: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 edquota.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} edquota tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: edquota
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 edquota ${DESTDIR}/usr/sbin/edquota
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 edquota ${DESTDIR}/usr/sbin/edquota
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 0fd4537..f83d6e7 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -20,7 +21,7 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: flcopy
-       install -s -o root -g bin -m 755 flcopy ${DESTDIR}/usr/sbin/flcopy
+       ${INSTALL} -s -o root -g bin -m 755 flcopy ${DESTDIR}/usr/sbin/flcopy
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index a68b19f..7b74135 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ gettable: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 gettable.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} gettable tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: gettable
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 gettable ${DESTDIR}/usr/sbin/gettable
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 gettable ${DESTDIR}/usr/sbin/gettable
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 85d86fd..5dff7c4 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -34,4 +35,4 @@ clean:
        rm -f ${ALL} *.o *.s parse.c scan.c y.tab.h errs
 
 install: htable
-       install -s htable ${DESTDIR}/usr/sbin/htable
+       ${INSTALL} -s htable ${DESTDIR}/usr/sbin/htable
index 3e5db0b..ab09651 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ implog: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 implog.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} implog tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: implog
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 implog ${DESTDIR}/usr/sbin/implog
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 implog ${DESTDIR}/usr/sbin/implog
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index a621c0d..7013fe4 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ implogd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 implogd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} implogd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: implogd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 implogd ${DESTDIR}/usr/sbin/implogd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 implogd ${DESTDIR}/usr/sbin/implogd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index bccb10b..3415d7a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/6 - Steven Schultz
 #
@@ -16,7 +18,7 @@ inetd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 inetd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} inetd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: inetd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 inetd ${DESTDIR}/usr/sbin/inetd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 inetd ${DESTDIR}/usr/sbin/inetd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index a4a97f7..555019a 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ kgmon: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 kgmon.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} kgmon tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: kgmon
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o bin -g kmem -m 2755 kgmon ${DESTDIR}/usr/sbin/kgmon
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g kmem -m 2755 kgmon ${DESTDIR}/usr/sbin/kgmon
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index ec3521f..d3db4be 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -64,13 +65,13 @@ FILTERS:
        cd filters; make ${MFLAGS}
 
 install: all
-       install -s -o ${ROOT} -g ${SPGRP} -m 6711 lpd ${DESTDIR}/${SBINDIR}/lpd
-       install -s -o ${ROOT} -g ${SPGRP} -m 6711 lpr ${DESTDIR}/${BINDIR}/lpr
-       install -s -o ${ROOT} -g ${SPGRP} -m 6711 lpq ${DESTDIR}/${BINDIR}/lpq
-       install -s -o ${ROOT} -g ${SPGRP} -m 6711 lprm ${DESTDIR}/${BINDIR}/lprm
-       install -s -g ${SPGRP} -m 2711 lpc ${DESTDIR}/${SBINDIR}/lpc
-       install -s lptest ${DESTDIR}/${SBINDIR}/lptest
-       install -s pac ${DESTDIR}/${SBINDIR}/pac
+       ${INSTALL} -s -o ${ROOT} -g ${SPGRP} -m 6711 lpd ${DESTDIR}/${SBINDIR}/lpd
+       ${INSTALL} -s -o ${ROOT} -g ${SPGRP} -m 6711 lpr ${DESTDIR}/${BINDIR}/lpr
+       ${INSTALL} -s -o ${ROOT} -g ${SPGRP} -m 6711 lpq ${DESTDIR}/${BINDIR}/lpq
+       ${INSTALL} -s -o ${ROOT} -g ${SPGRP} -m 6711 lprm ${DESTDIR}/${BINDIR}/lprm
+       ${INSTALL} -s -g ${SPGRP} -m 2711 lpc ${DESTDIR}/${SBINDIR}/lpc
+       ${INSTALL} -s lptest ${DESTDIR}/${SBINDIR}/lptest
+       ${INSTALL} -s pac ${DESTDIR}/${SBINDIR}/pac
        chown ${DAEMON} ${DESTDIR}/${SPOOLDIR}
        chgrp ${SPGRP} ${DESTDIR}/${SPOOLDIR}
        chmod 775 ${DESTDIR}/${SPOOLDIR}
index 7325db2..d8bf6f9 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -84,28 +85,28 @@ rotprt: rotprt.c
 
 install: printer
        -mkdir -p ${DESTDIR}/${LIBEXECDIR}
-       install -s lpf ${DESTDIR}/${LIBEXECDIR}/lpf
-       install -s necf ${DESTDIR}/${LIBEXECDIR}/necf
+       ${INSTALL} -s lpf ${DESTDIR}/${LIBEXECDIR}/lpf
+       ${INSTALL} -s necf ${DESTDIR}/${LIBEXECDIR}/necf
 
 installv: varian
        -mkdir -p ${DESTDIR}/${LIBEXECDIR}
-       install -s vfontinfo ${DESTDIR}/${LIBEXECDIR}/vfontinfo
-       install -s vwidth ${DESTDIR}/${LIBEXECDIR}/vwidth
-       install -s vfw ${DESTDIR}/${LIBEXECDIR}/vfw
-       install -s rotate ${DESTDIR}/${LIBEXECDIR}/rotate
-       install -s rotprt ${DESTDIR}/${LIBEXECDIR}/rotprt
-       install -s rvsort ${DESTDIR}/${LIBEXECDIR}/rvsort
-       install -s rvcat ${DESTDIR}/${LIBEXECDIR}/rvcat
-       install -s vsort ${DESTDIR}/${LIBEXECDIR}/vsort
-       install -s vcat ${DESTDIR}/${LIBEXECDIR}/vcat
-       install -s vpf ${DESTDIR}/${LIBEXECDIR}/vpf
+       ${INSTALL} -s vfontinfo ${DESTDIR}/${LIBEXECDIR}/vfontinfo
+       ${INSTALL} -s vwidth ${DESTDIR}/${LIBEXECDIR}/vwidth
+       ${INSTALL} -s vfw ${DESTDIR}/${LIBEXECDIR}/vfw
+       ${INSTALL} -s rotate ${DESTDIR}/${LIBEXECDIR}/rotate
+       ${INSTALL} -s rotprt ${DESTDIR}/${LIBEXECDIR}/rotprt
+       ${INSTALL} -s rvsort ${DESTDIR}/${LIBEXECDIR}/rvsort
+       ${INSTALL} -s rvcat ${DESTDIR}/${LIBEXECDIR}/rvcat
+       ${INSTALL} -s vsort ${DESTDIR}/${LIBEXECDIR}/vsort
+       ${INSTALL} -s vcat ${DESTDIR}/${LIBEXECDIR}/vcat
+       ${INSTALL} -s vpf ${DESTDIR}/${LIBEXECDIR}/vpf
        ln ${DESTDIR}/${LIBEXECDIR}/vpf ${DESTDIR}/${LIBEXECDIR}/vpfW
-       install -s vdmp ${DESTDIR}/${LIBEXECDIR}/vdmp
-       install -s vpltdmp ${DESTDIR}/${LIBEXECDIR}/vpltdmp
-       install -s vplotf ${DESTDIR}/${LIBEXECDIR}/vplotf
+       ${INSTALL} -s vdmp ${DESTDIR}/${LIBEXECDIR}/vdmp
+       ${INSTALL} -s vpltdmp ${DESTDIR}/${LIBEXECDIR}/vpltdmp
+       ${INSTALL} -s vplotf ${DESTDIR}/${LIBEXECDIR}/vplotf
 
-#      install -s fcvt ${DESTDIR}/${LIBEXECDIR}/fcvt
-#      install -s vpsf ${DESTDIR}/${LIBEXECDIR}/vpsf
+#      ${INSTALL} -s fcvt ${DESTDIR}/${LIBEXECDIR}/fcvt
+#      ${INSTALL} -s vpsf ${DESTDIR}/${LIBEXECDIR}/vpsf
 
 clean:
        rm -f ${PRINTER} ${VARIAN} *.o
index 3085c54..d796326 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Public Domain.  1996/10/24 - sms
 #
@@ -15,7 +16,7 @@ clean:
 depend:
 
 install:
-       install -c -o root -m 755 makewhatis.sh ${DESTDIR}/usr/sbin/makewhatis
+       ${INSTALL} -c -o root -m 755 makewhatis.sh ${DESTDIR}/usr/sbin/makewhatis
 
 lint:
 
index 0539486..fd080be 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -18,7 +20,7 @@ mkhosts: ${OBJS}
        -cc ${CFLAGS} -o mkhosts ${OBJS}
 
 mkhosts.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} mkhosts tags 
@@ -27,10 +29,10 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: mkhosts
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
        -if  test -x mkhosts;\
        then \
-               install -s -o root -g bin -m 755 mkhosts ${DESTDIR}/usr/sbin ;\
+               ${INSTALL} -s -o root -g bin -m 755 mkhosts ${DESTDIR}/usr/sbin ;\
        else \
                :;\
        fi
index 87ee660..2aecb55 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -12,7 +14,7 @@ MANSRC=       mklost+found.8
 all: ${MAN}
 
 mklost+found.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${MAN}
@@ -20,8 +22,8 @@ clean:
 depend:
 
 install:
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -c -o root -g bin -m 555 ${SRCS} ${DESTDIR}/usr/sbin/mklost+found
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -c -o root -g bin -m 555 ${SRCS} ${DESTDIR}/usr/sbin/mklost+found
 
 lint:
 
index 4de6d3b..1598347 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ mkproto: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 mkproto.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} mkproto tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: mkproto
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 mkproto ${DESTDIR}/usr/sbin/mkproto
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 mkproto ${DESTDIR}/usr/sbin/mkproto
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 0b199ee..c574143 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -44,7 +45,7 @@ depend: FRC
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: named
-       install -s -o root -g staff  -m 751 named ${DESTDIR}/usr/sbin/named
+       ${INSTALL} -s -o root -g staff  -m 751 named ${DESTDIR}/usr/sbin/named
 
 lint: FRC
        lint -Dlint ${CFLAGS} ${SRCS}
index d18b6b3..b4030fd 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -45,8 +46,8 @@ depend: ${SRCS}
 
 install: ${MAN}
        cd nslookup; make ${MFLAGS} DESTDIR=${DESTDIR} install
-       install -s -m 555 nsquery ${DESTDIR}/usr/bin
-       install -s -m 555 nstest ${DESTDIR}/usr/bin
+       ${INSTALL} -s -m 555 nsquery ${DESTDIR}/usr/bin
+       ${INSTALL} -s -m 555 nstest ${DESTDIR}/usr/bin
 
 lint: ${SRCS}
        cd nslookup; make ${MFLAGS} lint
index a773201..33740a9 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.
@@ -39,12 +41,12 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: nslookup nslookup.0
-       install -s -o bin -g bin -m 755 nslookup ${DESTDIR}/usr/bin/nslookup
-       install -c -o bin -g bin -m 444 nslookup.help ${DESTDIR}/usr/share/misc/nslookup.help
-       install -c -o bin -g bin -m 444 nslookup.0 ${DESTDIR}/usr/man/cat1/nslookup.0
+       ${INSTALL} -s -o bin -g bin -m 755 nslookup ${DESTDIR}/usr/bin/nslookup
+       ${INSTALL} -c -o bin -g bin -m 444 nslookup.help ${DESTDIR}/usr/share/misc/nslookup.help
+       ${INSTALL} -c -o bin -g bin -m 444 nslookup.0 ${DESTDIR}/usr/man/cat1/nslookup.0
 
 nslookup.0: nslookup.8
-       /usr/man/manroff nslookup.8 > nslookup.0
+       ${MANROFF} nslookup.8 > nslookup.0
 
 lint: ${SRCS}
        lint -ax ${SRCS}
index a1fe0f4..6093460 100644 (file)
@@ -62,7 +62,7 @@ LIBS=
 
 VERS=3.4
 
-INSTALL= install -c -s -m 755
+INSTALL= ${INSTALL} -c -s -m 755
 
 # FEATURES include:
 #      DEBUG     - include DEBUG code
index 590f3c0..1827ac2 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 DESTDIR=
 MANDIR=/usr/man/cat8
 MANSRC= ntp.8 ntpd.8 ntpdc.8
@@ -6,14 +8,15 @@ MAN= ntp.0 ntpd.0 ntpdc.0
 .SUFFIXES: .8 .0
  
 .8.0:
-       ${DESTDIR}/usr/man/manroff $*.8 > $*.0
+#      ${DESTDIR}/usr/man/manroff $*.8 > $*.0
+       ${MANROFF} $*.8 > $*.0
 
 all: ${MAN}
 
 install: ${MAN}
-       install -c -m 444 -o bin -g bin ntp.0 ${DESTDIR}/${MANDIR}
-       install -c -m 444 -o bin -g bin ntpd.0 ${DESTDIR}/${MANDIR}
-       install -c -m 444 -o bin -g bin ntpdc.0 ${DESTDIR}/${MANDIR}
+       ${INSTALL} -c -m 444 -o bin -g bin ntp.0 ${DESTDIR}/${MANDIR}
+       ${INSTALL} -c -m 444 -o bin -g bin ntpd.0 ${DESTDIR}/${MANDIR}
+       ${INSTALL} -c -m 444 -o bin -g bin ntpdc.0 ${DESTDIR}/${MANDIR}
 
 clean:
        @rm -f *~ ${MAN}
index 1663c80..8506645 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ pstat: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 pstat.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} pstat tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: pstat
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o bin -g kmem -m 2755 pstat ${DESTDIR}/usr/sbin/pstat
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g kmem -m 2755 pstat ${DESTDIR}/usr/sbin/pstat
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 64aac74..dc8f653 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ quot: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 quot.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} quot tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: quot
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o bin -g operator -m 2755 quot ${DESTDIR}/usr/sbin/quot
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g operator -m 2755 quot ${DESTDIR}/usr/sbin/quot
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index c3d17d7..8de2d96 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ quotaon: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 quotaon.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} quotaon tags 
@@ -25,10 +27,10 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: quotaon
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
        -rm -f ${DESTDIR}/usr/man/cat8/quotaoff.0
        ln ${DESTDIR}/usr/man/cat8/quotaon.0 ${DESTDIR}/usr/man/cat8/quotaoff.0
-       install -s -o root -g bin -m 755 quotaon ${DESTDIR}/usr/sbin/quotaon
+       ${INSTALL} -s -o root -g bin -m 755 quotaon ${DESTDIR}/usr/sbin/quotaon
        -rm -f ${DESTDIR}/usr/sbin/quotaoff
        ln ${DESTDIR}/usr/sbin/quotaon ${DESTDIR}/usr/sbin/quotaoff
 
index eca0b40..27d6d47 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ repquota: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 repquota.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} repquota tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: repquota
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 repquota ${DESTDIR}/usr/sbin/repquota
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 repquota ${DESTDIR}/usr/sbin/repquota
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 7a80d35..8c52935 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ rmt: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 rmt.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} rmt tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: rmt
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 rmt ${DESTDIR}/usr/sbin/rmt
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 rmt ${DESTDIR}/usr/sbin/rmt
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 1841f2a..2c3b7e0 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ rwhod: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 rwhod.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} rwhod tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: rwhod
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 rwhod ${DESTDIR}/usr/sbin/rwhod
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 rwhod ${DESTDIR}/usr/sbin/rwhod
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index b783ccd..448e0c7 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ rxformat: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 rxformat.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} rxformat tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: rxformat
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 rxformat ${DESTDIR}/usr/sbin/rxformat
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 rxformat ${DESTDIR}/usr/sbin/rxformat
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 5b2b5b1..ab2f496 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ sa: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 sa.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} sa tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: all
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 sa ${DESTDIR}/usr/sbin/sa
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 sa ${DESTDIR}/usr/sbin/sa
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 8f5b738..16f6b31 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -47,9 +48,9 @@ depend: FRC
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ${ALL}
-#      install -s -o root -m 4755 mail ${DESTDIR}/bin/mail
-#      install -s -o bin -m 755 rmail ${DESTDIR}/bin/rmail
-       install -s -o bin -m 755 mconnect mailstats praliases \
+#      ${INSTALL} -s -o root -m 4755 mail ${DESTDIR}/bin/mail
+#      ${INSTALL} -s -o bin -m 755 rmail ${DESTDIR}/bin/rmail
+       ${INSTALL} -s -o bin -m 755 mconnect mailstats praliases \
                ${DESTDIR}/usr/bin
 
 FRC:
index 3852e9d..9df308c 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -19,6 +20,6 @@ clean: FRC
 depend: FRC
 
 install: sendmail.hf
-       install -c -o bin -m 444 sendmail.hf ${DESTDIR}/usr/share/misc/sendmail.hf
+       ${INSTALL} -c -o bin -m 444 sendmail.hf ${DESTDIR}/usr/share/misc/sendmail.hf
 
 FRC:
index e532899..43e6b6e 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -53,15 +54,15 @@ dsendmail: ${OBJS} Version.o
        size sendmail; ls -l sendmail; ${WHAT} < Version.o
 
 install: sendmail 
-       install -c -s -o root -g kmem -m 6755 sendmail ${DESTDIR}/usr/sbin
-       install -c -o bin -m 644 /dev/null ${DESTDIR}/etc/sendmail.fc
-       install -c -o bin -m 666 /dev/null ${DESTDIR}/var/log/sendmail.st
+       ${INSTALL} -c -s -o root -g kmem -m 6755 sendmail ${DESTDIR}/usr/sbin
+       ${INSTALL} -c -o bin -m 644 /dev/null ${DESTDIR}/etc/sendmail.fc
+       ${INSTALL} -c -o bin -m 666 /dev/null ${DESTDIR}/var/log/sendmail.st
        rm -f ${DESTDIR}/usr/bin/newaliases
        ln -s ../sbin/sendmail ${DESTDIR}/usr/bin/newaliases
        rm -f ${DESTDIR}/usr/bin/mailq
        ln -s ../sbin/sendmail ${DESTDIR}/usr/bin/mailq
        -if [ -s sendmail.sr ]; then \
-               install -c -o bin -m 644 sendmail.sr \
+               ${INSTALL} -c -o bin -m 644 sendmail.sr \
                        $(DESTDIR)/usr/share/misc/sendmail.sr; \
        fi
 
index 1030c30..896089e 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 #      Makefile for sendmail base directory
 #
@@ -27,11 +28,11 @@ all:
        -cd aux; m4 Makefile.m4 > Makefile; make ${MFLAGS} SEPFLAG=${SEPFLAG}
 
 install: $(ALL) $(DIRS)
-       install -s -o root -m 4755      src/sendmail    $(SENDMAIL)
-       install -c -o root -m 644       src/sendmail.sr $(STRINGFILE)
-       install -c -o root -m 644       lib/sendmail.hf $(HELPFILE)
-       install -c -o root -m 666       /dev/null       $(STATUSFILE)
-       install -c -o root -m 644       /dev/null       $(FROZENFILE)
+       ${INSTALL} -s -o root -m 4755   src/sendmail    $(SENDMAIL)
+       ${INSTALL} -c -o root -m 644    src/sendmail.sr $(STRINGFILE)
+       ${INSTALL} -c -o root -m 644    lib/sendmail.hf $(HELPFILE)
+       ${INSTALL} -c -o root -m 666    /dev/null       $(STATUSFILE)
+       ${INSTALL} -c -o root -m 644    /dev/null       $(FROZENFILE)
        rm -f                                   $(DESTDIR)/usr/bin/newaliases
        $(LN)                   ../sbin/sendmail $(DESTDIR)/usr/bin/newaliases
        rm -f                                   $(DESTDIR)/usr/bin/mailq
index 225803a..d72a67b 100644 (file)
@@ -35,7 +35,7 @@ LINT= lint
 XREF=  ctags -x
 CP=    cp
 MV=    mv
-INSTALL=install -c -s
+INSTALL=${INSTALL} -c -s
 M4=    m4
 TOUCH= touch
 ABORT= false
index f9a27c1..294a27a 100644 (file)
@@ -54,7 +54,7 @@ CFLAGS=       $O $(COPTS) $(CCONFIG)
 SEPFLAG=-i
 LINT=  lint
 XREF=  ctags -x
-INSTALL=install -c -s -o root
+INSTALL=${INSTALL} -c -s -o root
 
 ROOT=  root
 OBJMODE=755
@@ -65,7 +65,7 @@ OBJMODE=755
 all: $(ALL)
 
 sendmail: $(OBJS)
-       ld $(SEPFLAG) $(COPTS) /lib/crt0.o -o sendmail \
+       ${LD} $(SEPFLAG) $(COPTS) /lib/crt0.o -o sendmail \
                -Z $(SOV1) -Z $(SOV2) -Z $(SOV3) -Y $(SBASE) $(LIBS) -lstubs -lc
        chmod $(OBJMODE) sendmail
        size sendmail; ls -l sendmail
@@ -74,7 +74,7 @@ install: all
        $(INSTALL) -m 4755 -o root sendmail $(DESTDIR)/usr/sbin
        cp /dev/null $(DESTDIR)/etc/sendmail.fc
        -if [ -s sendmail.sr ]; then \
-               install -c -o bin -m 644 sendmail.sr \
+               ${INSTALL} -c -o bin -m 644 sendmail.sr \
                        $(DESTDIR)/usr/share/misc/sendmail.sr; \
        fi
 
index 020442e..047d8d6 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #      SYSGEN -- an imitation of the CONFIG command of VMS SYSGEN.
 #
 #      $Id: Makefile,v 1.5 1997/06/08 12:35:38 tih Exp $
@@ -14,7 +16,7 @@ DISTFILES = Makefile sysgen.c devices.h sysgen.1
 .SUFFIXES: .0 .1
 
 .1.0:
-       /usr/man/manroff $*.1 > $@
+       ${MANROFF} $*.1 > $@
 
 all: sysgen ${MAN}
 
@@ -22,8 +24,8 @@ sysgen: sysgen.o devices.h
        cc ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 install: sysgen sysgen.0
-       install -c -s ${PROG} ${DESTDIR}/usr/sbin/${PROG}
-       install -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN}
+       ${INSTALL} -c -s ${PROG} ${DESTDIR}/usr/sbin/${PROG}
+       ${INSTALL} -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} ${PROG} tags 
index 349dc6c..7241f62 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ syslogd: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 syslogd.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} syslogd tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: syslogd
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 syslogd ${DESTDIR}/usr/sbin/syslogd
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 syslogd ${DESTDIR}/usr/sbin/syslogd
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 256636d..3239697 100644 (file)
@@ -1,3 +1,4 @@
+INSTALL=install
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -45,8 +46,8 @@ timedc: ${OBJCS} ${COMMO}
        cc ${SEPFLAG} ${CFLAGS} ${OBJCS} ${COMMO} ${LIBS} -o timedc
 
 install: ${PROGRS}
-       install -s timed ${DESTDIR}/usr/sbin
-       install -s -o root -m 4511 timedc ${DESTDIR}/usr/sbin
+       ${INSTALL} -s timed ${DESTDIR}/usr/sbin
+       ${INSTALL} -s -o root -m 4511 timedc ${DESTDIR}/usr/sbin
 
 clean:
        rm -f a.out core *.o Makefile.bak errs ${PROGRS}
index 663bf15..784e3c0 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # traceroute Makefile.  Revised 1996/11/17
 #
@@ -11,11 +13,11 @@ traceroute: traceroute.o
        cc $(CFLAGS) $(INCL) -o traceroute traceroute.o $(LIBS)
 
 install: traceroute traceroute.0
-       install -c -s -o root -g bin -m 4551 traceroute ${DESTDIR}/usr/sbin/traceroute 
-       install -c -m 444 -o bin -g bin traceroute.0 ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -c -s -o root -g bin -m 4551 traceroute ${DESTDIR}/usr/sbin/traceroute 
+       ${INSTALL} -c -m 444 -o bin -g bin traceroute.0 ${DESTDIR}/usr/man/cat8
 
 traceroute.0: traceroute.8
-       /usr/man/manroff traceroute.8 > traceroute.0
+       ${MANROFF} traceroute.8 > traceroute.0
 
 clean:
        rm -f *.o traceroute traceroute.0 core
index 5a31f67..2634e66 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ trpt: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 trpt.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} trpt tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: trpt
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o bin -g kmem -m 2755 trpt ${DESTDIR}/usr/sbin/trpt
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g kmem -m 2755 trpt ${DESTDIR}/usr/sbin/trpt
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 660a45a..d31a26f 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ trsp: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 trsp.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} trsp tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: trsp
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 trsp ${DESTDIR}/usr/sbin/trsp
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 trsp ${DESTDIR}/usr/sbin/trsp
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 144ae70..f7c98c4 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Public Domain.  1996/11/16 - Steven Schultz
 #
@@ -16,7 +18,7 @@ update: ${OBJS}
        ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 update.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} update tags 
@@ -25,8 +27,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: update
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       install -s -o root -g bin -m 755 update ${DESTDIR}/usr/sbin/update
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o root -g bin -m 755 update ${DESTDIR}/usr/sbin/update
 
 lint: ${SRCS}
        lint -hax ${SRCS}
index 62cd9d2..588c187 100644 (file)
@@ -1,3 +1,5 @@
+MANROFF=/usr/man/manroff
+INSTALL=install
 #
 # Copyright (c) 1988 Regents of the University of California.
 # All rights reserved.
@@ -30,7 +32,7 @@ vipw: ${OBJS}
        ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS}
 
 vipw.0: ${MANSRC}
-       /usr/man/manroff ${MANSRC} > ${MAN}
+       ${MANROFF} ${MANSRC} > ${MAN}
 
 clean:
        rm -f ${OBJS} ${MAN} core vipw
@@ -42,8 +44,8 @@ depend: ${SRCS}
        ${MKDEP} ${CFLAGS} ${SRCS}
 
 install: ${MAN} vipw
-       install -s -o bin -g bin -m 755 vipw ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
+       ${INSTALL} -s -o bin -g bin -m 755 vipw ${DESTDIR}/usr/sbin
+       ${INSTALL} -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}