karlos/config.default.mk
2025-02-26 19:46:27 +01:00

17 lines
504 B
Makefile

# The CPU architecture we want to compile for (x86_64 is the only one for now ...)
ARCH = x86_64
# Path to your cross-compiler binaries
CROSS_PATH = /usr/bin
# C Compiler & Linker commands
CC = $(CROSS_PATH)/$(ARCH)-linux-gcc
LD = $(CROSS_PATH)/$(ARCH)-linux-ld
# Compilation flags
CFLAGS = -std=c17 -Wall -ffreestanding -nostdlib -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-80387
CPPFLAGS = -Iinclude
LDFLAGS = -nostdlib
BOOTBOOT = ../bootboot
MKBOOTIMG= $(BOOTBOOT)/mkbootimg/mkbootimg