fc3da3ec1aba8be3950a1e1db02a3db1e5a2dad7
[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 rle/rle
12         cat $< | rle/rle >$@ 2>rle.log
13
14 rle/rle:
15         $(MAKE) -C rle
16
17 .PHONY: clean
18 clean:
19         rm -f $(bin)
20
21 .PHONY: run
22 run: $(img)
23         qemu-system-i386 -fda $<
24
25 .PHONY: debug
26 debug: $(img)
27         qemu-system-i386 -S -s -fda $<
28
29 .PHONY: disasm
30 disasm: $(bin)
31         ndisasm -o 0x7c00 $< >dis