diff options
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 |