head	1.6;
access;
symbols
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.52
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.50
	perseant-exfatfs-base:1.6
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	thorpej-ifq:1.6.0.48
	thorpej-ifq-base:1.6
	thorpej-altq-separation:1.6.0.46
	thorpej-altq-separation-base:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.44
	netbsd-10-base:1.6
	bouyer-sunxi-drm:1.6.0.42
	bouyer-sunxi-drm-base:1.6
	netbsd-9-3-RELEASE:1.6
	thorpej-i2c-spi-conf2:1.6.0.40
	thorpej-i2c-spi-conf2-base:1.6
	thorpej-futex2:1.6.0.38
	thorpej-futex2-base:1.6
	thorpej-cfargs2:1.6.0.36
	thorpej-cfargs2-base:1.6
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.34
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.6.0.32
	cjep_staticlib_x-base:1.6
	thorpej-i2c-spi-conf:1.6.0.30
	thorpej-i2c-spi-conf-base:1.6
	thorpej-cfargs:1.6.0.28
	thorpej-cfargs-base:1.6
	thorpej-futex:1.6.0.26
	thorpej-futex-base:1.6
	netbsd-9-1-RELEASE:1.6
	bouyer-xenpvh-base2:1.6
	phil-wifi-20200421:1.6
	bouyer-xenpvh-base1:1.6
	phil-wifi-20200411:1.6
	bouyer-xenpvh:1.6.0.24
	bouyer-xenpvh-base:1.6
	is-mlppp:1.6.0.22
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.6
	ad-namecache-base3:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	ad-namecache-base2:1.6
	ad-namecache-base1:1.6
	ad-namecache:1.6.0.20
	ad-namecache-base:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.18
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	isaki-audio2:1.6.0.16
	isaki-audio2-base:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.6.0.14
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.6.0.12
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.1
	tls-maxphys-base-20171202:1.6
	matt-nb8-mediatek:1.6.0.10
	matt-nb8-mediatek-base:1.6
	nick-nhusb-base-20170825:1.6
	perseant-stdc-iso10646:1.6.0.8
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.6
	netbsd-8-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.4
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	jdolecek-ncq:1.6.0.2
	jdolecek-ncq-base:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.1.0.18
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	nick-nhusb-base-20170204:1.6
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.4.0.4
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	netbsd-7-1-RC1:1.1
	nick-nhusb-base-20161204:1.4
	pgoyette-localcount-20161104:1.4
	netbsd-7-0-2-RELEASE:1.1
	nick-nhusb-base-20161004:1.4
	localcount-20160914:1.4
	netbsd-7-nhusb:1.1.0.16
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.2
	pgoyette-localcount-base:1.4
	nick-nhusb-base-20160907:1.4
	nick-nhusb-base-20160529:1.4
	netbsd-7-0-1-RELEASE:1.1
	nick-nhusb-base-20160422:1.4
	nick-nhusb-base-20160319:1.3
	nick-nhusb-base-20151226:1.3
	netbsd-7-0:1.1.0.14
	netbsd-7-0-RELEASE:1.1
	nick-nhusb-base-20150921:1.3
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	nick-nhusb-base-20150606:1.1
	nick-nhusb-base-20150406:1.1
	nick-nhusb:1.1.0.12
	nick-nhusb-base:1.1
	tls-maxphys-base:1.1
	tls-maxphys:1.1.0.10
	netbsd-7:1.1.0.8
	netbsd-7-base:1.1
	tls-earlyentropy:1.1.0.6
	tls-earlyentropy-base:1.1
	yamt-pagecache:1.1.0.4
	rmind-smpnet-base:1.1
	rmind-smpnet:1.1.0.2
	rmind-smpnet-nbase:1.1
	yamt-pagecache-base9:1.1;
locks; strict;
comment	@# @;


1.6
date	2017.02.03.17.28.58;	author roy;	state Exp;
branches;
next	1.5;
commitid	JsdGMcEz79PYVwEz;

1.5
date	2017.01.24.11.09.14;	author nonaka;	state Exp;
branches;
next	1.4;
commitid	BVmLyuu73R5U7dDz;

