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