Can now build usr.bin
authorNick Downing <downing.nick@gmail.com>
Sat, 7 Jan 2017 06:54:39 +0000 (17:54 +1100)
committerNick Downing <downing.nick@gmail.com>
Sat, 7 Jan 2017 06:54:39 +0000 (17:54 +1100)
94 files changed:
.gitignore
bin/ar/n.sh
bin/as/n.sh
bin/awk/Makefile
bin/cc/n.sh
bin/ld/n.sh
bin/n.sh
bin/nm/n.sh
bin/strip/n.sh
include/a.out.h
include/nlist.h
include/ranlib.h
lib/c2/n.sh
lib/ccom.new/n.sh
lib/ccom/TEST/Makefile
lib/ccom/n.sh
lib/cpp/n.sh
lib/libc/gen/n.sh
lib/libc/n.sh
lib/libkern/n.sh
local/zmodem/Makefile
n.sh
new/ansi/Makefile
new/bm/Makefile
new/jove/Makefile
new/l11/Makefile
new/la/Makefile
new/m11/Makefile
new/nntp/xmit/Makefile
new/notes/src/Makefile
new/rcs/src/Makefile
new/vmsbackup/Makefile
o.sh
old/Makefile
old/arcv/Makefile
old/checkobj/Makefile
old/dump/Makefile
old/oldassn/Makefile
old/shortc/Makefile
old/uudiff/Makefile
old/v6/Makefile
sys/CURLY/Makefile
sys/GENERIC/Makefile
sys/GENERIC/n.sh
sys/QT/Makefile
sys/h/exec.h
sys/mdec/Makefile
sys/pdpstand/Makefile
ucb/n.sh
ucb/pascal/pi/Makefile
ucb/strcompact/n.sh
ucb/symcompact/n.sh
ucb/symdump/n.sh
ucb/symorder/n.sh
usr.bin/diction/Makefile
usr.bin/diff3/Makefile
usr.bin/eqn/Makefile
usr.bin/f77/Makefile
usr.bin/find/Makefile
usr.bin/lex/Makefile
usr.bin/lex/header.c
usr.bin/lex/lmain.c
usr.bin/lex/n.sh
usr.bin/lint/Makefile
usr.bin/lint/o.sh [new file with mode: 0755]
usr.bin/m4/Makefile
usr.bin/neqn/Makefile
usr.bin/patch/Makefile
usr.bin/plot/Makefile
usr.bin/prof/Makefile
usr.bin/ranlib/build.c
usr.bin/ranlib/misc.c
usr.bin/ranlib/n.sh
usr.bin/ranlib/ranlib.c
usr.bin/ratfor/Makefile
usr.bin/refer/Makefile
usr.bin/shar/Makefile
usr.bin/spell/Makefile
usr.bin/spell/spell.h
usr.bin/struct/Makefile
usr.bin/xinstall/Makefile
usr.bin/yacc.intptr_t/n.sh
usr.bin/yacc/dextern.h
usr.bin/yacc/n.sh
usr.bin/yacc/y.h [deleted file]
usr.lib/libF77/Makefile
usr.lib/libvmf/n.sh
usr.sbin/mkhosts/Makefile
usr.sbin/sendmail.MX/src/Makefile
usr.sbin/sendmail/aux/Makefile
usr.sbin/sendmail/src/Makefile
usr.sbin/sysgen/Makefile
usr.sbin/timed/Makefile
usr.sbin/traceroute/Makefile

index 6f415c3..17b9c97 100644 (file)
@@ -398,10 +398,167 @@ ucb/whois
 ucb/window/a.out
 ucb/xstr
 ucb/yes
+usr.bin/at/at
+usr.bin/at/atq
+usr.bin/at/atrm
+usr.bin/at/atrun
+usr.bin/basename
+usr.bin/bc
+usr.bin/cal
+usr.bin/calendar/calendar
+usr.bin/cb
+usr.bin/checkeq
+usr.bin/col
+usr.bin/comm
+usr.bin/core
+usr.bin/crypt
+usr.bin/dc/dc
+usr.bin/deroff
+usr.bin/diction/dprog
+usr.bin/diction/endlex.c
+usr.bin/diction/prtlex.c
+usr.bin/diction/style
+usr.bin/diction/style1
+usr.bin/diction/style2
+usr.bin/diction/style3
+usr.bin/diction/wdslex.c
+usr.bin/diff3/diff3
+usr.bin/egrep
+usr.bin/eqn/e.c
+usr.bin/eqn/e.def
+usr.bin/eqn/eqn
+usr.bin/eqn/y.tab.h
+usr.bin/f77/f77
+usr.bin/f77/f77_strings
+usr.bin/f77/f77pass1
+usr.bin/f77/gram.c
+usr.bin/fgrep
+usr.bin/file
+usr.bin/find/bigram
+usr.bin/find/code
+usr.bin/find/find
+usr.bin/fstat/fstat
+usr.bin/graph/graph
+usr.bin/id/id
+usr.bin/iostat
+usr.bin/join
+usr.bin/learn/lcount
+usr.bin/learn/learn
+usr.bin/learn/lrntee
+usr.bin/lex/lex
+usr.bin/lex/y.tab.c
+usr.bin/lint/cgram.c
+usr.bin/lint/cgram.y
+usr.bin/lint/common.c
+usr.bin/lint/gram.in
+usr.bin/lint/lintstrings
+usr.bin/lint/lpass1
+usr.bin/lint/lpass2
+usr.bin/lint/manifest.h
+usr.bin/lint/optim.c
+usr.bin/lint/pass1.h
+usr.bin/lint/pcclocal.h
+usr.bin/lint/pcctokens
+usr.bin/lint/pftn.c
+usr.bin/lint/scan.c
+usr.bin/lint/strings
+usr.bin/lint/trees.c
+usr.bin/lint/xdefs.c
+usr.bin/look
 usr.bin/lorder
+usr.bin/m4/m4
+usr.bin/mesg
 usr.bin/mkdep
+usr.bin/mkerrlst/mkerrlst
+usr.bin/neqn/e.c
+usr.bin/neqn/e.def
+usr.bin/neqn/neqn
 usr.bin/nohup
+usr.bin/patch/patch
+usr.bin/plot/aedplot
+usr.bin/plot/atoplot
+usr.bin/plot/bgplot
+usr.bin/plot/crtplot
+usr.bin/plot/debug
+usr.bin/plot/dumbplot
+usr.bin/plot/gigiplot
+usr.bin/plot/hp7221plot
+usr.bin/plot/hpplot
+usr.bin/plot/implot
+usr.bin/plot/plottoa
+usr.bin/plot/t300
+usr.bin/plot/t300s
+usr.bin/plot/t4013
+usr.bin/plot/t450
+usr.bin/plot/tek
+usr.bin/printf/printf
+usr.bin/prof/prof
+usr.bin/ptx
 usr.bin/ranlib/ranlib
+usr.bin/ratfor/ratfor
+usr.bin/ratfor/y.tab.c
+usr.bin/ratfor/y.tab.h
+usr.bin/refer/addbib
+usr.bin/refer/hunt
+usr.bin/refer/inv
+usr.bin/refer/lookbib
+usr.bin/refer/mkey
+usr.bin/refer/refer
+usr.bin/refer/sortbib
+usr.bin/renice/renice
+usr.bin/rev
+usr.bin/roff/nroff/nroff
+usr.bin/roff/troff/troff
+usr.bin/roff/troff_font/mkfont
+usr.bin/shar/shar
+usr.bin/shar/traverse
+usr.bin/sleep
+usr.bin/sort
+usr.bin/spell/hlist
+usr.bin/spell/hlista
+usr.bin/spell/hlistb
+usr.bin/spell/hostspellin
+usr.bin/spell/hstop
+usr.bin/spell/spell
+usr.bin/spell/spellin
+usr.bin/spell/spellout
+usr.bin/spline
+usr.bin/split
+usr.bin/struct/beautify
+usr.bin/struct/beauty.c
+usr.bin/struct/structure
+usr.bin/struct/y.tab.h
+usr.bin/sum
+usr.bin/tabs
+usr.bin/tbl/tbl
+usr.bin/tc
+usr.bin/tip/tip
+usr.bin/tk
+usr.bin/touch
+usr.bin/tr
+usr.bin/tsort
+usr.bin/tty
+usr.bin/uname/uname
+usr.bin/uniq
+usr.bin/units
+usr.bin/uucp/acucntrl
+usr.bin/uucp/uuclean
+usr.bin/uucp/uucp
+usr.bin/uucp/uucpd
+usr.bin/uucp/uudecode
+usr.bin/uucp/uuencode
+usr.bin/uucp/uulog
+usr.bin/uucp/uuname
+usr.bin/uucp/uupoll
+usr.bin/uucp/uuq
+usr.bin/uucp/uusend
+usr.bin/uucp/uusnap
+usr.bin/uucp/uux
+usr.bin/uucp/uuxqt
+usr.bin/whereis/whereis
+usr.bin/xargs/xargs
+usr.bin/xinstall/xinstall
+usr.bin/y.tab.c
 usr.bin/yacc/yacc
 usr.lib/libF77/Version
 usr.lib/libF77/mkvers
index b55d659..e1168db 100755 (executable)
@@ -6,5 +6,5 @@ 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" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 80c24f0..8ae14b4 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 97e63ca..c3ca20c 100644 (file)
@@ -32,7 +32,7 @@ install: awk
        ${INSTALL} -s awk ${DESTDIR}/bin
 
 profile:       awk.g.o $(FILES) mon.o
-       cc -p -i awk.g.o $(FILES) mon.o -lm
+       ${CC} -p -i awk.g.o $(FILES) mon.o -lm
 
 find:
        egrep -n "$(PAT)" *.[ylhc] awk.def
