From 6c625658d8870cd9574d2a3ec94b874c95145a7f Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 4 Mar 2024 22:47:43 +0000 Subject: Makefile --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..76204f7 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +.PHONY: all clean $(DIRS_CLEAN) + +BOOT_DIR := boot +BOOT_FILE := $(BOOT_DIR)/kjarna.efi + +SERVICE_DIR := service +SERVICE_FILE := $(SERVICE_DIR)/kjarna.os + +TARGETS := $(SERVICE_FILE) $(BOOT_FILE) +DIRS := $(SERVICE_DIR) $(BOOT_DIR) + +DIRS_CLEAN := $(addprefix clean-,$(DIRS)) +DIRS_DISTCLEAN := $(addprefix distclean-,$(DIRS)) + +all: $(TARGETS) + +clean: $(DIRS_CLEAN) +distclean: $(DIRS_DISTCLEAN) + +$(DIRS_CLEAN): clean-%: + $(MAKE) -C $* clean + +$(DIRS_DISTCLEAN): distclean-%: + $(MAKE) -C $* distclean + +$(TARGETS): + $(MAKE) -C $(dir $@) + + -- cgit v1.3.1-1-g115d