visor/config.default.mk

16 lines
546 B
Makefile
Raw Permalink Normal View History

2025-03-10 02:36:46 +01:00
# 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 = gcc
LD = ld
# Compilation flags
CFLAGS = -std=c17 -Wall -ffreestanding -fpic -nostdlib -fno-stack-protector -fno-stack-check -fshort-wchar -mno-red-zone -maccumulate-outgoing-args -mno-sse -mno-mmx -mno-80387
2025-03-10 19:19:53 +01:00
CPPFLAGS = -Ignuefi/inc -Iinclude
LDFLAGS = -shared -Bsymbolic -Lgnuefi -Tgnuefi/elf_$(ARCH)_efi.lds -nostdlib
LIBS = -lgnuefi -lefi