Implemented simple Multiboot1 kernel

This commit is contained in:
2024-12-29 22:02:48 +01:00
parent 84a0d49942
commit bfe67a791e
14 changed files with 488 additions and 25 deletions
+19
View File
@@ -0,0 +1,19 @@
include defaults.mk
SRCS = $(shell find $(SRC) -name '**.c')
OBJS = $(patsubst $(SRC)/%.c, $(BIN)/%.o, $(SRCS))
LINKER = $(SRC)/linker.ld
OUT = $(BIN)/kernel.elf
.PHONY: all clean
all: $(OUT)
$(OUT): $(OBJS)
$(LD) $(LDFLAGS) -T $(LINKER) -o $@ $^
$(BIN)/%.o: $(SRC)/%.c
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -fr $(BIN)