makefile: allow creation of .hex files

This commit is contained in:
Nero 2021-12-29 00:46:49 +00:00
parent 9b87b9fe66
commit c58f367330
2 changed files with 5 additions and 2 deletions

2
.gitignore vendored
View File

@ -5,4 +5,4 @@
*.img
*.bin
*.rom
/scripts
*.hex

View File

@ -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