1# $NetBSD: Makefile,v 1.4 2020/09/06 07:20:29 mrg Exp $ 2 3PROG= bootx64.efi 4OBJFMT= pei-x86-64 5NEWVERSWHAT= "EFI Boot (x64)" 6 7EXTRA_SOURCES= efibootx64.c startprog64.S multiboot64.S 8 9COPTS+= -mno-red-zone 10CPPFLAGS+= -DEFI_FUNCTION_WRAPPER 11 12# Follow the suit of Makefile.kern.inc; needed for the lfs64 union 13# accessors -- they don't actually dereference the resulting pointer, 14# just use it for type-checking. 15CWARNFLAGS.clang+= -Wno-error=address-of-packed-member 16CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} 17 18.include "${.CURDIR}/../Makefile.efiboot" 19