X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootsplash;a=blobdiff_plain;f=Makefile;h=2f6fab5179257b78c8e9d1368dab0243c2abdd62;hp=a9d1f179400271e2dd46d556511111f7d7c91e42;hb=HEAD;hpb=8a2e90cd377e7177f32ffc3ffc30a508e3f5f474 diff --git a/Makefile b/Makefile index a9d1f17..2f6fab5 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,25 @@ $(img): $(bin) dd if=/dev/zero of=$@ bs=512 count=2880 dd if=$< of=$@ bs=512 conv=notrunc -$(bin): bootsplash.asm +$(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 $< @@ -15,3 +31,7 @@ run: $(img) .PHONY: debug debug: $(img) qemu-system-i386 -S -s -fda $< + +.PHONY: disasm +disasm: $(bin) + ndisasm -o 0x7c00 $< >dis