summaryrefslogtreecommitdiffhomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/makefile b/makefile
index 3c52077..3d310d0 100644
--- a/makefile
+++ b/makefile
@@ -27,13 +27,18 @@ CFLAGS = $(WARNINGS) -std=c99 -m32 -nostdlib -nostdinc -ffunction-sections -fno-
ASFLAGS = -f elf32
-all: dir $(BLD)/boot.bin
+export
+
+all: dir $(BLD)/boot.bin mb1
dir:
@mkdir -p $(BLD)/entry/
@mkdir -p $(BLD)/loader/fs/
@mkdir -p $(BLD)/loader/impl/
+mb1:
+ @$(MAKE) --no-print-directory -C example/$@
+
$(BLD)/boot.bin: $(BLD)/loader.bin
@$(AS) $(ASFLAGS) -f bin $(SRC)/entry/bootsector.asm -o $@