index 404462b..1ec6684 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" MANROFF="$MANROFF" CROSSPREFIX="\\\"$ROOT/cross\\\"" STAGEPREFIX="\\\"$ROOT/stage\\\"" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" CROSSPREFIX="\\\"$ROOT/cross\\\"" STAGEPREFIX="\\\"$ROOT/stage\\\"" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index f9c60c2..babdfd6 100755 (executable)
@@ -5,5 +5,5 @@ 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" MANROFF="$MANROFF" STAGEPREFIX="\\\"$ROOT/stage\\\"" SEPFLAG= LDFLAGS="-L$ROOT/cross/usr/lib" && \
+make CC="$HOSTCC" MANROFF="$MANROFF" STAGEPREFIX="\\\"$ROOT/stage\\\"" SEPFLAG= LDFLAGS="-L$ROOT/cross/usr/lib" && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 98c1dd1..5f3bf12 100755 (executable)
--- a/bin/n.sh
+++ b/bin/n.sh
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= size && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= size && \
 install -s size -m 755 "$ROOT/cross/bin"
index b3d02bd..9fa9049 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index a61e130..501f539 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 267c7fb..0f25a91 100644 (file)
 
 #ifdef pdp11
 #include <sys/types.h>
-#define OFF_T off_t
+#define _OFF_T off_t
 #else
 #include <stdint.h>
-#define OFF_T int32_t
+#define _OFF_T int32_t
 #endif
 
 #define        N_BADMAG(x) \
 #define PARAMS(args) ()
 #endif
 
-OFF_T n_stroff PARAMS((register struct xexec *ep));
-OFF_T n_datoff PARAMS((register struct xexec *ep));
-OFF_T n_dreloc PARAMS((register struct xexec *ep));
-OFF_T n_treloc PARAMS((register struct xexec *ep));
-OFF_T n_symoff PARAMS((register struct xexec *ep));
+_OFF_T n_stroff PARAMS((register struct xexec *ep));
+_OFF_T n_datoff PARAMS((register struct xexec *ep));
+_OFF_T n_dreloc PARAMS((register struct xexec *ep));
+_OFF_T n_treloc PARAMS((register struct xexec *ep));
+_OFF_T n_symoff PARAMS((register struct xexec *ep));
 
 #define        N_STROFF(e) (n_stroff((struct xexec *)&e))
 #define        N_SYMOFF(e) (n_symoff((struct xexec *)&e))
@@ -83,7 +83,7 @@ OFF_T n_symoff PARAMS((register struct xexec *ep));
 #define        N_DRELOC(e) (n_dreloc((struct xexec *)&e))
 #define        N_TRELOC(e) (n_treloc((struct xexec *)&e))
 
-#undef OFF_T
+#undef _OFF_T
 
 /* is nlist.h ever used without _AOUT_INCLUDE_? if so it's broken on 64-bit */
 /*#define      _AOUT_INCLUDE_*/
index 967d6f3..a99f6c9 100644 (file)
@@ -24,7 +24,7 @@
  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS _INTERRUPTION)
  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 /* note u_int was never standardized and should be changed to unsigned int */
 #include <sys/types.h>
 #ifdef pdp11
-#define OFF_T off_t
-#define INT int
-#define UNSIGNED_INT unsigned int
-#define U_INT u_int
+#define _OFF_T off_t
+#define _INT int
+#define _UNSIGNED_INT unsigned int
+#define _U_INT u_int
 #else
 #include <stdint.h>
-#define OFF_T int32_t
-#define INT int16_t
-#define UNSIGNED_INT uint16_t
-#define U_INT uint16_t
+#define _OFF_T int32_t
+#define _INT int16_t
+#define _UNSIGNED_INT uint16_t
+#define _U_INT uint16_t
 #endif
 
 /*
@@ -58,8 +58,8 @@
 
 struct oldnlist {              /* XXX - compatibility/conversion aid */
        char    n_name[8];      /* symbol name */
