summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-12-21 16:48:51 -0500
committerIan Moffett <ian@osmora.org>2025-12-21 16:48:51 -0500
commit10e9348d798d9a683c966480faca00cabc531dd5 (patch)
tree063ae71517af235d500d52f21ccc620004184104 /mk
initial commit
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/defaults.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/mk/defaults.mk b/mk/defaults.mk
new file mode 100644
index 0000000..ae85cfd
--- /dev/null
+++ b/mk/defaults.mk
@@ -0,0 +1,30 @@
+#
+# Copyright (c) 2025, Ian Moffett
+# Provided under the BSD-3 clause.
+#
+
+ARCH = x86_64
+QEMU = qemu-system-$(ARCH)
+
+CC = $(shell pwd)/var/cc/gcc/bin/$(ARCH)-pc-osmora-gcc
+LD = $(shell pwd)/var/cc/toolchain/build-binutils/bin/$(ARCH)-pc-osmora-ld
+
+SYS_CFLAGS = \
+ -nostdlib \
+ -nostdinc \
+ -ffreestanding \
+ -fexceptions \
+ --std=gnu11 \
+ -mcmodel=kernel \
+ -Wno-attributes
+
+ifeq ($(ARCH),x86_64)
+ SYS_CFLAGS += \
+ -mno-sse \
+ -mno-sse2 \
+ -mno-sse3 \
+ -mno-avx \
+ -mno-avx2 \
+ -mno-80387 \
+ -mno-3dnow
+endif