Newer
Older
ubixos / src / sys / boot / Makefile
@reddawg reddawg on 30 Jun 2002 509 bytes Fixed A Bug Or Two
# $Id$

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
	($(NASM) bootsec.asm -o bootsec)
	(cat ../compile/ubix.elf >>bootsec)
	(dd if=/dev/zero of=./buf bs=512 count=10)
	(cat buf >>bootsec)
	(rm -f buf)
	(./writeimg $(FDDEVICE))

formatdsk: format
	(./format 60 2 bin help.txt readme.txt)
 
clean:
	(rm -f writeimg format bootsec *.core)