-       INT     n_type;         /* type flag */
-UNSIGNED_INT   n_value;        /* value */
+       _INT    n_type;         /* type flag */
+_UNSIGNED_INT  n_value;        /* value */
 };
 
 struct nlist {
@@ -70,7 +70,7 @@ struct        nlist {
 #ifdef pdp11
                char *n_name;   /* In memory address of symbol name */
 #endif
-               OFF_T n_strx;   /* String table offset (file) */
+               _OFF_T n_strx;  /* String table offset (file) */
        } n_un;
 #else
        char    *n_name;        /* symbol name (in memory) */
@@ -78,7 +78,7 @@ struct        nlist {
 #endif
        u_char  n_type;         /* Type of symbol - see below */
        char    n_ovly;         /* Overlay number */
-       U_INT   n_value;        /* Symbol value */
+       _U_INT  n_value;        /* Symbol value */
 };
 
 /*
@@ -97,9 +97,9 @@ struct        nlist {
 
 #define        N_FORMAT        "%06o"  /* namelist value format; XXX */
 
-#undef OFF_T
-#undef INT
-#undef UNSIGNED_INT
-#undef U_INT
+#undef _OFF_T
+#undef _INT
+#undef _UNSIGNED_INT
+#undef _U_INT
 
 #endif /* !_NLIST_H_ */
index d8ec2f4..2e4224a 100644 (file)
 
 #ifdef pdp11
 #include <sys/types.h>
-#define OFF_T off_t
+#define _OFF_T off_t
 #else
 #include <stdint.h>
-#define OFF_T int32_t
+#define _OFF_T int32_t
 #endif
 
 #define        RANLIBMAG       "__.SYMDEF"     /* archive file name */
 
 struct ranlib {
        union {
-               OFF_T ran_strx;         /* string table index */
+               _OFF_T ran_strx;                /* string table index */
 /* we do not support ran_name when cross compiling, it breaks on 64-bit hosts */
 #ifdef pdp11
                char *ran_name;         /* in memory symbol name */
 #endif
        } ran_un;
-       OFF_T ran_off;                  /* archive file offset */
+       _OFF_T ran_off;                 /* archive file offset */
 };
 
-#undef OFF_T
+#undef _OFF_T
 
 #endif /* !_RANLIB_H_ */
index 54bffea..d6ab931 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/lib"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 1100b97..77d1636 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/lib"
-make CC="$CC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 565dd73..2f7d7ac 100644 (file)
@@ -43,7 +43,7 @@ tst_sgncmp: tst_sgncmp.o
        ${CC} -o $@ tst_sgncmp.o
 
 old-assn: old-assn.l
-       lex old-assn.l
+       ${LEX} old-assn.l
        ${CC} ${SEPFLAG} ${CFLAGS} -o old-assn lex.yy.c -lln
        rm lex.yy.c
 
index 1100b97..77d1636 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/lib"
-make CC="$CC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index d02f9ad..cba6209 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/lib"
-make CC="$CC" MANROFF="$MANROFF" STAGEPREFIX="\\\"$ROOT/stage\\\"" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" STAGEPREFIX="\\\"$ROOT/stage\\\"" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 5ac1e28..9d060c9 100755 (executable)
@@ -10,5 +10,5 @@ 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" 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 CC="$HOSTCC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend && \
+make AR="$AR" AS="$AS" CC="$HOSTCC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C"
index 185acad..b5f3b38 100755 (executable)
@@ -12,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" 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 CC="$HOSTCC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend && \
+make AR="$AR" AS="$AS" CC="$HOSTCC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" LORDER="$LORDER" LOCALE="LC_ALL=C" && \
 make RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
index eb03182..4f3d69e 100755 (executable)
@@ -11,6 +11,6 @@ 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" MANROFF="$MANROFF" MKDEP="$MKDEP" depend && \
-make AR="$AR" AS="$AS" CC="$CC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" LORDER="$LORDER"
+make CC="$HOSTCC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend && \
+make AR="$AR" AS="$AS" CC="$HOSTCC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" LORDER="$LORDER"
 make RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
index 057c863..ab7ce85 100644 (file)
@@ -15,7 +15,7 @@ all: $(OBJ) rz.0 sz.0
 
 sz:    sz.o
        $(CC) ${SEPFLAG} sz.o -o sz
-       size sz
+       ${SIZE} sz
 
 rz:    rz.o
        $(CC) ${SEPFLAG} rz.o -o rz
diff --git a/n.sh b/n.sh
index 62dbb6b..8c2cfb9 100755 (executable)
--- a/n.sh
+++ b/n.sh
@@ -99,18 +99,18 @@ make -C usr.bin/yacc INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
 #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 CC="$HOSTCC" MKDEP="$MKDEP" depend
+#make -C lib/libc AR="$AR" AS="$AS" CC="$HOSTCC" 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 CC="$HOSTCC" MKDEP="$MKDEP" depend
+#make -C lib/libkern AR="$AR" AS="$AS" CC="$HOSTCC" 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 I="$ROOT/stage/usr/include" CC="$HOSTCC" MKDEP="$MKDEP" depend
+#make -C sys/GENERIC I="$ROOT/stage/usr/include" AS="$AS" CC="$HOSTCC" CPP="$CPP" LD="$LD" SIZE="$SIZE" STRCOMPACT="$STRCOMPACT" SYMCOMPACT="$SYMCOMPACT" SYMORDER="$SYMORDER"
 #make -C sys/GENERIC DESTDIR="$ROOT/stage" install
index a33f3c0..f44fbbd 100644 (file)
@@ -18,10 +18,10 @@ MOBJ=       ansitape.0 vmsprep.0
 all:   ansitape vmsprep ${MOBJ}
 
 ansitape: ansitape.o
-       cc ${SEPFLAG} -o ansitape ansitape.o
+       ${CC} ${SEPFLAG} -o ansitape ansitape.o
 
 vmsprep: vmsprep.o
-       cc ${SEPFLAG} -o vmsprep vmsprep.o
+       ${CC} ${SEPFLAG} -o vmsprep vmsprep.o
 
 install: vmsprep ansitape ${MOBJ}
        ${INSTALL} -s ansitape ${DESTDIR}/usr/new/ansitape
index a3cda15..22ead04 100644 (file)
@@ -20,7 +20,7 @@ OBJS= Execute.o GetPatFile.o Global.o MakeDesc.o MakeSkip.o MatchFound.o \
        ${MANROFF} $*.1 > $*.0
 
 bm: ${OBJS} bm.0
-       cc -o $@ ${SEPFLAG} ${OBJS}
+       ${CC} -o $@ ${SEPFLAG} ${OBJS}
 
 install: bm bm.0
        ${INSTALL} -s bm ${DESTDIR}/usr/new/bm
index d367668..6aa9438 100644 (file)
@@ -162,7 +162,7 @@ setmaps:    setmaps.o funcdefs.c
        $(CC) $(LDFLAGS) -o setmaps setmaps.o
 
 teachjove.o:   teachjove.c /usr/include/sys/types.h /usr/include/sys/file.h
-       cc -c $(CFLAGS) -DTEACHJOVE=\"$(TEACH-JOVE)\" teachjove.c
+       ${CC} -c $(CFLAGS) -DTEACHJOVE=\"$(TEACH-JOVE)\" teachjove.c
 
 # don't optimize setmaps.c because it produces bad code in some places
 # for some reason
index 5e99347..614363e 100644 (file)
@@ -9,10 +9,10 @@ SRCS= in.c link.c pass2.c sup.c
 OBJS=  in.o link.o pass2.o sup.o 
 
 l11: ${OBJS}
-       cc -o $@ ${SEPFLAG} ${OBJS}
+       ${CC} -o $@ ${SEPFLAG} ${OBJS}
 
 obint: obint.o in.o sup.o
-       cc -o $@ ${SEPFLAG} obint.o in.o sup.o
+       ${CC} -o $@ ${SEPFLAG} obint.o in.o sup.o
 
 install: l11
        ${INSTALL} -s l11 ${DESTDIR}/usr/new/l11
index ca36734..9f7693c 100644 (file)
@@ -12,7 +12,7 @@ SEPFLAG=-i
 all: la la.0
 
 la: la.o
-       cc ${CFLAGS} ${SEPFLAG} la.o -o la
+       ${CC} ${CFLAGS} ${SEPFLAG} la.o -o la
 
 install: la la.0
        ${INSTALL} -s la ${DESTDIR}/usr/new/la
index 2fef484..5aa8679 100644 (file)
@@ -36,7 +36,7 @@ m11: ${OBJS}
        mv exec.out m11
 
 macxrf: macxrf.c
-       cc ${SEPFLAG} -O -w -o macxrf macxrf.c
+       ${CC} ${SEPFLAG} -O -w -o macxrf macxrf.c
 
 install: all m11.0
        ${INSTALL} -s m11 ${DESTDIR}/usr/new/m11
index 079d438..7a133b9 100644 (file)
@@ -34,7 +34,7 @@ FILES=Makefile nntpxmit.1 ${SRC} ${HFILES} shlock.c nntpsend.csh nntpsend.sh nnt
 all: nntpxmit shlock
 
 nntpxmit: ${OBJ}
-       cc -o $@ ${OBJ} ${LIBS}
+       ${CC} -o $@ ${OBJ} ${LIBS}
        @ls -las $@ ; size $@
 
 nntpxmit.o: nntpxmit.c nntpxmit.h llist.h
@@ -46,7 +46,7 @@ remote.o: remote.c nntpxmit.h get_tcp_conn.h
 llist.o: llist.c llist.h
 
 shlock: shlock.c
-       cc ${CFLAGS} -o shlock shlock.c
+       ${CC} ${CFLAGS} -o shlock shlock.c
 
 install: nntpxmit shlock
        cp nntpxmit shlock ${DESTDIR}
index b3d2aa0..27c3c25 100644 (file)
@@ -105,7 +105,7 @@ clean:
        rm -f Make.errs
 
 sizes:
-       size $(CMDS)
+       ${SIZE} $(CMDS)
 
 help:
        @echo type make base as su to make notes directories.
index 9cde932..d0bc8ae 100644 (file)
@@ -166,7 +166,7 @@ ci.lint:
        $(LINT) $(CISRC)
        
 ci:    $(CIFILES)
-       cc $(LDFLAGS) -o ci $(CIFILES)
+       ${CC} $(LDFLAGS) -o ci $(CIFILES)
 
 COFILES = co.o rcslex.o rcssyn.o rcsgen.o rcsedit.o rcskeys.o rcsrev.o rcsutil.o rcsfnms.o partime.o maketime.o
 
@@ -174,10 +174,10 @@ COSRC = co.c rcslex.c rcssyn.c rcsgen.c rcsedit.c rcskeys.c rcsrev.c rcsutil.c r
 co.lint:
        $(LINT) $(COSRC)
 co:    $(COFILES)
-       cc $(LDFLAGS) -o co $(COFILES)
+       ${CC} $(LDFLAGS) -o co $(COFILES)
 
 ident: ident.o rcskeys.o
-       cc $(LDFLAGS) -o ident ident.o rcskeys.o
+       ${CC} $(LDFLAGS) -o ident ident.o rcskeys.o
 
 ident.lint:
        $(LINT) ident.c rcskeys.c
@@ -191,7 +191,7 @@ merge:      merge.sh
 RLOG = rlog.o rcslex.o rcssyn.o rcsrev.o rcsutil.o partime.o maketime.o rcsfnms.o
 RLOGSRC = rlog.c rcslex.c rcssyn.c rcsrev.c rcsutil.c partime.c maketime.c rcsfnms.c
 rlog:  $(RLOG)
-       cc $(LDFLAGS) -o rlog $(RLOG)
+       ${CC} $(LDFLAGS) -o rlog $(RLOG)
 
 rlog.lint:
        $(LINT) $(RLOGSRC)
@@ -200,7 +200,7 @@ RCS = rcs.o rcslex.o rcssyn.o rcsrev.o rcsutil.o rcsgen.o rcsedit.o rcskeys.o rc
 
 RCSSRC = rcs.c rcslex.c rcssyn.c rcsrev.c rcsutil.c rcsgen.c rcsedit.c rcskeys.c rcsfnms.c
 rcs:   $(RCS)
-       cc $(LDFLAGS) -o rcs $(RCS)
+       ${CC} $(LDFLAGS) -o rcs $(RCS)
 
 rcs.lint:
        $(LINT) $(RCSSRC)
@@ -214,19 +214,19 @@ RCSDIFF = rcsdiff.o rcsutil.o rcsfnms.o rcsrev.o rcssyn.o rcslex.o
 RCSDIFFSRC = rcsdiff.c rcsutil.c rcsfnms.c rcsrev.c rcssyn.c rcslex.c
 
 rcsdiff:       $(RCSDIFF)
-       cc $(LDFLAGS) -o rcsdiff $(RCSDIFF)
+       ${CC} $(LDFLAGS) -o rcsdiff $(RCSDIFF)
 
 rcsdiff.lint:
        $(LINT) $(RCSDIFFSRC)
 RCSMERGE = rcsmerge.o rcsutil.o rcsfnms.o rcsrev.o rcssyn.o rcslex.o
 RCSMERGESRC = rcsmerge.c rcsutil.c rcsfnms.c rcsrev.c rcssyn.c rcslex.c
 rcsmerge:      $(RCSMERGE)
-       cc $(LDFLAGS) -o rcsmerge $(RCSMERGE)
+       ${CC} $(LDFLAGS) -o rcsmerge $(RCSMERGE)
 rcsmerge.lint:
        $(LINT) $(RCSMERGESRC)
        
 snoop: snoop.o
-       cc $(LDFLAGS) -o snoop snoop.o
+       ${CC} $(LDFLAGS) -o snoop snoop.o
 snoop.lint:
        $(LINT) snoop.c
 
@@ -234,7 +234,7 @@ SCCSTORCS= sccstorcs.o
 SCCSTORCSSRC = sccstorcs.c
 
 sccstorcs:     $(SCCSTORCS)
-       cc $(LDFLAGS) -o $@ $(SCCSTORCS)
+       ${CC} $(LDFLAGS) -o $@ $(SCCSTORCS)
 
 sccstorcs.lint:
        $(LINT) $(SCCSTORCSSRC)
index 258fc09..50515af 100644 (file)
@@ -14,7 +14,7 @@ MANSRC=       vmsbackup.1
 
 #
 vmsbackup: vmsbackup.o match.o
-       cc $(LDFLAGS) -o vmsbackup vmsbackup.o match.o $(LIBS)
+       ${CC} $(LDFLAGS) -o vmsbackup vmsbackup.o match.o $(LIBS)
 
 install: vmsbackup $(MAN)
        ${INSTALL} -m $(MODE) -o $(OWNER) -s vmsbackup ${DESTDIR}$(BINDIR)      
diff --git a/o.sh b/o.sh
index 656435d..bda342b 100755 (executable)
--- a/o.sh
+++ b/o.sh
@@ -5,6 +5,7 @@ ROOT="`pwd`"
 # set up to build target
 AR="$ROOT/cross/bin/ar"
 AS="$ROOT/cross/bin/as"
+C2="$ROOT/cross/lib/c2"
 CC="$ROOT/cross/bin/cc"
 CPP="$ROOT/cross/lib/cpp"
 LD="$ROOT/cross/bin/ld"
@@ -33,24 +34,24 @@ YACC="$ROOT/cross/usr/bin/yacc"
 #
 ## clean leftover files from other architecture
 #make clean
-
-echo
-echo "making depend"
-echo
-
-# do /usr/include, depend needs it
+#
+#echo
+#echo "making depend"
+#echo
+#
+## do /usr/include, depend needs it
 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" STAGEDIR="$ROOT/stage" depend
-
+#
+## do depend, it doesn't need libs
+#make CC="$CC" MKDEP="$MKDEP" STAGEDIR="$ROOT/stage" depend
+#
 #echo
 #echo "making libraries"
 #echo
 #
 ## build libraries, except lib/libkern and usr.lib/libU77
-#make -C lib/libc AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage"
-#make -C usr.lib AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage" SUBDIR="lib2648 libF77 libI77 libcurses libdbm libln libom libmp libplot libtermlib liby libutil libvmf liberrlst libident libstubs"
+#make -C lib/libc AR="$AR" AS="$AS" C2="$C2" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage"
+#make -C usr.lib AR="$AR" AS="$AS" C2="$C2" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage" SUBDIR="lib2648 libF77 libI77 libcurses libdbm libln libom libmp libplot libtermlib liby libutil libvmf liberrlst libident libstubs"
 #
 ## install libraries, except lib/libkern and usr.lib/libU77
 #make -C lib/libc INSTALL="$INSTALL" RANLIB="$RANLIB" DESTDIR="$ROOT/stage" install
@@ -61,8 +62,8 @@ echo "making"
 echo
 
 # build everything, except libraries and new
-make -C lib AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage" SUBDIR="ccom c2 cpp"
-make AR="$AR" AS="$AS" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage" XXXLIBDIR= XXXSRCDIR="share bin sbin etc games libexec local ucb usr.bin usr.sbin man" XXXSUBDIR="backgammon battlestar boggle btlgammon cribbage fortune hack hangman hunt mille monop pdp phantasia quiz robots sail snake trek warp words" YYYSUBDIR="chess"
+make -C lib AR="$AR" AS="$AS" C2="$C2" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage" SUBDIR="ccom c2 cpp"
+make AR="$AR" AS="$AS" C2="$C2" CC="$CC" CPP="$CPP" HOSTCC="$HOSTCC" HOSTSEPFLAG= LD="$LD" LEX="$LEX" LORDER="$LORDER" MANROFF="$MANROFF" MKSTR="$MKSTR" RANLIB="$RANLIB" UNIFDEF="$UNIFDEF" SIZE="$SIZE" XSTR="$XSTR" YACC="$YACC" LOCALE="LC_ALL=C" STAGEDIR="$ROOT/stage" XXXLIBDIR= XXXSRCDIR="share bin sbin etc games libexec local ucb usr.bin usr.sbin man" XXXSUBDIR="backgammon battlestar boggle btlgammon cribbage fortune hack hangman hunt mille monop pdp phantasia quiz robots sail snake trek warp words" YYYSUBDIR="chess"
 
 echo
 echo "making install"
index 2377aec..8d099bc 100644 (file)
@@ -27,7 +27,7 @@ ${SUBDIR}: /tmp
        cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG}
 
 ${STD}:
