From a4697fa666a03576acfe1d8c5223515fda597e04 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Thu, 7 Nov 2019 17:39:17 +0000 Subject: [PATCH] Generalize build mechanism for host utils --- Makefile | 4 ++++ {utils => src/utils}/emul.c | 0 2 files changed, 4 insertions(+) rename {utils => src/utils}/emul.c (100%) diff --git a/Makefile b/Makefile index d3f4e81..552b87b 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,10 @@ endif default: fdimage.img +# Host utils +utils/%: src/utils/%.c + $(CC) -o $@ $< + # Boot sectors boot/%.bs: boot/%.asm $(NASM) $(NASM_ARGS) -DFLOPPY=$(FLOPPY) -o $@ $< diff --git a/utils/emul.c b/src/utils/emul.c similarity index 100% rename from utils/emul.c rename to src/utils/emul.c