From c58f36733056656be4efa97a5a14d83c04d75dc5 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Wed, 29 Dec 2021 00:46:49 +0000 Subject: [PATCH] makefile: allow creation of .hex files --- .gitignore | 2 +- Makefile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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