From c8a25997dae70b7083725ebaa030ff363134a191 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 18 May 2026 18:20:37 +0000 Subject: build and debug system --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f1305e1 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +BOOT_DIR := loader +BOOT_FILE := $(BOOT_DIR)/loader.efi + +CORE_DIR := kc/core +CORE_FILE := $(CORE_DIR)/kernel.os + +TARGETS := $(BOOT_FILE) $(CORE_FILE) +DIRS := $(BOOT_DIR) $(CORE_DIR) + +DIRS_CLEAN := $(addprefix clean-,$(DIRS)) +DIRS_DISTCLEAN := $(addprefix dist,$(DIRS_CLEAN)) + +all: $(TARGETS) +clean: $(DIRS_CLEAN) +distclean: $(DIRS_DISTCLEAN) + +$(DIRS_CLEAN): clean-%: + $(MAKE) -C $* clean + +$(DIRS_DISTCLEAN): distclean-%: + $(MAKE) -C $* distclean + +$(TARGETS): + $(MAKE) -C $(dir $@) + +.PHONY: all clean distclean $(TARGETS) $(DIRS) $(DIRS_CLEAN) $(DIRS_DISTCLEAN) + -- cgit v1.3.1-1-g115d