bin = boot.img CC = ia16-elf-gcc LD = ia16-elf-ld CFLAGS = -march=i8088 -mtune=i8088 $(bin): boot/boot.o boot/boot2.o boot/main.o $(LD) -T boot.ld -Map boot.map -o $@ $^ %.o: %.asm nasm -o $@ -f elf $< .PHONY: clean clean: rm -f boot/*.o $(bin) .PHONY: run run: $(bin) qemu-system-i386 -fda $(bin) -serial file:serial.log .PHONY: debug debug: $(bin) qemu-system-i386 -fda $(bin) -serial file:serial.log -s -S .PHONY: disasm disasm: $(bin) ndisasm -o 0x7c00 $< >dis1 ndisasm -o 0x80000 -e 512 $< >dis2