From f42aa2d995704c748c370d3e7b3684512361bc09 Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Sun, 9 Aug 2020 23:42:57 +0200
Subject: Some build process changes

---
 kernel/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'kernel')

diff --git a/kernel/Makefile b/kernel/Makefile
index 1d47ffd..fa6d790 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -26,7 +26,7 @@ CFLAGS = $(CSFLAGS) -Wall -Wextra -nostdlib -nostdinc -ffreestanding -fno-builti
 
 ASFLAGS = -f elf32 -O3
 
-all: compile
+all: compile bootloader
 
 %.o: %.c
 	@$(CC) -c $(CFLAGS) $< -o $@
@@ -34,8 +34,11 @@ all: compile
 %_asm.o: %.asm
 	@$(AS) $(ASFLAGS) $< -o $@
 
-compile: $(COBJS)
+bootloader:
 	@mkdir -p ../build/
 	@$(AS) -f bin entry.asm -o ../build/boot.bin
+
+compile: $(COBJS)
+	@mkdir -p ../build/
 	@$(LD) -N -ekernel_main -Ttext 0x00050000 -o ../build/kernel.bin -L../build/ $+ -lk --oformat binary
 	@$(CC) $(CFLAGS) -o ../build/debug.o -L../build/ $+ -lk
-- 
cgit v1.2.3