1
TARGETS = boot_floppy.bin boot_usb.bin
2 3
4 5 6 7 8 9
boot_floppy.bin: boot_floppy.asm floppy.img nasm boot_floppy.asm -f bin -o boot_floppy.bin dd if=boot_floppy.bin of=floppy.img bs=512 count=1 conv=notrunc boot_usb.bin: boot_usb.asm nasm boot_usb.asm -f bin -o boot_usb.bin
10 11 12 13 14 15 16 17 18
floppy.img: dd if=/dev/zero of=floppy.img bs=512 count=2880 clean: rm -rf $(TARGETS) all: $(TARGETS)