-       cc ${CFLAGS} ${SEPFLAG} -o $@ $@.c
+       ${CC} ${CFLAGS} ${SEPFLAG} -o $@ $@.c
 
 # Files listed in ${NSTD} have explicit make lines given below.
 
index 15c63d1..25b1289 100644 (file)
@@ -11,7 +11,7 @@ SRCS= arcv.c
 OBJS=  arcv.o
 
 all: ${OBJS}
-       cc ${SEPFLAG} ${OBJS} -o arcv
+       ${CC} ${SEPFLAG} ${OBJS} -o arcv
 
 install:
        ${INSTALL} -s arcv ${DESTDIR}/usr/old/arcv
index bb9ebb2..7509b67 100644 (file)
@@ -12,7 +12,7 @@ SEPFLAG=-i
 all: checkobj checkobj.0
 
 checkobj: checkobj.o
-       cc ${CFLAGS} ${SEPFLAG} checkobj.o -o checkobj
+       ${CC} ${CFLAGS} ${SEPFLAG} checkobj.o -o checkobj
 
 install: checkobj checkobj.0
        ${INSTALL} -s checkobj ${DESTDIR}/usr/new/checkobj
index 1ede8e0..c9cdc59 100644 (file)
@@ -24,10 +24,10 @@ OBJS=       dumpitime.o dumpmain.o dumpoptr.o dumptape.o dumptraverse.o unctime.o
 all: dump dumpdir
 
 dump: ${OBJS}
-       cc ${CFLAGS} ${SEPFLAG} ${OBJS} -o dump
+       ${CC} ${CFLAGS} ${SEPFLAG} ${OBJS} -o dump
 
 dumpdir: dumpdir.c
-       cc ${CFLAGS} ${SEPFLAG} dumpdir.c -o dumpdir
+       ${CC} ${CFLAGS} ${SEPFLAG} dumpdir.c -o dumpdir
 
 install:
        ${INSTALL} -s dump ${DESTDIR}/sbin/dump
index 36ac427..10bcab5 100644 (file)
@@ -12,8 +12,8 @@ SEPFLAG=-i
 all: oldassn oldassn.0
 
 oldassn: oldassn.l
-       lex oldassn.l
-       cc ${CFLAGS} ${SEPFLAG} -w -o oldassn lex.yy.c
+       ${LEX} oldassn.l
+       ${CC} ${CFLAGS} ${SEPFLAG} -w -o oldassn lex.yy.c
        rm lex.yy.c
 
 install: oldassn oldassn.0
index 6abda97..72788b8 100644 (file)
@@ -12,7 +12,7 @@ SEPFLAG=-i
 all: shortc shortc.0
 
 shortc:        shortc.o
-       cc ${CFLAGS} ${SEPFLAG} shortc.o -o shortc
+       ${CC} ${CFLAGS} ${SEPFLAG} shortc.o -o shortc
 
 install: shortc shortc.0
        ${INSTALL} -s shortc ${DESTDIR}/usr/new/shortc
index 0cce8de..05ecb07 100644 (file)
@@ -5,15 +5,15 @@ CFLAGS=-O
 uudiff: lenrem locpart printable run1 trim
 
 lenrem: lenrem.c
-       cc $(CFLAGS) lenrem.c -o lenrem
+       ${CC} $(CFLAGS) lenrem.c -o lenrem
 locpart: locpart.c
-       cc $(CFLAGS) locpart.c -o locpart
+       ${CC} $(CFLAGS) locpart.c -o locpart
 printable: printable.c
-       cc $(CFLAGS) printable.c -o printable
+       ${CC} $(CFLAGS) printable.c -o printable
 run1: run1.c
-       cc $(CFLAGS) run1.c -o run1
+       ${CC} $(CFLAGS) run1.c -o run1
 trim: trim.c
-       cc $(CFLAGS) trim.c -o trim
+       ${CC} $(CFLAGS) trim.c -o trim
 
 install:
        : stuff lives here!
index 6a2a4c3..5b1c1c4 100644 (file)
@@ -11,7 +11,7 @@ SRCS= v6.c
 OBJS=  v6.o
 
 all: ${OBJS} inode.h filsys.h
-       cc ${SEPFLAG} ${OBJS} -o v6
+       ${CC} ${SEPFLAG} ${OBJS} -o v6
 
 install:
        ${INSTALL} -s v6 ${DESTDIR}/usr/old/v6
index 919c0a6..53c7aa4 100644 (file)
@@ -107,7 +107,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
-       size unix
+       ${SIZE} unix
        @echo Compacting symbol table
        -symcompact unix
        @echo Compacting strings table
@@ -119,7 +119,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
-       size netnix
+       ${SIZE} netnix
        @echo Compacting symbol table
        -symcompact netnix
        @echo Compacting strings table - this will take a few minutes
index 094dd8c..b923fae 100644 (file)
@@ -120,7 +120,7 @@ sys pdp pdpuba pdpmba:
 
 checksys: ../conf/checksys.c ../../lib/libc/gen/nlist.c ../../lib/libc/pdp/gen/nsym.c
 #      ${CC} ${CFLAGS} -o $@ ../conf/checksys.c
-       cc -I. -Iinclude -o $@ ../conf/checksys.c ../../lib/libc/gen/nlist.c ../../lib/libc/pdp/gen/nsym.c
+       ${CC} -I. -Iinclude -o $@ ../conf/checksys.c ../../lib/libc/gen/nlist.c ../../lib/libc/pdp/gen/nsym.c
 
 clean:
        rm -f unix core mklog *.o assym.h csym.h genassym gencsym checksys
index e272b47..e8c9e70 100755 (executable)
@@ -11,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" 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 I="$ROOT/stage/usr/include" CC="$HOSTCC" MANROFF="$MANROFF" MKDEP="$MKDEP" depend
+make I="$ROOT/stage/usr/include" AS="$AS" CC="$HOSTCC" MANROFF="$MANROFF" CPP="$CPP" LD="$LD" SIZE="$SIZE" STRCOMPACT="$STRCOMPACT" SYMCOMPACT="$SYMCOMPACT" SYMORDER="$SYMORDER"
 make DESTDIR="$ROOT/stage" install
index bad7a50..19c0f9f 100644 (file)
@@ -107,7 +107,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
-       size unix
+       ${SIZE} unix
        @echo Compacting symbol table
        -symcompact unix
        @echo Compacting strings table
@@ -119,7 +119,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
-       size netnix
+       ${SIZE} netnix
        @echo Compacting symbol table
        -symcompact netnix
        @echo Compacting strings table - this will take a few minutes
index 177408c..9e907a5 100644 (file)
 #define _EXEC_
 
 #ifdef pdp11
-#define INT int
-#define UNSIGNED_INT unsigned int
+#define _INT int
+#define _UNSIGNED_INT unsigned int
 #else
 #include <stdint.h>
-#define INT int16_t
-#define UNSIGNED_INT uint16_t
+#define _INT int16_t
+#define _UNSIGNED_INT uint16_t
 #endif
 
 /*
  * Header prepended to each a.out file.
  */
 struct exec {
-       INT     a_magic;        /* magic number */
-UNSIGNED_INT   a_text;         /* size of text segment */
-UNSIGNED_INT   a_data;         /* size of initialized data */
-UNSIGNED_INT   a_bss;          /* size of uninitialized data */
-UNSIGNED_INT   a_syms;         /* size of symbol table */
-UNSIGNED_INT   a_entry;        /* entry point */
-UNSIGNED_INT   a_unused;       /* not used */
-UNSIGNED_INT   a_flag;         /* relocation info stripped */
+       _INT    a_magic;        /* magic number */
+_UNSIGNED_INT  a_text;         /* size of text segment */
+_UNSIGNED_INT  a_data;         /* size of initialized data */
+_UNSIGNED_INT  a_bss;          /* size of uninitialized data */
+_UNSIGNED_INT  a_syms;         /* size of symbol table */
+_UNSIGNED_INT  a_entry;        /* entry point */
+_UNSIGNED_INT  a_unused;       /* not used */
+_UNSIGNED_INT  a_flag;         /* relocation info stripped */
 };
 
 #define        NOVL    15              /* number of overlays */
 struct ovlhdr {
-       INT     max_ovl;        /* maximum overlay size */
-UNSIGNED_INT   ov_siz[NOVL];   /* size of i'th overlay */
+       _INT    max_ovl;        /* maximum overlay size */
+_UNSIGNED_INT  ov_siz[NOVL];   /* size of i'th overlay */
 };
 
 /*
@@ -53,7 +53,7 @@ struct        xexec {
 #define        A_MAGIC5        0430    /* auto-overlay (nonseparate) */
 #define        A_MAGIC6        0431    /* auto-overlay (separate) */
 