1.4
date	2016.03.22.08.25.23;	author mrg;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;
commitid	lmOvAeOuRxFV8CZy;

1.3
date	2015.09.07.03.44.19;	author uebayasi;	state Exp;
branches;
next	1.2;
commitid	60epfrV67D8qVgAy;

1.2
date	2015.09.07.03.20.18;	author uebayasi;	state Exp;
branches;
next	1.1;
commitid	98XOSwxq5l3bNgAy;

1.1
date	2014.04.28.19.09.29;	author jakllsch;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.6.1
	1.1.10.1
	1.1.12.1;
next	;
commitid	hfo5UN6OovZT0uyx;

1.4.2.1
date	2017.03.20.06.57.48;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.4.4.1
date	2017.04.21.16.54.03;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.1.2.1
date	2014.04.28.19.09.29;	author rmind;	state dead;
branches;
next	1.1.2.2;
commitid	mL5ZYSzpqK6QS2Bx;

1.1.2.2
date	2014.05.18.17.46.08;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.1.4.1
date	2014.04.28.19.09.29;	author yamt;	state dead;
branches;
next	1.1.4.2;
commitid	VUUXuyNWnt3AKwBx;

1.1.4.2
date	2014.05.22.11.41.04;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.1.6.1
date	2014.04.28.19.09.29;	author tls;	state dead;
branches;
next	1.1.6.2;
commitid	iXAwS8Yo92ToCMLx;

1.1.6.2
date	2014.08.10.06.56.02;	author tls;	state Exp;
branches;
next	;
commitid	iXAwS8Yo92ToCMLx;

1.1.10.1
date	2014.04.28.19.09.29;	author tls;	state dead;
branches;
next	1.1.10.2;
commitid	jTnpym9Qu0o4R1Nx;

1.1.10.2
date	2014.08.20.00.04.29;	author tls;	state Exp;
branches;
next	1.1.10.3;
commitid	jTnpym9Qu0o4R1Nx;

1.1.10.3
date	2017.12.03.11.38.46;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.1.12.1
date	2015.09.22.12.06.07;	author skrll;	state Exp;
branches;
next	1.1.12.2;
commitid	CpNWKp3ozVNTafCy;

1.1.12.2
date	2016.04.22.15.44.16;	author skrll;	state Exp;
branches;
next	1.1.12.3;
commitid	bbo6x38wuxyZyD3z;

1.1.12.3
date	2017.02.05.13.40.56;	author skrll;	state Exp;
branches;
next	;
commitid	8hwpk1aHl2UuyLEz;


desc
@@


1.6
log
@Fix build with clang.
@
text
@#	$NetBSD: Makefile,v 1.5 2017/01/24 11:09:14 nonaka Exp $

LIB=	gnuefi
LIBISPRIVATE?= yes

GNUEFI_USE_CREAD?= no		# Read compressed kernels
GNUEFI_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
GNUEFI_USE_LOADFILE?= no		# Generic executable loading support
GNUEFI_ENABLE_LS_OP?= no		# Filesystems ls operation

GNUEFIDIST=	${GNUEFIDIR}/../../external/bsd/gnu-efi/dist

CPPFLAGS=	-I${GNUEFIDIR} ${GNUEFICPPFLAGS} ${GNUEFIMISCCPPFLAGS}

.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

LIBGNUEFI_ARCH?=	${MACHINE_ARCH}
LIBGNUEFI_CPU?=		${MACHINE_CPU}

.if ${LIBGNUEFI_ARCH} == "i386"
GNUEFIARCH=ia32
.else
GNUEFIARCH=${LIBGNUEFI_ARCH}
.endif

.if defined(LIBGNUEFI_ARCH) && !empty(LIBGNUEFI_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${LIBGNUEFI_ARCH})
ARCHSUBDIR=	${LIBGNUEFI_ARCH}
.elif defined(MACHINE_ARCH) && !empty(MACHINE_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif defined(MACHINE_CPU) && !empty(MACHINE_CPU) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_CPU})
ARCHSUBDIR=	${MACHINE_CPU}
.endif

M= ${GNUEFIDIR}/arch/${ARCHSUBDIR}

