#
# makefile for DOS-C boot
#
# $Id: makefile,v 1.6.2.3 2004/12/19 19:33:27 perditionc Exp $
#

!include "../mkfiles/generic.mak"

########################################################################

all:		fat12.bin fat16.bin fat32chs.bin fat32lba.bin oemfat12.bin oemfat16.bin

fat12.bin:	boot.asm $(DEPENDS)
		$(NASM) -DISFAT12 boot.asm -l$*.lst -o$*.bin

fat16.bin:	boot.asm $(DEPENDS)
		$(NASM) -DISFAT16 boot.asm -l$*.lst -o$*.bin

fat32chs.bin:	boot32.asm $(DEPENDS)
		$(NASM) boot32.asm -l$*.lst -o$*.bin

fat32lba.bin:	boot32lb.asm $(DEPENDS)
		$(NASM) boot32lb.asm -l$*.lst -o$*.bin

oemfat12.bin:	oemboot.asm $(DEPENDS)
		$(NASM) -DISFAT12 oemboot.asm -l$*.lst -o$*.bin

oemfat16.bin:	oemboot.asm $(DEPENDS)
		$(NASM) -DISFAT16 oemboot.asm -l$*.lst -o$*.bin

########################################################################

clean:
		-$(RM) *.bak *.cod *.crf *.err *.las *.lst *.map *.obj *.xrf

clobber:	clean
		-$(RM) *.bin status.me