-#undef INT
-#undef UNSIGNED_INT
+#undef _INT
+#undef _UNSIGNED_INT
 
 #endif
index 419289e..b85dfef 100644 (file)
@@ -14,7 +14,7 @@ all: ${ALL}
 ${ALL}:
        /lib/cpp -E $*.s | sed -e 's;^#;/;' | as -o a.out
        nm -u a.out
-       size a.out
+       ${SIZE} a.out
        strip a.out
        dd if=a.out of=b.out bs=16 skip=1
        dd if=b.out of=$@ conv=sync
index 5199f9c..a2ec4b8 100644 (file)
@@ -51,7 +51,7 @@ ALL=  mtboot boot disklabel mkfs restor icheck maketape makesimtape toyset
 all: ${ALL}
 
 .c.o:
-       cc ${CFLAGS} -c $*.c
+       ${CC} ${CFLAGS} -c $*.c
 
 .s.o:
        /lib/cpp -P ${DEFS} $< | as -u -V -o $@
@@ -113,13 +113,13 @@ libsa.a: ${DRIVERS}
        ${RANLIB} $@
 
 mkfs.o: ${MKFS}
-       cc ${CFLAGS} -c ${MKFS}
+       ${CC} ${CFLAGS} -c ${MKFS}
 
 restor.o: ${RESTOR}
-       cc ${CFLAGS} -c ${RESTOR}
+       ${CC} ${CFLAGS} -c ${RESTOR}
 
 icheck.o: ${ICHECK}
-       cc ${CFLAGS} -c ${ICHECK}
+       ${CC} ${CFLAGS} -c ${ICHECK}
 
 mtboot: mtboot.o
        strip $@.o
@@ -142,10 +142,10 @@ disklabel: srt0.o conf.o libsa.a disklabel.o displaylab.o
        ${LD} -X -o $@ srt0.o conf.o $@.o displaylab.o libsa.a -lc
 
 maketape: maketape.c
-       cc -O -o $@ maketape.c
+       ${CC} -O -o $@ maketape.c
 
 makesimtape: makesimtape.c
-       cc -O -o $@ 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
index c5e2c3c..1d0d626 100755 (executable)
--- a/ucb/n.sh
+++ b/ucb/n.sh
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= mkstr unifdef xstr && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= mkstr unifdef xstr && \
 $INSTALL mkstr unifdef xstr "$ROOT/cross/usr/ucb"
index e20a73e..9d2905d 100644 (file)
@@ -120,7 +120,7 @@ print :
 
 yy.h:          y.tab.h
 Version.o:     Version.c
-               cc -c Version.c
+               ${CC} -c Version.c
 TRdata.o:      whoami 0.h
 ato.o:         0.h whoami ato.c
 call.o:                whoami 0.h tree.h opcode.h call.c
index 5d1b161..61b521f 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= CROSSPREFIX="\\\"$ROOT/cross\\\"" LOCALESTR="\\\"LC_ALL=C \\\"" && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= CROSSPREFIX="\\\"$ROOT/cross\\\"" LOCALESTR="\\\"LC_ALL=C \\\"" && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 4f1e0f7..49ba749 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 6a601dd..440b712 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 805e43b..0939372 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/ucb"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index 6ccc50b..7fda0a2 100644 (file)
@@ -20,11 +20,11 @@ SRCS = \
 
 DICT= -DDICT=\"/usr/share/misc/dict.d\"
 
-all: diction style
+all: dprog style
 
 style: style1 style2 style3
 
-install: style diction style.sh diction.sh explain.sh dict.d explain.d
+install: style dprog 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
@@ -41,36 +41,35 @@ clean:
        rm -f *.o style1 style2 style3 dprog
 
 style3: prtlex.o pscan.o outp.o
-       cc ${SEPFLAG} prtlex.o pscan.o outp.o -ll  -o style3
+       ${CC} ${SEPFLAG} prtlex.o pscan.o outp.o -ll  -o style3
 prtlex.c: part.l
-       lex part.l
+       ${LEX} part.l
        mv lex.yy.c prtlex.c
 prtlex.o: names.h prtlex.c conp.h style.h names.h
-       cc -c -O prtlex.c
+       ${CC} -c -O prtlex.c
 pscan.o: names.h conp.h pscan.c
-       cc -c -O pscan.c
+       ${CC} -c -O pscan.c
 outp.o: names.h conp.h style.h outp.c
-       cc -c -O outp.c
+       ${CC} -c -O outp.c
 
 style1: wdslex.o
-       cc ${SEPFLAG} wdslex.o -ll  -o style1
+       ${CC} ${SEPFLAG} wdslex.o -ll  -o style1
 wdslex.o: wdslex.c nhash.c dict.c ydict.c names.h abbrev.c
-       cc -c wdslex.c
+       ${CC} -c wdslex.c
 wdslex.c: nwords.l
-       lex nwords.l
+       ${LEX} nwords.l
        mv lex.yy.c wdslex.c
 
 style2: endlex.o
-       cc ${SEPFLAG} endlex.o -ll  -o style2
+       ${CC} ${SEPFLAG} endlex.o -ll  -o style2
 endlex.o: names.h endlex.c ehash.c edict.c
-       cc -c endlex.c
+       ${CC} -c endlex.c
 endlex.c: end.l
-       lex end.l
+       ${LEX} end.l
        mv lex.yy.c endlex.c
 
-diction: dprog
 dprog: diction.c
-       cc ${SEPFLAG} -O $(DICT) diction.c -o dprog
+       ${CC} ${SEPFLAG} -O $(DICT) diction.c -o dprog
 
 srcs:  sources
 
index 623fe03..08bcdae 100644 (file)
@@ -6,7 +6,7 @@ SEPFLAG= -i
 DESTDIR=
 
 diff3: diff3.o
-       cc ${SEPFLAG} -o diff3 diff3.o
+       ${CC} ${SEPFLAG} -o diff3 diff3.o
 
 install: diff3
        ${INSTALL} -s -m 755 diff3 $(DESTDIR)/usr/libexec
index 558b992..2fd40c7 100644 (file)
@@ -14,12 +14,12 @@ FILES = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \
  pile.o shift.o size.o sqrt.o text.o
 
 eqn:   $(FILES)
-       cc $(CFLAGS) ${SEPFLAG} $(FILES) -o eqn
+       ${CC} $(CFLAGS) ${SEPFLAG} $(FILES) -o eqn
 
 e.c:   e.def
 
 e.def: e.y
-       yacc -d e.y
+       ${YACC} -d e.y
        mv y.tab.c e.c
        mv y.tab.h e.def
 
index 4bc8b17..5b5b3a3 100644 (file)
@@ -6,7 +6,7 @@ INSTALL=install
 #      1996/10/25 - 2.11BSD
 #
 
-AS=            as -V
+#AS=           as -V
 C2=            /lib/c2
 LD=            ld
 STRINGS=       f77_strings
@@ -27,7 +27,7 @@ all:          f77 f77pass1
 
 f77:           driver.c pdp11x.c
                ${CC} ${SEPFLAG} ${CFLAGS} driver.c pdp11x.c -o f77
-               @size f77
+               @${SIZE} f77
 
 f77pass1:      ${PASS1OBJECTS}
                -if [ X${SEPFLAG} = X-i ]; then \
@@ -47,21 +47,21 @@ f77pass1:   ${PASS1OBJECTS}
                        -Z putdmr.o pdp11.o pdp11x.o \
                        -Y misc.o error.o put.o -lc; \
                fi
-               @size f77pass1
+               @${SIZE} f77pass1
 
 # If non-separate I&D load, take certain data tables out of data space and
 # put them in text space (warning-- this doesn't work except with
 # special cases)
 
 gram.o:                gram.c
-               mkstr - f77_strings xx gram.c
+               ${MKSTR} - f77_strings xx gram.c
                ${CC} -S ${CFLAGS} xxgram.c 
                mv xxgram.s gram.s
 #      Eliminate yacc data structures
                -if [ X${SEPFLAG} = X-n ]; then ed - gram.s < :gram.fix; \
                        else :; fi
                rm xxgram.c
-               ${AS} -u -o gram.o gram.s
+               ${AS} -V -u -o gram.o gram.s
                rm gram.s
 
 gram.c:                gram.head gram.dcl gram.expr gram.exec gram.io tokdefs
@@ -73,12 +73,12 @@ gram.c:             gram.head gram.dcl gram.expr gram.exec gram.io tokdefs
 
 .c.o:
 #      Remove error strings
-               mkstr - f77_strings xx $*.c
+               ${MKSTR} - f77_strings xx $*.c
                ${CC} -S ${CFLAGS} xx$*.c
 #      Move switch code to text space
                -if [ X${SEPFLAG} = X-n ]; \
                        then ed - xx$*.s < :rofix; else :; fi
-               ${C2} xx$*.s | ${AS} -u -o $*.o
+               ${C2} xx$*.s | ${AS} -V -u -o $*.o
                rm xx$*.c xx$*.s
 
 driver.o:
index bb097ae..f9268ea 100644 (file)
@@ -17,13 +17,13 @@ SRCS=       find.c bigram.c code.c
 all: ${PROG} ${LIBS}
 
 find: find.o
