diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-10 15:46:33 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-10 15:46:33 -0400 |
commit | 65ba015d6c1f248d36ad01a653bc49637804b15b (patch) | |
tree | a77c3fb3ca7ecac8f65eb9638d152f1e90307d0a /config.mk | |
download | jove-os-65ba015d6c1f248d36ad01a653bc49637804b15b.tar.gz jove-os-65ba015d6c1f248d36ad01a653bc49637804b15b.tar.bz2 jove-os-65ba015d6c1f248d36ad01a653bc49637804b15b.zip |
working usermode objdir iteration
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 26 |
1 files changed, 26 insertions, 0 deletions
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 |