.if exists($M/Makefile.inc)
CPPFLAGS+= -I$M
.PATH.c: $M
.PATH.S: $M
.include "$M/Makefile.inc"
.endif

.PATH.c: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
.PATH.S: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime

SRCS+=	boxdraw.c smbios.c console.c crc.c data.c debug.c dpath.c \
	error.c event.c guid.c hand.c hw.c init.c lock.c \
	misc.c print.c sread.c str.c \
	rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \
	initplat.c math.c

CWARNFLAGS.gcc+= -Wno-unused-but-set-variable
COPTS.boxdraw.c= -Wno-missing-field-initializers
COPTS.guid.c= -Wno-missing-field-initializers
COPTS.smbios.c= -Wno-int-to-pointer-cast
COPTS.dpath.c= -Wno-missing-prototypes
COPTS.print.c= -Wno-missing-prototypes
COPTS.hw.c= -Wno-shadow

.include <bsd.lib.mk>

lib${LIB}.o:: ${OBJS:O}
	@@echo building standard ${LIB} library
	@@rm -f lib${LIB}.o
	@@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`

CPPFLAGS+=	-Wno-pointer-sign
@


1.5
log
@Initial commit of native amd64 EFI boot loader.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2016/03/22 08:25:23 mrg Exp $
d59 1
d63 1
a63 1
COPTS.dpath.c= -Wno-missing-prototypes -Wno-unused-but-set-variable
d65 1
a65 3
COPTS.hw.c= -Wno-shadow -Wno-unused-but-set-variable
COPTS.event.c= -Wno-unused-but-set-variable
COPTS.hand.c= -Wno-unused-but-set-variable
@


1.4
log
@remove a bunch of "@@echo done" from the tail of rules.  these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for.  very few other targets claim they're done so just remove these.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2015/09/07 03:44:19 uebayasi Exp $
d11 2
d15 10
a24 1
.if ${MACHINE_ARCH} == "i386"
d27 1
a27 1
GNUEFIARCH=${MACHINE_ARCH}
d30 9
a38 2
.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
d41 8
a48 1
.include <bsd.own.mk>
d50 2
a51 1
.PATH.c: ${GNUEFIDIR} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/${GNUEFIARCH} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/runtime
d62 1
a62 1
COPTS.dpath.c= -Wno-missing-prototypes
d64 3
a66 1
COPTS.hw.c= -Wno-shadow
@


1.4.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2017/02/03 17:28:58 roy Exp $
a10 2
GNUEFIDIST=	${GNUEFIDIR}/../../external/bsd/gnu-efi/dist

d13 1
a13 10
.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

LIBGNUEFI_ARCH?=	${MACHINE_ARCH}
LIBGNUEFI_CPU?=		${MACHINE_CPU}

.if ${LIBGNUEFI_ARCH} == "i386"
d16 1
a16 1
GNUEFIARCH=${LIBGNUEFI_ARCH}
d19 2
a20 9
.if defined(LIBGNUEFI_ARCH) && !empty(LIBGNUEFI_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${LIBGNUEFI_ARCH})
ARCHSUBDIR=	${LIBGNUEFI_ARCH}
.elif defined(MACHINE_ARCH) && !empty(MACHINE_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif defined(MACHINE_CPU) && !empty(MACHINE_CPU) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_CPU})
ARCHSUBDIR=	${MACHINE_CPU}
d23 1
a23 8
M= ${GNUEFIDIR}/arch/${ARCHSUBDIR}

.if exists($M/Makefile.inc)
CPPFLAGS+= -I$M
.PATH.c: $M
.PATH.S: $M
.include "$M/Makefile.inc"
.endif
d25 1
a25 2
.PATH.c: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
.PATH.S: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
a32 1
CWARNFLAGS.gcc+= -Wno-unused-but-set-variable
@


1.4.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2017/02/03 17:28:58 roy Exp $
a10 2
GNUEFIDIST=	${GNUEFIDIR}/../../external/bsd/gnu-efi/dist

d13 1
a13 10
.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

LIBGNUEFI_ARCH?=	${MACHINE_ARCH}
LIBGNUEFI_CPU?=		${MACHINE_CPU}

.if ${LIBGNUEFI_ARCH} == "i386"
d16 1
a16 1
GNUEFIARCH=${LIBGNUEFI_ARCH}
d19 2
a20 9
.if defined(LIBGNUEFI_ARCH) && !empty(LIBGNUEFI_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${LIBGNUEFI_ARCH})
ARCHSUBDIR=	${LIBGNUEFI_ARCH}
.elif defined(MACHINE_ARCH) && !empty(MACHINE_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif defined(MACHINE_CPU) && !empty(MACHINE_CPU) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_CPU})
ARCHSUBDIR=	${MACHINE_CPU}
d23 1
a23 8
M= ${GNUEFIDIR}/arch/${ARCHSUBDIR}

.if exists($M/Makefile.inc)
CPPFLAGS+= -I$M
.PATH.c: $M
.PATH.S: $M
.include "$M/Makefile.inc"
.endif
d25 1
a25 2
.PATH.c: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
.PATH.S: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
a32 1
CWARNFLAGS.gcc+= -Wno-unused-but-set-variable
@


1.3
log
@Order library object build.
@
text
@d1 1
a1 1
#	$NetBSD$
a45 1
	@@echo done
@


1.2
log
@Sprinkle more done messages.
@
text
@d42 1
a42 1
lib${LIB}.o:: ${OBJS}
@


1.1
log
@Makefile glue to build libgnuefi; similar to libsa or libkern.
@
text
@d46 1
@


1.1.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2015/09/07 03:44:19 uebayasi Exp $
d42 1
a42 1
lib${LIB}.o:: ${OBJS:O}
a45 1
	@@echo done
@


1.1.12.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.12.1 2015/09/22 12:06:07 skrll Exp $
d46 1
@


1.1.12.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.12.2 2016/04/22 15:44:16 skrll Exp $
a10 2
GNUEFIDIST=	${GNUEFIDIR}/../../external/bsd/gnu-efi/dist

d13 1
a13 10
.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

LIBGNUEFI_ARCH?=	${MACHINE_ARCH}
LIBGNUEFI_CPU?=		${MACHINE_CPU}

.if ${LIBGNUEFI_ARCH} == "i386"
d16 1
a16 1
GNUEFIARCH=${LIBGNUEFI_ARCH}
d19 2
a20 9
.if defined(LIBGNUEFI_ARCH) && !empty(LIBGNUEFI_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${LIBGNUEFI_ARCH})
ARCHSUBDIR=	${LIBGNUEFI_ARCH}
.elif defined(MACHINE_ARCH) && !empty(MACHINE_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif defined(MACHINE_CPU) && !empty(MACHINE_CPU) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_CPU})
ARCHSUBDIR=	${MACHINE_CPU}
d23 1
a23 8
M= ${GNUEFIDIR}/arch/${ARCHSUBDIR}

.if exists($M/Makefile.inc)
CPPFLAGS+= -I$M
.PATH.c: $M
.PATH.S: $M
.include "$M/Makefile.inc"
.endif
d25 1
a25 2
.PATH.c: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
.PATH.S: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
a32 1
CWARNFLAGS.gcc+= -Wno-unused-but-set-variable
@


1.1.10.1
log
@file Makefile was added on branch tls-maxphys on 2014-08-20 00:04:29 +0000
@
text
@d1 47
@


1.1.10.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 47
#	$NetBSD$

LIB=	gnuefi
LIBISPRIVATE?= yes

GNUEFI_USE_CREAD?= no		# Read compressed kernels
GNUEFI_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
GNUEFI_USE_LOADFILE?= no		# Generic executable loading support
GNUEFI_ENABLE_LS_OP?= no		# Filesystems ls operation

CPPFLAGS=	-I${GNUEFIDIR} ${GNUEFICPPFLAGS} ${GNUEFIMISCCPPFLAGS}

.if ${MACHINE_ARCH} == "i386"
GNUEFIARCH=ia32
.else
GNUEFIARCH=${MACHINE_ARCH}
.endif

.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

.PATH.c: ${GNUEFIDIR} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/${GNUEFIARCH} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/runtime

SRCS+=	boxdraw.c smbios.c console.c crc.c data.c debug.c dpath.c \
	error.c event.c guid.c hand.c hw.c init.c lock.c \
	misc.c print.c sread.c str.c \
	rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \
	initplat.c math.c

COPTS.boxdraw.c= -Wno-missing-field-initializers
COPTS.guid.c= -Wno-missing-field-initializers
COPTS.smbios.c= -Wno-int-to-pointer-cast
COPTS.dpath.c= -Wno-missing-prototypes
COPTS.print.c= -Wno-missing-prototypes
COPTS.hw.c= -Wno-shadow

.include <bsd.lib.mk>

lib${LIB}.o:: ${OBJS}
	@@echo building standard ${LIB} library
	@@rm -f lib${LIB}.o
	@@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`

