X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=Makefile;h=9117c3f830731c1255afe4112dc6fa5381d0814c;hp=d03487663b0f0945c2dd1fff40fe4e359fac05a3;hb=07db0aabb3ad8dbb0a3cee2d3837dd93792ae825;hpb=ced643ce94dafd3d31e121435a40a967993e2be5 diff --git a/Makefile b/Makefile index d034876..9117c3f 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,10 @@ ifneq ($(shell uname -m), i386) ldarch = -m elf_i386 endif +floppy.img: $(bin) + dd if=/dev/zero of=$@ bs=512 count=2880 + dd if=$< of=$@ conv=notrunc + $(bin): $(elf) objcopy -O binary $< $@ @@ -41,4 +45,4 @@ cleandep: .PHONY: run run: $(bin) - qemu-system-i386 -fda $(bin) + qemu-system-i386 -fda floppy.img