visor/config.default.mk

16 lines
586 B
Makefile
Raw 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
2025-03-16 00:38:18 +01:00
CC = $(CROSS_PATH)/$(ARCH)-linux-gcc
LD = $(CROSS_PATH)/$(ARCH)-linux-ld
2025-03-10 02:36:46 +01:00
# Compilation flags
2025-03-16 00:38:18 +01:00
CFLAGS = -std=c17 -Wall -ffreestanding -fpic -nostdlib -fstack-protector-all -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