CPPFLAGS+=	-Wno-pointer-sign
@


1.1.10.3
log
@update from HEAD
@
text
@a10 2
GNUEFIDIST=	${GNUEFIDIR}/../../external/bsd/gnu-efi/dist

d13 1
a13 10
.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

LIBGNUEFI_ARCH?=	${MACHINE_ARCH}
LIBGNUEFI_CPU?=		${MACHINE_CPU}

.if ${LIBGNUEFI_ARCH} == "i386"
d16 1
a16 1
GNUEFIARCH=${LIBGNUEFI_ARCH}
d19 2
a20 9
.if defined(LIBGNUEFI_ARCH) && !empty(LIBGNUEFI_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${LIBGNUEFI_ARCH})
ARCHSUBDIR=	${LIBGNUEFI_ARCH}
.elif defined(MACHINE_ARCH) && !empty(MACHINE_ARCH) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif defined(MACHINE_CPU) && !empty(MACHINE_CPU) && \
	    exists(${GNUEFIDIR}/arch/${MACHINE_CPU})
ARCHSUBDIR=	${MACHINE_CPU}
d23 1
a23 8
M= ${GNUEFIDIR}/arch/${ARCHSUBDIR}

.if exists($M/Makefile.inc)
CPPFLAGS+= -I$M
.PATH.c: $M
.PATH.S: $M
.include "$M/Makefile.inc"
.endif
d25 1
a25 2
.PATH.c: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
.PATH.S: ${GNUEFIDIR} ${GNUEFIDIST}/lib/${GNUEFIARCH} ${GNUEFIDIST}/lib ${GNUEFIDIST}/lib/runtime
a32 1
CWARNFLAGS.gcc+= -Wno-unused-but-set-variable
d42 1
a42 1
lib${LIB}.o:: ${OBJS:O}
@


