mineswefi.git
config.mk

# mineswefi - uefi minesweeper
# Copyright (C) 2025 ArcNyxx <olive@arcnyxx.net>
# see LICENCE file for licensing information
VERSION = 0.0.0
# replace with copied ovmf firmware
# on arch, run: cp /usr/share/ovmf/x64/OVMF.4m.fd ovmf.fd
OVMF = ovmf.fd
WPROFILE = -Wall -Wextra -Wstrict-prototypes -Wmissing-declarations -Wshadow \
-Wswitch-default -Wunreachable-code -Wcast-align -Wpointer-arith -Wcast-qual \
-Wbad-function-cast -Winline -Wundef -Wnested-externs -Wwrite-strings \
-Wno-unused-parameter -Wfloat-equal -Wpedantic
CC = clang
LD = lld
QEMU = qemu-system-x86_64
CFLAGS = $(WPROFILE) -ffreestanding -MMD -mno-red-zone -std=c11 \
-target x86_64-unknown-windows -fshort-wchar
LDFLAGS = -flavor link -subsystem:efi_application -entry:main
QEMUFLAGS = -drive if=pflash,format=raw,file=$(OVMF) \
-drive format=raw,file=fat:rw:root \
-net none # -nographic