From 65ba015d6c1f248d36ad01a653bc49637804b15b Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 10 Aug 2025 15:46:33 -0400 Subject: working usermode objdir iteration --- config.mk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..1659c3a --- /dev/null +++ b/config.mk @@ -0,0 +1,26 @@ +TOOLSDIR := $(PWD)/tools +KERNELDIR := $(PWD)/kernel +SYSROOTDIR := $(PWD)/sysroot +APPSDIR := $(PWD)/apps +INITRDDIR := $(PWD)/initrd +LIBDIR := $(PWD)/lib + +LIMINE_VERSION := 8.x +LIMINE_ORIGIN := https://github.com/limine-bootloader/limine.git +LIMINE_DIR := $(PWD)/limine +LIMINE_GETCMD := git clone $(LIMINE_ORIGIN) --branch=v$(LIMINE_VERSION)-binary --depth 1 $(LIMINE_DIR) + +TARGET_MACHINE = x86_64 +TARGET_OS = jove +TARGET_TRIPLET = $(TARGET_MACHINE)-$(TARGET_OS) +TARGET_BOOTLOADER = limine + +APPS := $(INITRDDIR)/files/bin/init + +STATICLIBS := $(SYSROOTDIR)/lib/libjove.a \ + $(SYSROOTDIR)/lib/libc-headless.a + +CC := $(TOOLSDIR)/bin/$(TARGET_TRIPLET)-gcc +LD := $(TOOLSDIR)/bin/$(TARGET_TRIPLET)-ld +AS := $(TOOLSDIR)/bin/$(TARGET_TRIPLET)-as +AR := $(TOOLSDIR)/bin/$(TARGET_TRIPLET)-ar -- cgit v1.2.1