summaryrefslogtreecommitdiff
path: root/sys/arch/vax/floppy/Makefile
blob: 0afacaadceb1ebaf09f8fc7e447de62cee324a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#	$OpenBSD: Makefile,v 1.2 1997/05/29 00:04:31 niklas Exp $
#	$NetBSD: Makefile,v 1.1 1996/03/02 17:57:34 ragge Exp $

# Make a 780 rx01 floppy
# 
BOOTS=	boot
STDBOO=	defboo.cmd anyboo.cmd restar.cmd
DEFBOO=	defboo.hk defboo.hp defboo.ra defboo.up
DEVBOO=	hkmboo.cmd hksboo.cmd hpmboo.cmd hpsboo.cmd \
	ramboo.cmd rasboo.cmd upmboo.cmd upsboo.cmd
UTILS=	format copy drtest

# order is NOT random...
OBJS=	${BOOTS} ${STDBOO} ${DEVBOO} ${UTILS}
FROMDEC=du* dm* db* s[mbr]* *boo.* vmb.exe *.hlp cs* ci*

FLOPPY=	/dev/floppy
#FLOPPY= /dev/rrx0b		# for using RX device

all:	floppy

floppy:	3tracks ${OBJS}
	cp 3tracks floppy
	arff crf floppy ${OBJS}

install: floppy
	dd if=floppy of=${FLOPPY}

# build a boot floppy from a DEC console floppy
update:	${OBJS}
	-mkdir fromdec
	cd fromdec; arff xf ${FLOPPY}; rm -f ${FROMDEC} ${OBJS} ${DEFBOO}; \
		flcopy -t3 -f ${FLOPPY}; rm -f floppy; arff crf ${FLOPPY} *
	rm -rf fromdec
	arff rf ${FLOPPY} ${OBJS}
	-rm -f defboo.cmd

defboo.cmd:
	@echo You must copy one of \{${DEFBOO}\} to defboo.cmd.
	@echo See installing and operating guide for details.
	@/bin/false	#force exits

clean:
	rm -f ${BOOTS} ${UTILS} floppy defboo.cmd
	rm -rf fromdec