CFLAGS
= -O
-DSTANDALONE
${COPTS}
COPTS
= -DVAX780
-DVAX750
-DVAX730
SRCS
= sys.c conf.c prf.c machdep.c \
autoconf.c hp.c ht.c idc.c mba.c mt.c rk.c tm.c ts.c \
DRIVERS
=autoconf.o hp.o ht.o idc.o mba.o mt.o rk.o tm.o ts.o \
ALL
= /usr
/lib
/libsa.a srt0.o boot tpboot copy tpcopy boothp boothk bootup
/usr
/lib
/libsa.a
: sys.o conf.o
${DRIVERS} prf.o machdep.o
ar crv
/usr
/lib
/libsa.a
$?
/lib
/c2
-i
$*.s |
as -o
$*.o
srt0.o
: srt0.c ..
/h
/mtpr.h ..
/h
/cpu.h
cc -E
-DRELOC
=0x
${RELOC} ${COPTS} srt0.c |
as -o srt0.o
tpsrt0.o
: srt0.c ..
/h
/mtpr.h ..
/h
/cpu.h
cc -E
-DRELOC
=0x
${RELOC} -DTP
${COPTS} srt0.c |
as -o tpsrt0.o
relsrt0.o
: srt0.c ..
/h
/mtpr.h ..
/h
/cpu.h
cc -E
-DRELOC
=0x
${RELOC} -DREL
${COPTS} srt0.c |
as -o relsrt0.o
tpboot
: tpboot.o relsrt0.o
/usr
/lib
/libsa.a
ld -N
-T
${RELOC} relsrt0.o tpboot.o
-lsa
-lc
cp a.out b.out
; strip b.out
; dd if
=b.out of
=tpboot ibs
=32 skip
=1; rm b.out
tpboot.o
: boot.c ..
/h
/param.h ..
/h
/inode.h ..
/h
/fs.h
tpboot.o
: saio.h ..
/h
/reboot.h ..
/h
/vm.h
cp boot.c tpboot.c
; chmod
+w tpboot.c
cc -c
-O
-DJUSTASK tpboot.c
tpcopy
: copy.c tpsrt0.o
/usr
/lib
/libsa.a
cp copy.c tpcopy.c
; chmod
+w tpcopy.c
ld -N tpsrt0.o tpcopy.o
-lsa
-lc
cp a.out b.out
; strip b.out
; dd if
=b.out of
=tpcopy ibs
=32 skip
=1; rm b.out
# bootable from floppy or real disks
boot
: boot.o relsrt0.o bootconf.o
/usr
/lib
/libsa.a
ld -N
-T
${RELOC} -o boot relsrt0.o boot.o bootconf.o
-lsa
-lc
bootconf.o
: conf.c ..
/h
/param.h ..
/h
/inode.h ..
/h
/pte.h
bootconf.o
: ..
/h
/fs.h saio.h ..
/h
/mbareg.h
cc -c
${COPTS} -DBOOT bootconf.c
copy
: copy.o srt0.o conf.o
/usr
/lib
/libsa.a
ld -N
-o copy srt0.o copy.o conf.o
-lsa
-lc
### not yet, rosin, not yet ###
# getting booted from disc
boothk
: relsrt0.o boothk.o confrk.o
/usr
/lib
/libsa.a
ld -N
-T
${RELOC} relsrt0.o boothk.o confrk.o
-lsa
-lc
cp a.out b.out
;strip b.out
;dd if
=b.out of
=boothk ibs
=32 skip
=1;rm b.out
cc -c
-S
${COPTS} -DBOOTRK bootxx.c
/lib
/c2
-i bootxx.s |
as -o boothk.o
boothp
: relsrt0.o boothp.o confhp.o
/usr
/lib
/libsa.a
ld -N
-T
${RELOC} relsrt0.o boothp.o confhp.o
-lsa
-lc
cp a.out b.out
;strip b.out
;dd if
=b.out of
=boothp ibs
=32 skip
=1;rm b.out
cc -c
-S
${COPTS} -DBOOTHP bootxx.c
/lib
/c2
-i bootxx.s |
as -o boothp.o
bootup
: relsrt0.o bootup.o confup.o
/usr
/lib
/libsa.a
ld -N
-T
${RELOC} relsrt0.o bootup.o confup.o
-lsa
-lc
cp a.out b.out
;strip b.out
;dd if
=b.out of
=bootup ibs
=32 skip
=1;rm b.out
cc -c
-S
${COPTS} -DBOOTUP bootxx.c
/lib
/c2
-i bootxx.s |
as -o bootup.o
boothp.o
: bootxx.c ..
/h
/param.h ..
/h
/inode.h ..
/h
/pte.h ..
/h
/reboot.h
boothp.o
: ..
/h
/fs.h saio.h
boothk.o
: bootxx.c ..
/h
/param.h ..
/h
/inode.h ..
/h
/pte.h ..
/h
/reboot.h
boothk.o
: ..
/h
/fs.h saio.h
bootup.o
: bootxx.c ..
/h
/param.h ..
/h
/inode.h ..
/h
/pte.h ..
/h
/reboot.h
confrk.o
: confrk.c ..
/h
/param.h ..
/h
/fs.h ..
/h
/pte.h ..
/h
/inode.h saio.h
$(CC
) -c
$(CFLAGS
) confrk.c
confhp.o
: confhp.c ..
/h
/param.h ..
/h
/fs.h ..
/h
/pte.h ..
/h
/inode.h saio.h
$(CC
) -c
$(CFLAGS
) confhp.c
confup.o
: confup.c ..
/h
/param.h ..
/h
/fs.h ..
/h
/pte.h ..
/h
/inode.h saio.h
$(CC
) -c
$(CFLAGS
) confup.c
sed
-e
's/XX/hk/' -e
's/xx/rk/g' <confxx.c
>confrk.c
sed
-e
's/XX/hp/' -e
's/xx/hp/g' <confxx.c
>confhp.c
sed
-e
's/XX/up/' -e
's/xx/up/g' <confxx.c
>confup.c
rm -f a.out b.out boot cat tpboot tpcopy
rm -f boot
[a-z
]? conf
[a-wyz
][a-z
].c
lint
${COPTS} -hxbn boot.c
${SRCS} | \
grep
-v
'possible pointer alignment' | \
grep
-v
'struct/union .* never defined'
cp tpcopy
${DESTDIR}/tp
/copy
cp tpboot
${DESTDIR}/tp
/boot
cp copy a.out
; strip a.out
; dd if
=a.out of
=..
/floppy
/copy bs
=32 skip
=1
cp boot a.out
; strip a.out
; dd if
=a.out of
=..
/floppy
/boot bs
=32 skip
=1
cp bootup boothk boothp
${DESTDIR}/usr
/mdec