summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-04 11:31:40 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-04 11:31:40 -0400
commit8251da342161767fe203627223ccd4a7026701c6 (patch)
treeaf2db0f11b0ea8ad35f88663a855bab39a80f679 /config.mk
downloadjove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.gz
jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.bz2
jove-kernel-8251da342161767fe203627223ccd4a7026701c6.zip
initial commit. working on tasking
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..16e3859
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,21 @@
+CFLAGS = \
+ -ffreestanding \
+ -nostdlib \
+ -fno-pie \
+ -fno-pic \
+ -g \
+ -MD \
+ -D__$(TARGET_MACHINE)__ \
+ -D__$(TARGET_BOOTLOADER)__ \
+ -Iinclude \
+ -I.
+
+LDFLAGS = -nostdlib \
+ -T link/$(TARGET_TRIPLET).ld
+
+ifeq "$(TARGET_MACHINE)" "x86_64"
+ CFLAGS += -m64 \
+ -mno-red-zone \
+ -mcmodel=kernel \
+ -mfsgsbase
+endif