attempt to blur up
[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: clean
15 clean:
16         rm -f $(bin)
17
18 .PHONY: run
19 run: $(img)
20         qemu-system-i386 -fda $<
21
22 .PHONY: debug
23 debug: $(img)
24         qemu-system-i386 -S -s -fda $<
25
26 .PHONY: disasm
27 disasm: $(bin)
28         ndisasm -o 0x7c00 $< >dis