bin = bootsplash.bin img = bootsplash.img $(img): $(bin) dd if=/dev/zero of=$@ bs=512 count=2880 dd if=$< of=$@ bs=512 conv=notrunc $(bin): bootsplash.asm nuclear.rle fire.pal nasm -f bin -o $@ $< nuclear.rle: nuclear.img rle/rle cat $< | rle/rle >$@ 2>rle.log nuclear.img: nuclear.pgm dd if=$< of=$@ bs=1 skip=61 fire.pal: fire.ppm dd if=$< of=$@ bs=1 skip=59 rle/rle: $(MAKE) -C rle .PHONY: clean clean: rm -f $(bin) .PHONY: run run: $(img) qemu-system-i386 -fda $< .PHONY: debug debug: $(img) qemu-system-i386 -S -s -fda $< .PHONY: disasm disasm: $(bin) ndisasm -o 0x7c00 $< >dis