makefile: allow creation of .hex files
This commit is contained in:
parent
9b87b9fe66
commit
c58f367330
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,4 +5,4 @@
|
|||||||
*.img
|
*.img
|
||||||
*.bin
|
*.bin
|
||||||
*.rom
|
*.rom
|
||||||
/scripts
|
*.hex
|
||||||
|
5
Makefile
5
Makefile
@ -33,6 +33,9 @@ host/%.elf: host/%.c
|
|||||||
$(NASM) $(NASM_ARGS) -l $(@:.com=.lst) -o $@ $<
|
$(NASM) $(NASM_ARGS) -l $(@:.com=.lst) -o $@ $<
|
||||||
$(METRIC) $@
|
$(METRIC) $@
|
||||||
|
|
||||||
|
%.hex: src/%.asm src/*.inc
|
||||||
|
$(NASM) $(NASM_ARGS) -f ith -l $(@:.hex=.lst) -o $@ $<
|
||||||
|
|
||||||
# Bootloaders, first sector on partition
|
# Bootloaders, first sector on partition
|
||||||
%.bs: boot/%.asm
|
%.bs: boot/%.asm
|
||||||
$(NASM) $(NASM_ARGS) -o $@ $<
|
$(NASM) $(NASM_ARGS) -o $@ $<
|
||||||
@ -60,7 +63,7 @@ hdd.img: mbr.bs $(KERNEL) fd1440.img
|
|||||||
dd if=fd1440.img bs=512 seek=63 of=$@
|
dd if=fd1440.img bs=512 seek=63 of=$@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.com *.bs *.0 *.lst *.img *.bin
|
rm -f *.com *.bs *.0 *.lst *.img *.bin *.hex
|
||||||
rm -f host/*.elf
|
rm -f host/*.elf
|
||||||
|
|
||||||
qemu-floppy3: fd1440.img
|
qemu-floppy3: fd1440.img
|
||||||
|
Loading…
Reference in New Issue
Block a user