</$objtype/mkfile
BIN=$home/bin/$objtype
RCBIN=$home/bin/rc
#BIN=/386/bin
#RCBIN=/rc/bin
MAN=/sys/man/1
TARG=iosrv
OFILES=\
iosrv.$O\
fdutils.$O\
control.$O\
srvprocs.$O\
HFILES=dat.h\
fns.h
UPDATE=\
mkfile\
$HFILES\
${OFILES:%.$O=%.c}\
LDFLAGS=
YFLAGS=-d
AFLAGS=
default:V: $O.out
all:V: $O.out
$O.out: $OFILES $LIB
$LD $LDFLAGS -o $target $prereq
%.$O: $HFILES # don't combine with following %.$O rules
%.$O: %.c
$CC $CFLAGS $stem.c
%.$O: %.s
$AS $AFLAGS $stem.s
install:V: $BIN/$TARG
$CC $CFLAGS ioshell.c
$LD $LDFLAGS -o ioshell ioshell.$O
cp ioshell $BIN
cp io $RCBIN
cp io.man /sys/man/1/io >[2]/dev/null || {echo couldnt install manpage so displaying it in new window && window -r 5 5 750 800 -noscroll nroff -man io.man}
howtouse = 'io NAME starts a new persistent rc session /srv/NAME or attaches to /srv/NAME if it exists. By default a newly created session is backgrounded. Use io -a NAME if you wish to start and connect simultaneously.'
$BIN/$TARG: $O.out
cp $prereq $BIN/$TARG
clean:V:
rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output $TARG $CLEANFILES
safeinstall:V: $O.out
test -e $BIN/$TARG && mv $BIN/$TARG $BIN/_$TARG
cp $prereq $BIN/$TARG
|