1.1.6.1
log
@file Makefile was added on branch tls-earlyentropy on 2014-08-10 06:56:02 +0000
@
text
@d1 47
@


1.1.6.2
log
@Rebase.
@
text
@a0 47
#	$NetBSD: Makefile,v 1.1 2014/04/28 19:09:29 jakllsch Exp $

LIB=	gnuefi
LIBISPRIVATE?= yes

GNUEFI_USE_CREAD?= no		# Read compressed kernels
GNUEFI_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
GNUEFI_USE_LOADFILE?= no		# Generic executable loading support
GNUEFI_ENABLE_LS_OP?= no		# Filesystems ls operation

CPPFLAGS=	-I${GNUEFIDIR} ${GNUEFICPPFLAGS} ${GNUEFIMISCCPPFLAGS}

.if ${MACHINE_ARCH} == "i386"
GNUEFIARCH=ia32
.else
GNUEFIARCH=${MACHINE_ARCH}
.endif

.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

.PATH.c: ${GNUEFIDIR} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/${GNUEFIARCH} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/runtime

SRCS+=	boxdraw.c smbios.c console.c crc.c data.c debug.c dpath.c \
	error.c event.c guid.c hand.c hw.c init.c lock.c \
	misc.c print.c sread.c str.c \
	rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \
	initplat.c math.c

COPTS.boxdraw.c= -Wno-missing-field-initializers
COPTS.guid.c= -Wno-missing-field-initializers
COPTS.smbios.c= -Wno-int-to-pointer-cast
COPTS.dpath.c= -Wno-missing-prototypes
COPTS.print.c= -Wno-missing-prototypes
COPTS.hw.c= -Wno-shadow

