Newer
Older
Scratch / ubix3 / src / boot / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 707 bytes Scratch
# $Id: Makefile,v 1.14 2002/04/27 12:23:41 reddawg Exp $

#FDDEVICE = "/dev/fd0"
FDDEVICE = /dev/fd1
NASM = nasm
#NASM = /usr/local/bin/nasm

all: writeimg format
 
writeimg: writeimg.c
	gcc writeimg.c -o writeimg

format: format.c
	gcc format.c -o format

install: writeimg
	(cp ../bin/test.bin ./)
	(cp ../bin/shell.bin ./)
	(cp ../bin/realm.bin ./)
	(./format $(FDDEVICE) 101 5 test.bin shell.bin help.txt readme.txt realm.bin)
	(rm ./test.bin)
	(rm ./shell.bin)
	(rm ./realm.bin)
	($(NASM) bootsec.asm -o bootsec)
	(cat ../sys/kernel.elf >>bootsec)
	(./writeimg $(FDDEVICE))
	(rm bootsec)

formatdsk: format
	(./format 60 3 ../bin/test.bin help.txt readme.txt)
 
clean:
	(rm -f writeimg format bootsec)