CONF=kibbiee
ZONE=/adm/timezone/US_Eastern
p=9
objtype=386
</$objtype/mkfile
TARG=$p$CONF'fs'
DEV=\
aoe.$O\
apc.$O\
cw.$O\
fjuke.$O\
fworm.$O\
mworm.$O\
wren.$O\
IP=\
arp.$O\
icmp.$O\
il.$O\
ip.$O\
ipaux.$O\
iproute.$O\
sntp.$O\
udp.$O\
PORT=\
9p2.$O\
auth.$O\
chk.$O\
clock.$O\
con.$O\
config.$O\
console.$O\
data.$O\
dentry.$O\
devcec.$O\
devcons.$O\
devcopy.$O\
fcmd.$O\
iobuf.$O\
lrand.$O\
main.$O\
print.$O\
proc.$O\
rawcopy.$O\
sub.$O\
time.$O\
uidgid.$O\
PC=\
l.$O\
8250.$O\
8253.$O\
cga.$O\
devsd.$O\
dosfs.$O\
floppy.$O\
iasata.$O\
kbd.$O\
lock.$O\
malloc.$O\
mmu.$O\
mv50xx.$O\
nvr.$O\
pc.$O\
pci.$O\
sdata.$O\
sdscsi.$O\
toy.$O\
trap.$O\
ETHER=\
etherctlr.$O\
etherigbe.$O\
ethermii.$O\
ether82563.$O\
etherm10g.$O\
etherif.$O\
SCSI=\
scsi.$O\
scsibuslogic.$O\
# scsincr53c8xx.$O\
OBJ=\
$PC\
$PORT\
$DEV\
$IP\
$ETHER\
$SCSI\
HFILES=\
../port/all.h\
../port/lib.h\
../port/portdat.h\
../port/portfns.h\
dat.h\
fns.h\
../pc/io.h\
mem.h\
/$objtype/include/u.h\
/$objtype/include/ureg.h\
LIB=\
-lauthsrv\
-lc\
-lsec\
CFLAGS=-FTVw -I. -I../port -I../pc
all:V: $TARG
<../pc/mkfile
<../port/mkfile
<../dev/mkfile
<../ip/mkfile
$TARG: $CONF.c $OBJ
$CC $CFLAGS -DDATE'='`{date -n} $CONF.c
$LD -o $target -l -T0x30100020 $OBJ $CONF.$O $LIB
size $target
install:V: $TARG
cp $TARG /$objtype/
# 9fs stand && cp -x $TARG /n/stand/$objtype
bootflp: $TARG plan9.ini
pc/bootfloppy bootflp plan9.ini $TARG
iso cd: bootflp
{ echo bootflp ; echo $TARG ; echo plan9.ini } > $TARG'proto'
rm -f $TARG.iso && disk/mk9660 -b bootflp -p $TARG'proto' $TARG.iso
$TARG.$O: ../pc/dosfs.h
%.$O: %.c
$CC $CFLAGS $stem.c
%.$O: %.s
$AS $stem.s
%.$O: $HFILES
clean:V:
rm -f *.[$OS] [$OS].out bootflp *.iso timezone.h $TARG^proto $TARG
|