# @(#)Makefile 7.8 (Berkeley) 5/8/91
INCPATH
=-I.
-I
${STAND} -I..
/..
/sys
-I..
CC
= cc -fpcc-struct-return
# RELOC=FFF80000 allows for boot prog up to 7F000 (520192) bytes long
CONS
= -DDCACONSOLE
-DITECONSOLE
-DDCMCONSOLE
DEFS
= -DSTANDALONE
${CONS} # -DROMPRF
CFLAGS
= -O
${INCPATH} ${DEFS}
DRIVERS
=autoconf.c cons.c ct.c dca.c dcm.c fhpib.c hil.c hpib.c ite.c \
ite_dv.c ite_gb.c ite_rb.c ite_subr.c ite_tc.c nhpib.c rd.c \
SRCS
= conf.c machdep.c prf.c
${DRIVERS}
LIBS
= libsa
/libsa.a libdrive.a
${DESTDIR}/usr
/lib
/libc.a
ALL
= dboot nboot tboot tcopy
dboot nboot tboot tcopy
: ${LIBS}
libdrive.a
: conf.o machdep.o prf.o
${DRIVERS
:.c
=.o
}
${CC} -E
${INCPATH} ${DEFS} srt0.c |
${AS} -o srt0.o
${CC} -E
${INCPATH} ${DEFS} -DTP srt0.c |
${AS} -o tpsrt0.o
tboot
: tboot.o srt0.o
${LIBS}
ld -N
-T
${RELOC} -e begin srt0.o tboot.o
${LIBS} -o
$@
@echo tboot total size should not exceed
520192 bytes
cp boot.c tboot.c
; chmod
+w tboot.c
${CC} -c
-O
${INCPATH} -DJUSTASK tboot.c
tcopy
: copy.o tpsrt0.o
${LIBS}
ld -N
-T
${RELOC} -e begin tpsrt0.o copy.o
${LIBS} -o
$@
@echo tcopy total size should not exceed
520192 bytes
# bootable from floppy or real disks
dboot
: boot.o srt0.o bootconf.o
${LIBS}
ld -N
-T
${RELOC} -e begin srt0.o boot.o bootconf.o
${LIBS} -o
$@
@echo dboot text
+data size should not exceed
57344 bytes
@echo dboot total size should not exceed
520192 bytes
${CC} -c
${INCPATH} -DBOOT bootconf.c
nboot
: nboot.o srt0.o bootconf.o
${LIBS}
ld -N
-T
${RELOC} -e begin
-o nboot srt0.o nboot.o bootconf.o
${LIBS}
@echo nboot text
+data size should not exceed
57344 bytes
@echo nboot total size should not exceed
520192 bytes
${CC} -c
-O
${INCPATH} -DINSECURE
${DEFS} nboot.c
dcopy
: copy.o srt0.o conf.o
${LIBS}
ld -N
-T
${RELOC} -e begin
-o dcopy srt0.o copy.o conf.o
${LIBS}
${CC} ${CFLAGS} -o mkboot mkboot.c
installboot
: installboot.c
${CC} ${CFLAGS} -o installboot installboot.c
rm -f
*.o
*.exe
*.i errs make.out
rm -f a.out boot cat tpboot tpcopy copy tpformat
rm -f boot
[a-z
]? boot
[a-wyz
][a-z
].c conf
[a-wyz
][a-z
].c
rm -f format drtest core sboot bootconf.c nboot.c
rm -f libdrive.a mkboot tboot tcopy dboot nboot installboot
*.lif
lint
${INCPATH} -hxbn boot.c
${SRCS} | \
grep
-v
'possible pointer alignment' | \
grep
-v
'struct/union .* never defined'
install: mkboot installboot
${ALL}
mkboot dboot diskboot.lif
mkboot nboot ndiskboot.lif
mkboot tboot tcopy tapeboot.lif
install -c
-s installboot
${DESTDIR}/usr
/mdec
install -c
-m
644 diskboot.lif
${DESTDIR}/usr
/mdec
/bootrd
rm -f
${DESTDIR}/usr
/mdec
/bootsd
ln
${DESTDIR}/usr
/mdec
/bootrd
${DESTDIR}/usr
/mdec
/bootsd
install -c
-m
644 tapeboot.lif
${DESTDIR}/usr
/mdec
/bootct
mv diskboot.lif ndiskboot.lif tapeboot.lif
${DESTDIR}/sys
/hpdist
/tp
mkdep
${INCPATH} -DSTANDALONE
${SRCS}