summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2024-03-11 21:30:31 -0400
committerJon Santmyer <jon@jonsantmyer.com>2024-03-11 21:30:31 -0400
commitd1ff7bcc91886626dc9060ec5fb67ee102ab7c1d (patch)
tree8f0b5cd8aad31089131785dc6e37b659490f9955 /config.mk
downloadjove-kernel-d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d.tar.gz
jove-kernel-d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d.tar.bz2
jove-kernel-d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d.zip
usermode capable kernel with logging syscall
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..11ce9f4
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,24 @@
+TARGET_MACHINE = x86_64
+TARGET_OS = jove
+TARGET_TRIPLET = $(TARGET_MACHINE)-$(TARGET_OS)
+TARGET_BOOTLOADER = limine
+
+CFLAGS = \
+ -ffreestanding \
+ -mno-sse \
+ -nostdlib \
+ -fno-pie \
+ -fno-pic \
+ -g \
+ -D$(TARGET_MACHINE) \
+ -I.
+
+LDFLAGS = -nostdlib \
+ -z max-page-size=0x1000 \
+ -T link/$(TARGET_TRIPLET).ld
+
+ifeq "$(TARGET_MACHINE)" "x86_64"
+ CFLAGS += -mno-red-zone \
+ -mcmodel=kernel \
+ -MMD
+endif