visor/config.default.mk

15 lines
601 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 -fpic -nostdlib -fstack-protector-all -fshort-wchar -mno-red-zone -maccumulate-outgoing-args -mno-sse -mno-mmx -mno-80387
CPPFLAGS = -Ignuefi/inc -Iinclude -Ilibc/include
LDFLAGS = -shared -Bsymbolic -Lgnuefi -Tgnuefi/elf_$(ARCH)_efi.lds -nostdlib
LIBS = -lgnuefi -lefi