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
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
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
${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
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
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
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"
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
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
#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))
#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_*/
* 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
/*
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 {
#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) */
#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 */
};
/*
#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_ */
#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_ */
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
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
${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
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
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
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"
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
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
sz: sz.o
$(CC) ${SEPFLAG} sz.o -o sz
- size sz
+ ${SIZE} sz
rz: rz.o
$(CC) ${SEPFLAG} rz.o -o rz
#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
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
${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
$(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
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
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
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
all: nntpxmit shlock
nntpxmit: ${OBJ}
- cc -o $@ ${OBJ} ${LIBS}
+ ${CC} -o $@ ${OBJ} ${LIBS}
@ls -las $@ ; size $@
nntpxmit.o: nntpxmit.c nntpxmit.h llist.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}
rm -f Make.errs
sizes:
- size $(CMDS)
+ ${SIZE} $(CMDS)
help:
@echo type make base as su to make notes directories.
$(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
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
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)
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)
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
SCCSTORCSSRC = sccstorcs.c
sccstorcs: $(SCCSTORCS)
- cc $(LDFLAGS) -o $@ $(SCCSTORCS)
+ ${CC} $(LDFLAGS) -o $@ $(SCCSTORCS)
sccstorcs.lint:
$(LINT) $(SCCSTORCSSRC)
#
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)
# 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"
#
## 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
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"
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.
OBJS= arcv.o
all: ${OBJS}
- cc ${SEPFLAG} ${OBJS} -o arcv
+ ${CC} ${SEPFLAG} ${OBJS} -o arcv
install:
${INSTALL} -s arcv ${DESTDIR}/usr/old/arcv
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
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
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
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
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!
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
# 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
# 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
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
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
# 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
# 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
#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 */
};
/*
#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
${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
all: ${ALL}
.c.o:
- cc ${CFLAGS} -c $*.c
+ ${CC} ${CFLAGS} -c $*.c
.s.o:
/lib/cpp -P ${DEFS} $< | as -u -V -o $@
${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
${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
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"
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
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
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
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
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
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
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
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
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
# 1996/10/25 - 2.11BSD
#
-AS= as -V
+#AS= as -V
C2= /lib/c2
LD= ld
STRINGS= f77_strings
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 \
-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
.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:
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}
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
#endif
# include "ldefs.h"
void phead1() {
- ratfor ? rhd1() : chd1();
+ if (ratfor)
+ rhd1();
+ else
+ chd1();
}
void chd1() {
void ptail() {
if(!pflag)
- ratfor ? rtail() : ctail();
+ if (ratfor)
+ rtail();
+ else
+ ctail();
pflag = 1;
}
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){
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
#
# @(#)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
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
--- /dev/null
+#!/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
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
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
${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
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 \
$(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
#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
}
void *emalloc(len) int len; {
- char *p;
+ void *p;
if (!(p = malloc((u_int)len)))
error(archive);
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
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"
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
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:
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
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
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
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}
+HOSTCC=cc
+HOSTSEPFLAG=-i
INSTALL=install
# @(#)Makefile 4.3.1 (2.11BSD) 1996/10/23
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 $@ $<
/* @(#)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>
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
#
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
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
/* 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
# ifdef MEDIUM
# define ACTSIZE 4000
-# define MEMSIZE 5200
+# define MEMSIZE (5200 * sizeof(char *) / sizeof(int))
# define NSTATES 600
# define NTERMS 127
# define NPROD 400
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
+++ /dev/null
-#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
#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
#$(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
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
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}
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
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
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)
${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
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:
str.o: strings
${XSTR}
- cc -c xs.c
+ ${CC} -c xs.c
mv xs.o str.o
rm -f xs.c
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}
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
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