.include <bsd.lib.mk>

lib${LIB}.o:: ${OBJS}
	@@echo building standard ${LIB} library
	@@rm -f lib${LIB}.o
	@@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`

CPPFLAGS+=	-Wno-pointer-sign
@


1.1.4.1
log
@file Makefile was added on branch yamt-pagecache on 2014-05-22 11:41:04 +0000
@
text
@d1 47
@


1.1.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 47
#	$NetBSD$

LIB=	gnuefi
LIBISPRIVATE?= yes

GNUEFI_USE_CREAD?= no		# Read compressed kernels
GNUEFI_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
GNUEFI_USE_LOADFILE?= no		# Generic executable loading support
GNUEFI_ENABLE_LS_OP?= no		# Filesystems ls operation

CPPFLAGS=	-I${GNUEFIDIR} ${GNUEFICPPFLAGS} ${GNUEFIMISCCPPFLAGS}

.if ${MACHINE_ARCH} == "i386"
GNUEFIARCH=ia32
.else
GNUEFIARCH=${MACHINE_ARCH}
.endif

.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

.PATH.c: ${GNUEFIDIR} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/${GNUEFIARCH} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/runtime

SRCS+=	boxdraw.c smbios.c console.c crc.c data.c debug.c dpath.c \
	error.c event.c guid.c hand.c hw.c init.c lock.c \
	misc.c print.c sread.c str.c \
	rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \
	initplat.c math.c

COPTS.boxdraw.c= -Wno-missing-field-initializers
COPTS.guid.c= -Wno-missing-field-initializers
COPTS.smbios.c= -Wno-int-to-pointer-cast
COPTS.dpath.c= -Wno-missing-prototypes
COPTS.print.c= -Wno-missing-prototypes
COPTS.hw.c= -Wno-shadow

.include <bsd.lib.mk>

lib${LIB}.o:: ${OBJS}
	@@echo building standard ${LIB} library
	@@rm -f lib${LIB}.o
	@@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`

CPPFLAGS+=	-Wno-pointer-sign
@


1.1.2.1
log
@file Makefile was added on branch rmind-smpnet on 2014-05-18 17:46:08 +0000
@
text
@d1 47
@


1.1.2.2
log
@sync with head
@
text
@a0 47
#	$NetBSD$

LIB=	gnuefi
LIBISPRIVATE?= yes

GNUEFI_USE_CREAD?= no		# Read compressed kernels
GNUEFI_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
GNUEFI_USE_LOADFILE?= no		# Generic executable loading support
GNUEFI_ENABLE_LS_OP?= no		# Filesystems ls operation

CPPFLAGS=	-I${GNUEFIDIR} ${GNUEFICPPFLAGS} ${GNUEFIMISCCPPFLAGS}

.if ${MACHINE_ARCH} == "i386"
GNUEFIARCH=ia32
.else
GNUEFIARCH=${MACHINE_ARCH}
.endif

.if defined(GNUEFI_EXTRADIR)
.-include "${GNUEFI_EXTRADIR}/Makefile.inc"
.endif

.include <bsd.own.mk>

.PATH.c: ${GNUEFIDIR} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/${GNUEFIARCH} ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib ${GNUEFIDIR}/../../external/bsd/gnu-efi/dist/lib/runtime

SRCS+=	boxdraw.c smbios.c console.c crc.c data.c debug.c dpath.c \
	error.c event.c guid.c hand.c hw.c init.c lock.c \
	misc.c print.c sread.c str.c \
	rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \
	initplat.c math.c

COPTS.boxdraw.c= -Wno-missing-field-initializers
COPTS.guid.c= -Wno-missing-field-initializers
COPTS.smbios.c= -Wno-int-to-pointer-cast
COPTS.dpath.c= -Wno-missing-prototypes
COPTS.print.c= -Wno-missing-prototypes
COPTS.hw.c= -Wno-shadow

.include <bsd.lib.mk>

lib${LIB}.o:: ${OBJS}
	@@echo building standard ${LIB} library
	@@rm -f lib${LIB}.o
	@@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`

CPPFLAGS+=	-Wno-pointer-sign
@


