# 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 CPPFLAGS = -Ignuefi/inc LDFLAGS = -shared -Bsymbolic -Lgnuefi -lgnuefi -lefi -Tgnuefi/elf_$(ARCH)_efi.lds -nostdlib