head     1.3;
branch   ;
access   ;
symbols  ;
locks    bin:1.3;
comment  @@;


1.3
date     91.11.08.13.18.21;  author bin;  state Exp;
branches ;
next     1.2;

1.2
date     91.05.29.14.40.04;  author bin;  state Exp;
branches ;
next     1.1;

1.1
date     91.05.29.13.30.03;  author bin;  state Exp;
branches ;
next     ;


desc
@init ver prov by stevesf
@


1.3
log
@Piggy update for building secondary boot for tboot
@
text
@# boot/Makefile 8 Nov 1991
# COHERENT boot strap Makefile.

DESTDIR=objects/
TMP=boot.o
ALL=\
	boot \
	boot.at \
	boot.atx \
	boot.f9a \
	boot.f9d \
	boot.fha \
	boot.fqa \
	boot.fva \
	mboot

# Primary target.
all:	$(ALL)
	: Done.

# Install this code
install:
	Write me.  Put chmogs and cps here.

# Secondary targets.
boot: boot.at
	ln -f $(DESTDIR)boot.at $(DESTDIR)$@@

# Hard disk secondary bootstrap.
boot.at:	boot.m
	cc -c -DNSPT=9 -DNTRK=40 -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	rm $(TMP)

# Hard disk master boot block.
boot.atx:	mboot.s
	cc -c -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	rm $(TMP)

# 720 block 9 sector per track floppy, alternating heads.
boot.f9a:	boot.m
	cc -c -DNHD=2 -DNSPT=9 -DNTRK=80 -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	rm $(TMP)

# 720 block 9 sector per track floppy, not alternating heads.
boot.f9d:	boot.m
	cc -c -DNSPT=9 -DNTRK=80 -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	rm $(TMP)

# 2400 block 15 sector per track 5.25" floppy, alternating heads.
boot.fha:	boot.m
	cc -c -DNHD=2 -DNSPT=15 -DNTRK=80 -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	rm $(TMP)

# 1440 block 9 sector per track 3.5" floppy, alternating heads.
boot.fqa:	boot.m
	cc -c -DNHD=2 -DNSPT=9 -DNTRK=80 -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	rm $(TMP)

# 2880 block 18 sector per track 3.5" HD floppy, alternating heads.
boot.fva:	boot.m
	cc -c -DNHD=2 -DNSPT=18 -DNTRK=80 -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	rm $(TMP)

# Master boot block.
mboot:	boot.atx
	ln -f $(DESTDIR)boot.atx $(DESTDIR)$@@

# Patchable bootstrap.
# The patchable secondary boot does NOT work!  More work needs doing.
# The od is to check that the signature lands at the end.
# If pboot changes, the code which patches it from /etc/fdisk must change too.
pboot:	boot.m
	cc -c -DPBOOT -DNHD=9 -DNSPT=26 -DNTRK=1024 -DWPCC=0xFFFF -DCNTRL=8 -o $(TMP) $<
	dd if=$(TMP) of=$(DESTDIR)$@@ ibs=1 skip=44 count=512
	od -b $(DESTDIR)pboot | tail -1
	rm $(TMP)

# end of boot/Makefile
@


1.2
log
@modified by bob h for use on srcbox
@
text
@d1 1
a1 1
# boot/Makefile 5/23/91
d4 1
a4 1
DESTDIR=/interim/conf/
d15 1
a15 2
	mboot \
	pboot
d21 4
a27 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a33 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a39 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a45 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a51 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a57 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a63 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a69 1
	su root chmog 444 bin bin $(DESTDIR)$@@
a73 1
	su root chmog 444 bin bin $(DESTDIR)$@@
d76 1
d79 2
a80 2
pboot:	pboot.m
	cc -c -DNHD=9 -DNSPT=26 -DNTRK=1024 -DWPCC=0xFFFF -DCNTRL=8 -o $(TMP) $<
a83 1
	su root chmog 444 bin bin $(DESTDIR)$@@
@


1.1
log
@Initial revision
@
text
@d4 1
d23 3
a25 2
boot:	boot.at
	ln -f $< $@@
d30 1
a30 1
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
d32 1
d37 1
a37 1
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
d39 1
d44 1
a44 1
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
d46 1
d51 1
a51 1
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
d53 1
d58 1
a58 1
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
d60 1
d65 1
a65 1
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
d67 1
d72 1
a72 1
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
d74 1
d78 2
a79 1
	ln -f $< $@@
d86 2
a87 2
	dd if=$(TMP) of=$@@ ibs=1 skip=44 count=512
	od -b pboot | tail -1
d89 1
@