-       cc ${SEPFLAG} ${CFLAGS} -o find find.o
+       ${CC} ${SEPFLAG} ${CFLAGS} -o find find.o
 
 bigram: bigram.o
-       cc ${SEPFLAG} ${CFLAGS} -o bigram bigram.o
+       ${CC} ${SEPFLAG} ${CFLAGS} -o bigram bigram.o
 
 code: code.o
-       cc ${SEPFLAG} ${CFLAGS} -o code code.o
+       ${CC} ${SEPFLAG} ${CFLAGS} -o code code.o
 
 install: ${PROG} ${LIBS}
        ${INSTALL} -s -m 755 ${PROG} ${DESTDIR}/usr/bin/${PROG}
index 01a79ed..a01206c 100644 (file)
@@ -15,13 +15,13 @@ smallex:
 y.tab.c: parser.y
        ${YACC} parser.y
 lmain.o: lmain.c ldefs.h once.c
-#      cc -c -O lmain.c
+#      ${CC} -c -O lmain.c
 sub1.o: sub1.c ldefs.h
-#      cc -c -O sub1.c
+#      ${CC} -c -O sub1.c
 sub2.o: sub2.c ldefs.h
-#      cc -c -O sub2.c
+#      ${CC} -c -O sub2.c
 header.o: header.c ldefs.h
-#      cc -c -O header.c
+#      ${CC} -c -O header.c
 
 install: all
        -mkdir -p ${DESTDIR}/usr/libdata/lex
