11.6Slukem#	$NetBSD: Makefile,v 1.6 2023/06/03 21:26:28 lukem Exp $
21.1Snonaka
31.1SnonakaPROG=		bootx64.efi
41.1SnonakaOBJFMT=		pei-x86-64
51.1SnonakaNEWVERSWHAT=	"EFI Boot (x64)"
61.1Snonaka
71.2SmanuEXTRA_SOURCES=	efibootx64.c startprog64.S multiboot64.S
81.1Snonaka
91.1SnonakaCOPTS+=		-mno-red-zone
101.1SnonakaCPPFLAGS+=	-DEFI_FUNCTION_WRAPPER
111.1Snonaka
121.3Sriastrad# Follow the suit of Makefile.kern.inc; needed for the lfs64 union
131.3Sriastrad# accessors -- they don't actually dereference the resulting pointer,
141.3Sriastrad# just use it for type-checking.
151.6SlukemCWARNFLAGS+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
161.3Sriastrad
171.1Snonaka.include "${.CURDIR}/../Makefile.efiboot"
18