makefile: allow creation of .hex files
This commit is contained in:
parent
9b87b9fe66
commit
c58f367330
2 changed files with 5 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,4 +5,4 @@
|
|||
*.img
|
||||
*.bin
|
||||
*.rom
|
||||
/scripts
|
||||
*.hex
|
||||
|
|
5
Makefile
5
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue