1 1.7 jakllsch # $NetBSD: Makefile,v 1.7 2026/11/22 19:30:33 jakllsch Exp $ 2 1.1 nonaka 3 1.1 nonaka PROG= bootx64.efi 4 1.1 nonaka OBJFMT= pei-x86-64 5 1.1 nonaka NEWVERSWHAT= "EFI Boot (x64)" 6 1.1 nonaka 7 1.2 manu EXTRA_SOURCES= efibootx64.c startprog64.S multiboot64.S 8 1.1 nonaka 9 1.7 jakllsch CPUFLAGS= -march=x86-64 -mtune=generic 10 1.7 jakllsch COPTS= -mno-red-zone 11 1.1 nonaka CPPFLAGS+= -DEFI_FUNCTION_WRAPPER 12 1.1 nonaka 13 1.3 riastrad # Follow the suit of Makefile.kern.inc; needed for the lfs64 union 14 1.3 riastrad # accessors -- they don't actually dereference the resulting pointer, 15 1.3 riastrad # just use it for type-checking. 16 1.6 lukem CWARNFLAGS+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} 17 1.3 riastrad 18 1.1 nonaka .include "${.CURDIR}/../Makefile.efiboot" 19