1 src = $(wildcard src/*.asm)
4 QEMU_FLAGS = -fda floppy.img -serial file:serial.log -soundhw sb16 -d guest_errors
9 bootldr: src/boot/boot.asm $(bin)
10 nasm -o $@ -f bin -DBINSIZE=`ls -l $(bin) | awk '{print $$5}'` $<
13 nasm -o $@ -f bin -i src/ src/main.asm
15 boot.img: bootldr $(bin)
19 dd of=$@ if=/dev/zero bs=512 count=2880
20 dd of=$@ if=$< bs=1 conv=notrunc
24 rm -f $(bin) bootldr floppy.img boot.img
27 disasm: bootldr.disasm $(bin).disasm
29 bootldr.disasm: bootldr
30 ndisasm -b 16 -o 7c00h $< >$@
33 ndisasm -b 16 -o 7e00h $< >$@
37 qemu-system-i386 $(QEMU_FLAGS)
41 qemu-system-i386 $(QEMU_FLAGS) -s -S