all : fat12.bin test.exe

install : fat12.bin a:\load.bin
	partcopy fat12.bin  0   3 -f0
	partcopy fat12.bin 24 1DC -f0 24

# this target for testing purposes only
test : fat12.asm
	nasm -f bin -dDOS=1 -o fat12.com fat12.asm
# the leading hyphen should supress the error if NDISASM is not installed
	-ndisasm -o 0x100 fat12.com >fat12.lst

clean :
	deltree /y *.bin *.exe *.com *.obj *.lst

fat12.bin : fat12.asm
	nasm -f bin -o fat12.bin fat12.asm
# the leading hyphen should supress the error if NDISASM is not installed
	-ndisasm -o 0x100 fat12.bin >fat12.lst

a:\load.bin : test.exe
	copy /y test.exe a:\load.bin

test.exe : show-bmp.asm cow8.bmp
	nasm -f bin -o show-bmp.bin show-bmp.asm
# define DOS to disable run-time check for DOS (SHOW-BMP will assume
# DOS is present, and use INT 21h AH=4Ch to exit). This lets you
# put TEST.EXE on a floppy, and load it from DOS using FAT12.COM
# This is for testing purposes only!
#	nasm -f bin -dDOS=1 -o show-bmp.bin show-bmp.asm
	copy /b /y show-bmp.bin + cow8.bmp test.exe
