Generalize build mechanism for host utils

This commit is contained in:
Nero 2019-11-07 17:39:17 +00:00
parent ba472e81b2
commit a4697fa666
2 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ endif
default: fdimage.img default: fdimage.img
# Host utils
utils/%: src/utils/%.c
$(CC) -o $@ $<
# Boot sectors # Boot sectors
boot/%.bs: boot/%.asm boot/%.bs: boot/%.asm
$(NASM) $(NASM_ARGS) -DFLOPPY=$(FLOPPY) -o $@ $< $(NASM) $(NASM_ARGS) -DFLOPPY=$(FLOPPY) -o $@ $<