2ae07cfd7ced43ee75b52e42eecaaba1daff4ca0
[bootsplash] / Makefile
1 bin = bootsplash.bin
2 img = bootsplash.img
3
4 $(img): $(bin)
5         dd if=/dev/zero of=$@ bs=512 count=2880
6         dd if=$< of=$@ bs=512 conv=notrunc
7
8 $(bin): bootsplash.asm nuclear.rle
9         nasm -f bin -o $@ $<
10
11 nuclear.rle: nuclear.img
12         cat $< | rle/rle >$@ 2>rle.log
13
14 .PHONY: run
15 run: $(img)
16         qemu-system-i386 -fda $<
17
18 .PHONY: debug
19 debug: $(img)
20         qemu-system-i386 -S -s -fda $<
21
22 .PHONY: disasm
23 disasm: $(bin)
24         ndisasm -o 0x7c00 $< >dis