diff --git a/.gitignore b/.gitignore index d8a12b1..c4102dd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ *.img *.bin *.rom -/scripts +*.hex diff --git a/Makefile b/Makefile index 17780ad..4000af6 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,9 @@ host/%.elf: host/%.c $(NASM) $(NASM_ARGS) -l $(@:.com=.lst) -o $@ $< $(METRIC) $@ +%.hex: src/%.asm src/*.inc + $(NASM) $(NASM_ARGS) -f ith -l $(@:.hex=.lst) -o $@ $< + # Bootloaders, first sector on partition %.bs: boot/%.asm $(NASM) $(NASM_ARGS) -o $@ $< @@ -60,7 +63,7 @@ hdd.img: mbr.bs $(KERNEL) fd1440.img dd if=fd1440.img bs=512 seek=63 of=$@ clean: - rm -f *.com *.bs *.0 *.lst *.img *.bin + rm -f *.com *.bs *.0 *.lst *.img *.bin *.hex rm -f host/*.elf qemu-floppy3: fd1440.img