mineswefi.git

Makefile

espurr
# mineswefi - uefi minesweeper
# Copyright (C) 2025 ArcNyxx <olive@arcnyxx.net>
# see LICENCE file for licensing information

.POSIX:

include config.mk

SRC = main.c
OBJ = $(SRC:.c=.o)
EXT = $(SRC:.c=.d)

all: bootx64.efi

.c.o:
	$(CC) $(CFLAGS) -c $<

bootx64.efi: $(OBJ)
	$(LD) $(LDFLAGS) $(OBJ) -out:$@

clean:
	rm -r bootx64.efi $(OBJ) $(EXT)

qemu: bootx64.efi
	mkdir -p root/efi/boot
	cp -f bootx64.efi root/efi/boot
	$(QEMU) $(QEMUFLAGS)

.PHONY: all clean