index d0db9be..9da3af7 100644 (file)
@@ -3,7 +3,10 @@ static char sccsid[] = "@(#)header.c   4.1 (Berkeley) 8/11/83";
 #endif
 # include "ldefs.h"
 void phead1() {
-       ratfor ? rhd1() : chd1();
+       if (ratfor)
+               rhd1();
+       else
+               chd1();
 }
 
 void chd1() {
@@ -79,7 +82,10 @@ void chd2() {
 
 void ptail() {
        if(!pflag)
-               ratfor ? rtail() : ctail();
+               if (ratfor)
+                       rtail();
+               else
+                       ctail();
        pflag = 1;
 }
 
index e01b34e..c82e651 100644 (file)
@@ -198,7 +198,7 @@ void free3core() {
 
 char *myalloc(a, b) int a; int b; {
        register char *i;
-       i = calloc(a, b);
+       i = (char *)calloc(a, b);
        if(i==0)
                warning("OOPS - calloc returns a 0");
        else if(i == (char *)-1){
index 851b379..91c25fd 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/bin"
-make CC="$CC" MANROFF="$MANROFF" CROSSPREFIX="\\\"$ROOT/cross\\\"" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" CROSSPREFIX="\\\"$ROOT/cross\\\"" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index f2be0c3..08389e3 100644 (file)
@@ -2,8 +2,9 @@ INSTALL=install
 #
 #      @(#)Makefile    1.15    (2.11BSD GTE)   1996/10/23
 #
-M=/usr/src/lib/mip
-P=/usr/src/lib/pcc
+M=../../lib/mip
+P=../../lib/pcc
+PCCH=../../include/pcc.h
 
 XSTR=  /usr/ucb/xstr
 MKSTR= /usr/ucb/mkstr
@@ -83,13 +84,13 @@ cgram.c: cgram.y pcctokens
 
 GREP=  egrep
 
-pcclocal.h: $P/localdefs.h /usr/include/pcc.h
+pcclocal.h: $P/localdefs.h ${PCCH}
        rm -f pcclocal.h
-       cat /usr/include/pcc.h $P/localdefs.h | $(GREP) '^#[    ]*(define[      ][      ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | sed -e 's/PCC[A-Z]*_//' > pcclocal.h 
+       cat ${PCCH} $P/localdefs.h | $(GREP) '^#[       ]*(define[      ][      ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | sed -e 's/PCC[A-Z]*_//' > pcclocal.h 
 
-pcctokens: $P/localdefs.h /usr/include/pcc.h
+pcctokens: $P/localdefs.h ${PCCH}
        rm -f pcctokens
-       cat /usr/include/pcc.h $P/localdefs.h | $(GREP) '^#[    ]*define[       ][      ]*PCC_' | sed -e 's/^#[         ]*define[       ][      ]*PCC_/%term    /' > pcctokens
+       cat ${PCCH} $P/localdefs.h | $(GREP) '^#[       ]*define[       ][      ]*PCC_' | sed -e 's/^#[         ]*define[       ][      ]*PCC_/%term    /' > pcctokens
 
 lint.o: manifest.h macdefs.h pass1.h lmanifest.h
 
diff --git a/usr.bin/lint/o.sh b/usr.bin/lint/o.sh
new file mode 100755 (executable)
index 0000000..d488b8b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+ROOT="`pwd |sed -e 's/\/usr.bin\/lint$//'`"
+CC="$ROOT/cross/bin/cc"
+INSTALL="$ROOT/install.sh --strip-program=\"$ROOT/cross/bin/strip\""
+MKSTR="$ROOT/cross/usr/ucb/mkstr"
+XSTR="$ROOT/cross/usr/ucb/xstr"
+YACC="$ROOT/cross/usr/bin/yacc"
+mkdir --parents "$ROOT/stage/lib"
+make CC="$CC" MKSTR="$MKSTR" XSTR="$XSTR" YACC="$YACC" && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/stage" install
index 18910ad..50b1fa2 100644 (file)
@@ -11,7 +11,7 @@ OBJS= eval.o expr.o look.o main.o misc.o
 all:   m4 tags
 
 m4:    ${OBJS}
-       cc ${SEPFLAG} -o m4 ${OBJS}
+       ${CC} ${SEPFLAG} -o m4 ${OBJS}
 
 install: all
        ${INSTALL} -s -m 755 m4 ${DESTDIR}/usr/bin/m4
index 06fffdf..01bccc3 100644 (file)
@@ -14,12 +14,12 @@ FILES = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \
  pile.o shift.o size.o sqrt.o text.o
 
 neqn:  $(FILES)
-       cc ${SEPFLAG} $(CFLAGS) $(FILES) -o neqn
+       ${CC} ${SEPFLAG} $(CFLAGS) $(FILES) -o neqn
 
 e.c:   e.def
 
 e.def: ../eqn/e.y
-       yacc -d ../eqn/e.y
+       ${YACC} -d ../eqn/e.y
        mv y.tab.c e.c
        mv y.tab.h e.def
 
index 37c0b0f..d74c283 100644 (file)
@@ -20,7 +20,7 @@ OBJS= patch.o pch.o inp.o util.o version.o
        ${MANROFF} $*.man > $*.0
 
 patch: ${OBJS} patch.0
-       cc ${SEPFLAG} ${OBJS} -o patch
+       ${CC} ${SEPFLAG} ${OBJS} -o patch
 
 install: patch patch.0
        ${INSTALL} -s patch ${DESTDIR}/usr/bin
index 20c5707..aac2a01 100644 (file)
@@ -9,52 +9,52 @@ ALL=  tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \
 all:   ${ALL} debug
 
 tek:   driver.o
-       cc ${SEPFLAG} -o tek  driver.o -l4014 -lm
+       ${CC} ${SEPFLAG} -o tek  driver.o -l4014 -lm
 
 t4013: driver.o
-       cc ${SEPFLAG} -o t4013  driver.o -l4013 -lm
+       ${CC} ${SEPFLAG} -o t4013  driver.o -l4013 -lm
 
 t300:  driver.o 
-       cc ${SEPFLAG} -o t300 driver.o -l300 -lm
+       ${CC} ${SEPFLAG} -o t300 driver.o -l300 -lm
 
 t300s: driver.o 
-       cc ${SEPFLAG} -o t300s driver.o -l300s -lm
+       ${CC} ${SEPFLAG} -o t300s driver.o -l300s -lm
 
 t450:  driver.o 
-       cc ${SEPFLAG} -o t450 driver.o -l450 -lm
+       ${CC} ${SEPFLAG} -o t450 driver.o -l450 -lm
 
 aedplot: driver.o
-       cc ${SEPFLAG} -o aedplot driver.o -lplotaed
+       ${CC} ${SEPFLAG} -o aedplot driver.o -lplotaed
 
 bgplot: driver.o
-       cc ${SEPFLAG} -o bgplot driver.o -lplotbg -lm
+       ${CC} ${SEPFLAG} -o bgplot driver.o -lplotbg -lm
 
 crtplot: crtdriver.o crtplot.o
-       cc ${SEPFLAG} -o crtplot crtdriver.o crtplot.o -lcurses -ltermcap -lm
+       ${CC} ${SEPFLAG} -o crtplot crtdriver.o crtplot.o -lcurses -ltermcap -lm
 
 dumbplot: driver.o
-       cc ${SEPFLAG} -o dumbplot driver.o -lplotdumb -ltermcap -lm
+       ${CC} ${SEPFLAG} -o dumbplot driver.o -lplotdumb -ltermcap -lm
 
 gigiplot: driver.o
-       cc ${SEPFLAG} -o gigiplot driver.o -lplotgigi -lm
+       ${CC} ${SEPFLAG} -o gigiplot driver.o -lplotgigi -lm
 
 hpplot: driver.o
-       cc ${SEPFLAG} -o hpplot driver.o -lplot2648 -lm
+       ${CC} ${SEPFLAG} -o hpplot driver.o -lplot2648 -lm
 
 hp7221plot: driver.o
-       cc ${SEPFLAG} -o hp7221plot driver.o -lplot7221 -lm
+       ${CC} ${SEPFLAG} -o hp7221plot driver.o -lplot7221 -lm
 
 implot: driver.o
-       cc ${SEPFLAG} -o implot driver.o -lplotimagen -lm
+       ${CC} ${SEPFLAG} -o implot driver.o -lplotimagen -lm
 
 atoplot: atoplot.o
-       cc ${SEPFLAG} -o atoplot atoplot.o -lplot -lm
+       ${CC} ${SEPFLAG} -o atoplot atoplot.o -lplot -lm
 
 plottoa: plottoa.o
-       cc ${SEPFLAG} -o plottoa plottoa.o
+       ${CC} ${SEPFLAG} -o plottoa plottoa.o
 
 debug: debug.o
-       cc ${SEPFLAG} -o debug debug.o
+       ${CC} ${SEPFLAG} -o debug debug.o
 
 install: all
        -for i in ${ALL}; do \
index 55df7e7..2ca709d 100644 (file)
@@ -9,7 +9,7 @@ prof:   prof.o
        $(CC) $(SEPFLAG) -o prof prof.o $(PLOT)
 
 prof.o: prof.c
-       cc -c $(CFLAGS) $(PLOT) prof.c
+       ${CC} -c $(CFLAGS) $(PLOT) prof.c
 
 install: prof
        ${INSTALL} -s prof $(DESTDIR)/usr/bin
index d6a13bd..1dd5eff 100755 (executable)
@@ -56,7 +56,7 @@ static char sccsid[] = "@(#)build.c   5.3.1 (Berkeley) 5/17/93";
 
 #ifdef pdp11
 #include <sys/types.h>
-#define OFF_T OFF_T
+#define OFF_T off_t
 #else
 #include <stdint.h>
 #define OFF_T int32_t
index 8121938..b857582 100644 (file)
@@ -68,7 +68,7 @@ int tmp() {
 }
 
 void *emalloc(len) int len; {
-       char *p;
+       void *p;
 
        if (!(p = malloc((u_int)len)))
                error(archive);
index 72ea34d..6338d17 100755 (executable)
@@ -4,5 +4,5 @@ HOSTCC="cc -g -Iinclude -Wall -Wno-char-subscripts -Wno-deprecated-declarations
 INSTALL="$ROOT/install.sh --strip-program=/bin/true"
 MANROFF="nroff -man"
 mkdir --parents "$ROOT/cross/usr/bin"
-make CC="$CC" MANROFF="$MANROFF" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index caba742..2929255 100644 (file)
@@ -42,11 +42,11 @@ char copyright[] =
 static char sccsid[] = "@(#)ranlib.c   5.6 (Berkeley) 2/26/91";
 #endif
 
-#include <getopt.h>
 #include <sys/types.h>
 #include <sys/dir.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 #include <archive.h>
 #include "_ranlib.h"
 
index 11a0807..41eb701 100644 (file)
@@ -6,7 +6,7 @@ CFLAGS = -O
 SEPFLAG= -i
 
 ratfor:        r0.o r1.o r2.o rio.o rlook.o rlex.o y.tab.o
-       cc ${SEPFLAG} r*.o y.tab.o -o ratfor
+       ${CC} ${SEPFLAG} r*.o y.tab.o -o ratfor
 
 r0.o:  r.h y.tab.h r0.c
 r1.o:  r.h y.tab.h r1.c
@@ -15,9 +15,9 @@ rio.o:        r.h y.tab.h rio.c
 rlook.o:       r.h y.tab.h rlook.c
 rlex.o:        r.h y.tab.h rlex.c
 y.tab.c:       r.g
-       yacc -d r.g
+       ${YACC} -d r.g
 y.tab.h:       r.g
-       yacc -d r.g
+       ${YACC} -d r.g
 install: ratfor
        ${INSTALL} -s ratfor $(DESTDIR)/usr/bin
 clean:
index 49c4e72..92d69e1 100644 (file)
@@ -8,12 +8,12 @@ SEPFLAG= -i
 all:   mkey inv hunt refer addbib lookbib sortbib
 
 mkey: mkey1.o mkey2.o mkey3.o deliv2.o
-       cc ${SEPFLAG} mkey?.o deliv2.o -o mkey
+       ${CC} ${SEPFLAG} mkey?.o deliv2.o -o mkey
 inv: inv1.o inv2.o inv3.o inv5.o inv6.o deliv2.o
-       cc ${SEPFLAG} inv?.o deliv2.o -o inv
+       ${CC} ${SEPFLAG} inv?.o deliv2.o -o inv
 hunt: hunt1.o hunt2.o hunt3.o hunt5.o hunt6.o hunt7.o glue5.o
 hunt: refer3.o hunt9.o shell.o deliv2.o hunt8.o glue4.o tick.o
-       cc ${SEPFLAG} hunt?.o refer3.o glue5.o glue4.o shell.o deliv2.o tick.o -o hunt
+       ${CC} ${SEPFLAG} hunt?.o refer3.o glue5.o glue4.o shell.o deliv2.o tick.o -o hunt
 
 glue3.o: refer..c
 hunt2.o: refer..c
@@ -28,15 +28,15 @@ refer5.o: refer..c
 refer: glue1.o refer1.o refer2.o refer4.o refer5.o refer6.o mkey3.o
 refer: refer7.o refer8.o hunt2.o hunt3.o deliv2.o hunt5.o hunt6.o hunt8.o
 refer: glue3.o hunt7.o hunt9.o glue2.o glue4.o glue5.o refer0.o shell.o
-       cc ${SEPFLAG} glue?.o refer[01245678].o hunt[2356789].o mkey3.o \
+       ${CC} ${SEPFLAG} glue?.o refer[01245678].o hunt[2356789].o mkey3.o \
                shell.o deliv2.o -o refer
 
 addbib: addbib.o
-       cc ${SEPFLAG} addbib.o -o addbib
+       ${CC} ${SEPFLAG} addbib.o -o addbib
 lookbib: lookbib.o
-       cc ${SEPFLAG} lookbib.o -o lookbib
+       ${CC} ${SEPFLAG} lookbib.o -o lookbib
 sortbib: sortbib.o
-       cc ${SEPFLAG} sortbib.o -o sortbib
+       ${CC} ${SEPFLAG} sortbib.o -o sortbib
 
 install: all /usr/dict/papers
        -mkdir -p ${DESTDIR}/usr/libexec/refer
@@ -57,9 +57,9 @@ clean:
        rm -f refer inv hunt mkey addbib lookbib sortbib *.o
 
 whatabout: what1.o what2.o what3.o what4.o shell.o mkey3.o
-       cc ${SEPFLAG} what?.o shell.o mkey3.o  -o whatabout
+       ${CC} ${SEPFLAG} what?.o shell.o mkey3.o  -o whatabout
 deliv: deliv1.o deliv2.o
-       cc ${SEPFLAG} deliv?.o  -o deliv
+       ${CC} ${SEPFLAG} deliv?.o  -o deliv
 refpart: refer0.o refer1.o refer2.o refer3.o refer4.o refer5.o
 refpart: refer6.o refer7.o refer8.o deliv2.o glue4.o
-       cc ${SEPFLAG} refer?.o deliv2.o glue4.o  -o refpart
+       ${CC} ${SEPFLAG} refer?.o deliv2.o glue4.o  -o refpart
index 35c1a3d..ac96021 100644 (file)
@@ -22,10 +22,10 @@ OBJS=       shar.o traverse.o
 all: shar traverse shar.0 traverse.0
 
 shar: ${OBJS} Makefile
-       cc ${CFLAGS} ${SEPFLAG} -o shar ${OBJS}
+       ${CC} ${CFLAGS} ${SEPFLAG} -o shar ${OBJS}
 
 traverse: traverse.c
-       cc -o traverse -DSTANDALONE traverse.c
+       ${CC} -o traverse -DSTANDALONE traverse.c
 
 lint:
        lint -h ${SRCS}
index b61b9bf..9181b29 100644 (file)
@@ -1,3 +1,5 @@
+HOSTCC=cc
+HOSTSEPFLAG=-i
 INSTALL=install
 #      @(#)Makefile    4.3.1 (2.11BSD) 1996/10/23
 
@@ -19,17 +21,19 @@ clean:
        rm -f *.o spell spellin hlista hlistb hlist hstop spellout
 
 spell: spell.o
-       cc ${SEPFLAG} spell.o -o spell
+       ${CC} ${SEPFLAG} spell.o -o spell
 spellin: spellin.o
-       cc ${SEPFLAG} spellin.o -o spellin
+       ${CC} ${SEPFLAG} spellin.o -o spellin
 spellout: spellout.o
-       cc ${SEPFLAG} spellout.o -o spellout
+       ${CC} ${SEPFLAG} spellout.o -o spellout
 
-hlist: ${STAGEDIR}/usr/dict/words spellin
-       spellin <${STAGEDIR}/usr/dict/words >hlist
-hlista: american local hlist spellin
-       (cat american local)|spellin hlist >hlista
-hlistb: british local hlist spellin
-       (cat british local)|spellin hlist >hlistb
-hstop: stop spellin
-       spellin <stop >hstop
+hlist: ${STAGEDIR}/usr/dict/words hostspellin
+       ./hostspellin <${STAGEDIR}/usr/dict/words >hlist
+hlista: american local hlist hostspellin
+       (cat american local)|./hostspellin hlist >hlista
+hlistb: british local hlist hostspellin
+       (cat british local)|./hostspellin hlist >hlistb
+hstop: stop hostspellin
+       ./hostspellin <stop >hstop
+hostspellin: spellin.c
+       ${HOSTCC} ${HOSTSEPFLAG} -o $@ $<
index a56d415..2608e73 100644 (file)
@@ -1,6 +1,8 @@
 /*     @(#)spell.h     4.1     12/18/82        */
 
+#if 0 /* this doesn't work anymore, it only contains LOCALITIMES now */
 #include <sys/localopts.h>     /* for computer type (NONSEPARATE?) */
+#endif
 #include <stdio.h>
 #include <ctype.h>
 
index 5be8d7b..b012388 100644 (file)
@@ -38,10 +38,10 @@ clean:
        rm -f *.o y.tab.h beauty.c structure beautify
 
 structure: main.o $(0FILES.o) $(1FILES.o) $(2FILES.o) $(3FILES.o) $(4FILES.o)
-       cc ${SEPFLAG} -o structure main.o 0.*.o 1.*.o 2.*.o 3.*.o 4.*.o
+       ${CC} ${SEPFLAG} -o structure main.o 0.*.o 1.*.o 2.*.o 3.*.o 4.*.o
 
 beautify:      beauty.o tree.o lextab.o bdef.o
-       cc ${SEPFLAG} -O beauty.o tree.o lextab.o bdef.o -o beautify -lln
+       ${CC} ${SEPFLAG} -O beauty.o tree.o lextab.o bdef.o -o beautify -lln
 
 lint:
        lint $(0FILES.c) $(1FILES.c) $(2FILES.c) $(3FILES.c) $(4FILES.c) main.c
index 60aa546..f84dc14 100644 (file)
@@ -7,13 +7,10 @@ INSTALL=install
 #
 CFLAGS=         -O
 SEPFLAG= -i
-VPATH= /usr/src/bin/ls
-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
+# VPATH doesn't work as it sees ../../bin/ls/stat_flags.o instead of its own
+#VPATH=        /usr/src/bin/ls
+SRCS=  xinstall.c ../../bin/ls/stat_flags.c
+OBJS=  xinstall.o ../../bin/ls/stat_flags.o
 MAN=   install.0
 MANSRC=        install.1
 
index 29d4b1b..401a66a 100755 (executable)
@@ -5,5 +5,5 @@ 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 CC="$HOSTCC" MANROFF="$MANROFF" CROSSDIR="\\\"$ROOT/cross\\\"" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index f01f1d4..341524a 100644 (file)
 
        /* sizes and limits */
 
+/* Nick changed memory size to reflect that some words allocated are pointers */
 # ifdef HUGE
 # define ACTSIZE 12000
-# define MEMSIZE 24000
+# define MEMSIZE (24000 * sizeof(char *) / sizeof(int))
 # define NSTATES 750
 # define NTERMS 300
 # define NPROD 600
@@ -38,7 +39,7 @@
 
 # ifdef MEDIUM
 # define ACTSIZE 4000
-# define MEMSIZE 5200
+# define MEMSIZE (5200 * sizeof(char *) / sizeof(int))
 # define NSTATES 600
 # define NTERMS 127
 # define NPROD 400
index 2961eb9..53b2b93 100755 (executable)
@@ -5,5 +5,5 @@ 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" CROSSPREFIX="\\\"$ROOT/cross\\\"" SEPFLAG= && \
+make CC="$HOSTCC" MANROFF="$MANROFF" CROSSPREFIX="\\\"$ROOT/cross\\\"" SEPFLAG= && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
diff --git a/usr.bin/yacc/y.h b/usr.bin/yacc/y.h
deleted file mode 100644 (file)
index 2af0a7b..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-#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 287b531..7148bc3 100644 (file)
@@ -350,13 +350,13 @@ $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
 #trapov_.o \
 #trapov_.c \
 #trapov_.o:    trapov_.c
-#              cc -S $(OPTIONS) trapov_.c;
+#              ${CC} -S $(OPTIONS) trapov_.c;
 #              (echo "g/.set   L[0-9][0-9]*,0x0$$/s/0x0/0xf10/"; echo "x") \
 #                      | ex - trapov_.s;
 #              as trapov_.s -o trapov_.o;
 #              mv trapov_.o profiled/trapov_.o
 #              rm trapov_.s
-#              cc -S $(OPTIONS) trapov_.c
+#              ${CC} -S $(OPTIONS) trapov_.c
 #              (echo "g/.set   L[0-9][0-9]*,0x0$$/s/0x0/0xf10/"; echo "x") \
 #                      | ex - trapov_.s
 #              as trapov_.s -o trapov_.o
@@ -374,7 +374,7 @@ $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
 #$(OBJS2):     Usef
 #
 #Usef:         Usef.c
-#              cc -O Usef.c -o Usef
+#              ${CC} -O Usef.c -o Usef
 #
 #.c.o:
 #              $(CC) -p `Usef $*` $(CFLAGS) -c $*.c
index 0ab933f..1d85985 100755 (executable)
@@ -5,5 +5,5 @@ 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" MANROFF="$MANROFF" && \
+make CC="$HOSTCC" MANROFF="$MANROFF" && \
 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install
index fd080be..9d328d8 100644 (file)
@@ -17,7 +17,7 @@ all: mkhosts mkhosts.0
 mkhosts: ${OBJS}
        @echo "Mkhosts only works with the dbm version of the hostent routines."
        @echo "If gethostent() is not in libc, mkhosts isn't installed."
-       -cc ${CFLAGS} -o mkhosts ${OBJS}
+       -${CC} ${CFLAGS} -o mkhosts ${OBJS}
 
 mkhosts.0: ${MANSRC}
        ${MANROFF} ${MANSRC} > ${MAN}
index 43e6b6e..e28bbcc 100644 (file)
@@ -45,13 +45,13 @@ PRT=        sccs prt
        rm -f $*.s _xx.s
 
 sendmail: ${OBJS} Version.o
-       cc ${SEPFLAG} ${COPTS} -o sendmail Version.o ${BASE} \
+       ${CC} ${SEPFLAG} ${COPTS} -o sendmail Version.o ${BASE} \
                -Z ${OVLY1} -Z ${OVLY2} -Z ${OVLY3} -Y -ldbm -lstubs; \
-       size sendmail; ls -l sendmail; ${WHAT} < Version.o
+       ${SIZE} sendmail; ls -l sendmail; ${WHAT} < Version.o
 
 dsendmail: ${OBJS} Version.o
        ${CC} ${COPTS} -o sendmail Version.o ${OBJS} -ldbm -lresolv
-       size sendmail; ls -l sendmail; ${WHAT} < 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
index d72a67b..063834c 100644 (file)
@@ -50,7 +50,7 @@ ROOT= root
 OBJMODE=755
 
 .c.o:
-       cc -S $(CFLAGS) $*.c
+       ${CC} -S $(CFLAGS) $*.c
        sed -f $(ASMSED) $*.s >_xx.s
        as -V - -o $*.o _xx.s
        rm -f $*.s _xx.s
@@ -58,13 +58,13 @@ OBJMODE=755
 all: $(ALL)
 
 mconnect: mconnect.o
-       cc $(SEPFLAG) $(COPTS) -o $@ mconnect.o
+       ${CC} $(SEPFLAG) $(COPTS) -o $@ mconnect.o
 
 mailstats: mailstats.o
-       cc $(SEPFLAG) $(COPTS) -o $@ mailstats.o
+       ${CC} $(SEPFLAG) $(COPTS) -o $@ mailstats.o
 
 praliases: praliases.o
-       cc $(SEPFLAG) $(COPTS) -o $@ praliases.o
+       ${CC} $(SEPFLAG) $(COPTS) -o $@ praliases.o
 
 sources: $(SRCS)
 
index c9d4d55..e46a928 100644 (file)
@@ -68,7 +68,7 @@ sendmail: $(OBJS)
        ${LD} $(SEPFLAG) $(COPTS) ${STAGEDIR}/lib/crt0.o -o sendmail \
                -Z $(SOV1) -Z $(SOV2) -Z $(SOV3) -Y $(SBASE) $(LIBS) -lstubs -lc
        chmod $(OBJMODE) sendmail
-       size sendmail; ls -l sendmail
+       ${SIZE} sendmail; ls -l sendmail
 
 install: all
        $(INSTALL) -m 4755 -o root sendmail $(DESTDIR)/usr/sbin
@@ -100,7 +100,7 @@ clean:
 print: $(SRCS)
        @ls -l | pr -h "sendmail directory"
        @$(XREF) *.c | pr -h "cross reference listing"
-       @size *.o | pr -h "object code sizes"
+       @${SIZE} *.o | pr -h "object code sizes"
        @pr Makefile *.m4 *.h *.[cs]
 
 lint:
@@ -108,6 +108,6 @@ lint:
 
 str.o: strings
        ${XSTR}
-       cc -c xs.c
+       ${CC} -c xs.c
        mv xs.o str.o
        rm -f xs.c
index 047d8d6..b493671 100644 (file)
@@ -21,7 +21,7 @@ DISTFILES = Makefile sysgen.c devices.h sysgen.1
 all: sysgen ${MAN}
 
 sysgen: sysgen.o devices.h
-       cc ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
+       ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
 
 install: sysgen sysgen.0
        ${INSTALL} -c -s ${PROG} ${DESTDIR}/usr/sbin/${PROG}
index 3239697..859db96 100644 (file)
@@ -32,18 +32,18 @@ COMMO=      byteorder.o measure.o cksum.o
 all:   ${PROGRS}
 
 #cksum.o:
-#      cc ${CFLAGS} -c ${MACHINE}/$*.c
+#      ${CC} ${CFLAGS} -c ${MACHINE}/$*.c
 cksum.o:
-       cc ${CFLAGS} -S ${MACHINE}/cksum.c
+       ${CC} ${CFLAGS} -S ${MACHINE}/cksum.c
        ed - < ${MACHINE}/cksum-fix > /dev/null cksum.s
        as - -o $@ cksum.s
        rm -f cksum.s
 
 timed:         ${OBJDS} ${COMMO}
-       cc ${SEPFLAG} ${CFLAGS} ${OBJDS} ${COMMO} ${LIBS} -o timed 
+       ${CC} ${SEPFLAG} ${CFLAGS} ${OBJDS} ${COMMO} ${LIBS} -o timed 
 
 timedc: ${OBJCS} ${COMMO}
-       cc ${SEPFLAG} ${CFLAGS} ${OBJCS} ${COMMO} ${LIBS} -o timedc
+       ${CC} ${SEPFLAG} ${CFLAGS} ${OBJCS} ${COMMO} ${LIBS} -o timedc
 
 install: ${PROGRS}
        ${INSTALL} -s timed ${DESTDIR}/usr/sbin
index 784e3c0..8e4d260 100644 (file)
@@ -10,7 +10,7 @@ LIBS =
 all: traceroute traceroute.0
 
 traceroute: traceroute.o
-       cc $(CFLAGS) $(INCL) -o traceroute traceroute.o $(LIBS)
+       ${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