head	1.5;
access;
symbols
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.40
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.38
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.4.6.1
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	thorpej-ifq:1.5.0.36
	thorpej-ifq-base:1.5
	thorpej-altq-separation:1.5.0.34
	thorpej-altq-separation-base:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.32
	netbsd-10-base:1.5
	bouyer-sunxi-drm:1.5.0.30
	bouyer-sunxi-drm-base:1.5
	netbsd-9-3-RELEASE:1.5
	thorpej-i2c-spi-conf2:1.5.0.28
	thorpej-i2c-spi-conf2-base:1.5
	thorpej-futex2:1.5.0.26
	thorpej-futex2-base:1.5
	thorpej-cfargs2:1.5.0.24
	thorpej-cfargs2-base:1.5
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.22
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.5.0.20
	cjep_staticlib_x-base:1.5
	thorpej-i2c-spi-conf:1.5.0.18
	thorpej-i2c-spi-conf-base:1.5
	thorpej-cfargs:1.5.0.16
	thorpej-cfargs-base:1.5
	thorpej-futex:1.5.0.14
	thorpej-futex-base:1.5
	netbsd-9-1-RELEASE:1.5
	bouyer-xenpvh-base2:1.5
	phil-wifi-20200421:1.5
	bouyer-xenpvh-base1:1.5
	phil-wifi-20200411:1.5
	bouyer-xenpvh:1.5.0.12
	bouyer-xenpvh-base:1.5
	is-mlppp:1.5.0.10
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.4.6.1
	ad-namecache-base3:1.5
	netbsd-9-0-RELEASE:1.5
	netbsd-9-0-RC2:1.5
	ad-namecache-base2:1.5
	ad-namecache-base1:1.5
	ad-namecache:1.5.0.8
	ad-namecache-base:1.5
	netbsd-9-0-RC1:1.5
	phil-wifi-20191119:1.5
	netbsd-9:1.5.0.6
	netbsd-9-base:1.5
	phil-wifi-20190609:1.5
	netbsd-8-1-RELEASE:1.4.6.1
	netbsd-8-1-RC1:1.4.6.1
	isaki-audio2:1.5.0.4
	isaki-audio2-base:1.5
	pgoyette-compat-merge-20190127:1.4.12.1
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	pgoyette-compat-1126:1.5
	pgoyette-compat-1020:1.5
	pgoyette-compat-0930:1.5
	pgoyette-compat-0906:1.5
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.5
	netbsd-8-0-RELEASE:1.4.6.1
	phil-wifi:1.5.0.2
	phil-wifi-base:1.5
	pgoyette-compat-0625:1.5
	netbsd-8-0-RC2:1.4.6.1
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	netbsd-8-0-RC1:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.4.0.12
	pgoyette-compat-base:1.4
	netbsd-7-1-1-RELEASE:1.1
	tls-maxphys-base-20171202:1.4
	matt-nb8-mediatek:1.4.0.10
	matt-nb8-mediatek-base:1.4
	nick-nhusb-base-20170825:1.4
	perseant-stdc-iso10646:1.4.0.8
	perseant-stdc-iso10646-base:1.4
	netbsd-8:1.4.0.6
	netbsd-8-base:1.4
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.4
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	jdolecek-ncq:1.4.0.2
	jdolecek-ncq-base:1.4
	pgoyette-localcount-20170320:1.4
	netbsd-7-1:1.1.0.18
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	nick-nhusb-base-20170204:1.4
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.3.0.4
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.3
	netbsd-7-1-RC1:1.1
	nick-nhusb-base-20161204:1.3
	pgoyette-localcount-20161104:1.3
	netbsd-7-0-2-RELEASE:1.1
	nick-nhusb-base-20161004:1.3
	localcount-20160914:1.3
	netbsd-7-nhusb:1.1.0.16
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.3
	pgoyette-localcount-20160726:1.3
	pgoyette-localcount:1.3.0.2
	pgoyette-localcount-base:1.3
	nick-nhusb-base-20160907:1.3
	nick-nhusb-base-20160529:1.3
	netbsd-7-0-1-RELEASE:1.1
	nick-nhusb-base-20160422:1.3
	nick-nhusb-base-20160319:1.2
	nick-nhusb-base-20151226:1.2
	netbsd-7-0:1.1.0.14
	netbsd-7-0-RELEASE:1.1
	nick-nhusb-base-20150921:1.2
	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.5
date	2018.05.27.01.14.50;	author christos;	state Exp;
branches;
next	1.4;
commitid	e0gagjXvNVR6bSDA;

1.4
date	2017.01.24.11.09.14;	author nonaka;	state Exp;
branches
	1.4.6.1
	1.4.12.1;
next	1.3;
commitid	BVmLyuu73R5U7dDz;

1.3
date	2016.03.22.08.25.23;	author mrg;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;
commitid	lmOvAeOuRxFV8CZy;

1.2
date	2015.09.06.15.34.55;	author uebayasi;	state Exp;
branches;
next	1.1;
commitid	xTQ0LIgWuLiLScAy;

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.6.1
date	2018.06.09.15.35.37;	author martin;	state Exp;
branches;
next	;
commitid	LCIzeghK1s7AwCFA;

1.4.12.1
date	2018.06.25.07.26.04;	author pgoyette;	state Exp;
branches;
next	;
commitid	8PtAu9af7VvhiDHA;

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

1.3.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.5
log
@- Introduce :q modifier for make variables and make it double escape $'s so
  that passing variables to recursive makes with :q works as expected.
- Revert :Q to work as before.
- Adjust makefiles that use recursive make to use :q

Discussed on tech-toolchain@@
XXX: pullup 8
@
text
@#	$NetBSD: Makefile.inc,v 1.4 2017/01/24 11:09:14 nonaka Exp $
#
#	Configuration variables (default values are below):
#
#	S	must be set to the top of the 'sys' tree.
#	GNUEFIDST	may be set to the location of the directory where library
#		objects are to be built.  Defaults to ${.OBJDIR}/lib/gnuefi.
#	GNUEFI_AS	may be set to 'obj' to build a object from the library's
#		object files.  (Otherwise, a library will be built.)
#		Defaults to 'library'.
#	GNUEFIMISCCPPFLAGS
#		Miscellaneous cpp flags to be passed to the library's Makefile
#		when building.
#	GNUEFIMISCMAKEFLAGS
#		Miscellaneous flags to be passed to the library's Makefile when
#		building.  See library's Makefile for more details about
#		supported flags and their default values.

# Default values:
GNUEFIDST?=		${.OBJDIR}/lib/gnuefi
GNUEFI_AS?=		library
GNUEFIDOTDIR?= ../../.

CWARNFLAGS.clang+=	-Wno-format-extra-args

GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:q}/lib/libgnuefi
.if (${GNUEFI_AS} == "obj")
GNUEFILIB=		${GNUEFIDST}/libgnuefi.o
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi.po
.else
GNUEFILIB=		${GNUEFIDST}/libgnuefi.a
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi_p.a
.endif
ZLIBSRCDIR:=	${.PARSEDIR}/../../../common/dist/zlib
GNUEFIMISCCPPFLAGS+=-I${ZLIBSRCDIR}

GNUEFIMAKE= \
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:q} \
	    CC=${CC:q} CFLAGS=${CFLAGS:q} CPUFLAGS= \
	    AS=${AS:q} AFLAGS=${AFLAGS:q} \
	    LORDER=${LORDER:q} \
	    TSORT=${TSORT:q} \
	    LD=${LD:q} STRIP=${STRIP:q} \
	    AR=${AR:q} NM=${NM:q} \
	    RANLIB=${RANLIB:q} SIZE=${SIZE:q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:q} \
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:q} \
	    ${GNUEFIMISCMAKEFLAGS}

${GNUEFILIB}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi.a
.else
	@@${GNUEFIMAKE} libgnuefi.o
.endif

${GNUEFILIB_PROF}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the profiled gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi_p.a
.else
	@@${GNUEFIMAKE} libgnuefi.po
.endif

clean:			.NOTMAIN cleangnuefilib
cleangnuefilib:		.NOTMAIN
	@@echo cleaning the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} clean; fi

cleandir distclean:	.NOTMAIN cleandirgnuefilib
cleandirgnuefilib:		.NOTMAIN
	@@echo cleandiring the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} cleandir; fi

dependall depend:	.NOTMAIN dependgnuefilib
dependgnuefilib:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo depending the gnuefi library objects
	@@${GNUEFIMAKE} depend

__always_make_gnuefilib:	.NOTMAIN
	@@mkdir -p ${GNUEFIDST}

.PHONY: __always_make_gnuefilib
.PHONY: cleangnuefilib cleandirgnuefilib dependgnuefilib
@


1.4
log
@Initial commit of native amd64 EFI boot loader.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2016/03/22 08:25:23 mrg Exp $
d26 1
a26 1
GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:Q}/lib/libgnuefi
d38 13
a50 13
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:Q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:Q} \
	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} CPUFLAGS= \
	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
	    LORDER=${LORDER:Q} \
	    TSORT=${TSORT:Q} \
	    LD=${LD:Q} STRIP=${STRIP:Q} \
	    AR=${AR:Q} NM=${NM:Q} \
	    RANLIB=${RANLIB:Q} SIZE=${SIZE:Q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:Q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:Q} \
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:Q} \
@


1.4.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2018/05/27 01:14:50 christos Exp $
d26 1
a26 1
GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:q}/lib/libgnuefi
d38 13
a50 13
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:q} \
	    CC=${CC:q} CFLAGS=${CFLAGS:q} CPUFLAGS= \
	    AS=${AS:q} AFLAGS=${AFLAGS:q} \
	    LORDER=${LORDER:q} \
	    TSORT=${TSORT:q} \
	    LD=${LD:q} STRIP=${STRIP:q} \
	    AR=${AR:q} NM=${NM:q} \
	    RANLIB=${RANLIB:q} SIZE=${SIZE:q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:q} \
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:q} \
@


1.4.6.1
log
@Pull up following revision(s) (requested by christos in ticket #870):

	sys/lib/libgnuefi/Makefile.inc: revision 1.5
	external/mit/xorg/xorg-pkg-ver.mk: revision 1.9
	sys/arch/i386/stand/lib/Makefile.inc: revision 1.17
	sys/compat/common/Makefile.inc: revision 1.25
	usr.bin/make/unit-tests/varquote.exp: revision 1.1, 1.2
	sys/lib/libsa/Makefile.inc: revision 1.24
	usr.bin/make/var.c: revision 1.220
	sys/arch/ia64/stand/efi/libefi/Makefile.inc: revision 1.5
	sys/arch/hppa/spmath/Makefile.inc: revision 1.10
	usr.bin/make/unit-tests/varquote.mk: revision 1.1, 1.2
	usr.bin/make/unit-tests/Makefile: revision 1.53
	sys/lib/libkern/Makefile.inc: revision 1.45
	sys/arch/acorn32/stand/lib/Makefile.inc: revision 1.4
	sys/arch/m68k/fpsp/Makefile.inc: revision 1.21
	usr.bin/make/make.1: revision 1.273
	sys/lib/libz/Makefile.inc: revision 1.17

- Introduce :q modifier for make variables and make it double escape $'s so
  that passing variables to recursive makes with :q works as expected.
- Adjust makefiles that use recursive make to use :q

Discussed on tech-toolchain@@

XXX: pullup 8
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2017/01/24 11:09:14 nonaka Exp $
d26 1
a26 1
GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:q}/lib/libgnuefi
d38 13
a50 13
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:q} \
	    CC=${CC:q} CFLAGS=${CFLAGS:q} CPUFLAGS= \
	    AS=${AS:q} AFLAGS=${AFLAGS:q} \
	    LORDER=${LORDER:q} \
	    TSORT=${TSORT:q} \
	    LD=${LD:q} STRIP=${STRIP:q} \
	    AR=${AR:q} NM=${NM:q} \
	    RANLIB=${RANLIB:q} SIZE=${SIZE:q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:q} \
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:q} \
@


1.3
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.inc,v 1.2 2015/09/06 15:34:55 uebayasi Exp $
d50 1
@


1.3.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2017/01/24 11:09:14 nonaka Exp $
a49 1
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:Q} \
@


1.3.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2017/01/24 11:09:14 nonaka Exp $
a49 1
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:Q} \
@


1.2
log
@In kernel lib build, print message when things not only start bug also end.
@
text
@d1 1
a1 1
#	$NetBSD$
a58 1
	@@echo done
a66 1
	@@echo done
a71 1
	@@echo done
a76 1
	@@echo done
a81 1
	@@echo done
@


1.1
log
@Makefile glue to build libgnuefi; similar to libsa or libkern.
@
text
@d59 1
d68 1
d74 1
d80 1
d86 1
@


1.1.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2015/09/06 15:34:55 uebayasi Exp $
a58 1
	@@echo done
a66 1
	@@echo done
a71 1
	@@echo done
a76 1
	@@echo done
a81 1
	@@echo done
@


1.1.12.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.12.1 2015/09/22 12:06:07 skrll Exp $
d59 1
d68 1
d74 1
d80 1
d86 1
@


1.1.12.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.12.2 2016/04/22 15:44:16 skrll Exp $
a49 1
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:Q} \
@


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


1.1.10.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 87
#	$NetBSD$
#
#	Configuration variables (default values are below):
#
#	S	must be set to the top of the 'sys' tree.
#	GNUEFIDST	may be set to the location of the directory where library
#		objects are to be built.  Defaults to ${.OBJDIR}/lib/gnuefi.
#	GNUEFI_AS	may be set to 'obj' to build a object from the library's
#		object files.  (Otherwise, a library will be built.)
#		Defaults to 'library'.
#	GNUEFIMISCCPPFLAGS
#		Miscellaneous cpp flags to be passed to the library's Makefile
#		when building.
#	GNUEFIMISCMAKEFLAGS
#		Miscellaneous flags to be passed to the library's Makefile when
#		building.  See library's Makefile for more details about
#		supported flags and their default values.

# Default values:
GNUEFIDST?=		${.OBJDIR}/lib/gnuefi
GNUEFI_AS?=		library
GNUEFIDOTDIR?= ../../.

CWARNFLAGS.clang+=	-Wno-format-extra-args

GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:Q}/lib/libgnuefi
.if (${GNUEFI_AS} == "obj")
GNUEFILIB=		${GNUEFIDST}/libgnuefi.o
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi.po
.else
GNUEFILIB=		${GNUEFIDST}/libgnuefi.a
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi_p.a
.endif
ZLIBSRCDIR:=	${.PARSEDIR}/../../../common/dist/zlib
GNUEFIMISCCPPFLAGS+=-I${ZLIBSRCDIR}

GNUEFIMAKE= \
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:Q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:Q} \
	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} CPUFLAGS= \
	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
	    LORDER=${LORDER:Q} \
	    TSORT=${TSORT:Q} \
	    LD=${LD:Q} STRIP=${STRIP:Q} \
	    AR=${AR:Q} NM=${NM:Q} \
	    RANLIB=${RANLIB:Q} SIZE=${SIZE:Q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:Q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:Q} \
	    ${GNUEFIMISCMAKEFLAGS}

${GNUEFILIB}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi.a
.else
	@@${GNUEFIMAKE} libgnuefi.o
.endif

${GNUEFILIB_PROF}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the profiled gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi_p.a
.else
	@@${GNUEFIMAKE} libgnuefi.po
.endif

clean:			.NOTMAIN cleangnuefilib
cleangnuefilib:		.NOTMAIN
	@@echo cleaning the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} clean; fi

cleandir distclean:	.NOTMAIN cleandirgnuefilib
cleandirgnuefilib:		.NOTMAIN
	@@echo cleandiring the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} cleandir; fi

dependall depend:	.NOTMAIN dependgnuefilib
dependgnuefilib:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo depending the gnuefi library objects
	@@${GNUEFIMAKE} depend

__always_make_gnuefilib:	.NOTMAIN
	@@mkdir -p ${GNUEFIDST}

.PHONY: __always_make_gnuefilib
.PHONY: cleangnuefilib cleandirgnuefilib dependgnuefilib
@


1.1.10.3
log
@update from HEAD
@
text
@a49 1
	    LIBGNUEFI_ARCH=${LIBGNUEFI_ARCH:Q} \
@


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


1.1.6.2
log
@Rebase.
@
text
@a0 87
#	$NetBSD: Makefile.inc,v 1.1 2014/04/28 19:09:29 jakllsch Exp $
#
#	Configuration variables (default values are below):
#
#	S	must be set to the top of the 'sys' tree.
#	GNUEFIDST	may be set to the location of the directory where library
#		objects are to be built.  Defaults to ${.OBJDIR}/lib/gnuefi.
#	GNUEFI_AS	may be set to 'obj' to build a object from the library's
#		object files.  (Otherwise, a library will be built.)
#		Defaults to 'library'.
#	GNUEFIMISCCPPFLAGS
#		Miscellaneous cpp flags to be passed to the library's Makefile
#		when building.
#	GNUEFIMISCMAKEFLAGS
#		Miscellaneous flags to be passed to the library's Makefile when
#		building.  See library's Makefile for more details about
#		supported flags and their default values.

# Default values:
GNUEFIDST?=		${.OBJDIR}/lib/gnuefi
GNUEFI_AS?=		library
GNUEFIDOTDIR?= ../../.

CWARNFLAGS.clang+=	-Wno-format-extra-args

GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:Q}/lib/libgnuefi
.if (${GNUEFI_AS} == "obj")
GNUEFILIB=		${GNUEFIDST}/libgnuefi.o
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi.po
.else
GNUEFILIB=		${GNUEFIDST}/libgnuefi.a
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi_p.a
.endif
ZLIBSRCDIR:=	${.PARSEDIR}/../../../common/dist/zlib
GNUEFIMISCCPPFLAGS+=-I${ZLIBSRCDIR}

GNUEFIMAKE= \
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:Q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:Q} \
	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} CPUFLAGS= \
	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
	    LORDER=${LORDER:Q} \
	    TSORT=${TSORT:Q} \
	    LD=${LD:Q} STRIP=${STRIP:Q} \
	    AR=${AR:Q} NM=${NM:Q} \
	    RANLIB=${RANLIB:Q} SIZE=${SIZE:Q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:Q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:Q} \
	    ${GNUEFIMISCMAKEFLAGS}

${GNUEFILIB}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi.a
.else
	@@${GNUEFIMAKE} libgnuefi.o
.endif

${GNUEFILIB_PROF}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the profiled gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi_p.a
.else
	@@${GNUEFIMAKE} libgnuefi.po
.endif

clean:			.NOTMAIN cleangnuefilib
cleangnuefilib:		.NOTMAIN
	@@echo cleaning the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} clean; fi

cleandir distclean:	.NOTMAIN cleandirgnuefilib
cleandirgnuefilib:		.NOTMAIN
	@@echo cleandiring the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} cleandir; fi

dependall depend:	.NOTMAIN dependgnuefilib
dependgnuefilib:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo depending the gnuefi library objects
	@@${GNUEFIMAKE} depend

__always_make_gnuefilib:	.NOTMAIN
	@@mkdir -p ${GNUEFIDST}

.PHONY: __always_make_gnuefilib
.PHONY: cleangnuefilib cleandirgnuefilib dependgnuefilib
@


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


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 87
#	$NetBSD$
#
#	Configuration variables (default values are below):
#
#	S	must be set to the top of the 'sys' tree.
#	GNUEFIDST	may be set to the location of the directory where library
#		objects are to be built.  Defaults to ${.OBJDIR}/lib/gnuefi.
#	GNUEFI_AS	may be set to 'obj' to build a object from the library's
#		object files.  (Otherwise, a library will be built.)
#		Defaults to 'library'.
#	GNUEFIMISCCPPFLAGS
#		Miscellaneous cpp flags to be passed to the library's Makefile
#		when building.
#	GNUEFIMISCMAKEFLAGS
#		Miscellaneous flags to be passed to the library's Makefile when
#		building.  See library's Makefile for more details about
#		supported flags and their default values.

# Default values:
GNUEFIDST?=		${.OBJDIR}/lib/gnuefi
GNUEFI_AS?=		library
GNUEFIDOTDIR?= ../../.

CWARNFLAGS.clang+=	-Wno-format-extra-args

GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:Q}/lib/libgnuefi
.if (${GNUEFI_AS} == "obj")
GNUEFILIB=		${GNUEFIDST}/libgnuefi.o
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi.po
.else
GNUEFILIB=		${GNUEFIDST}/libgnuefi.a
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi_p.a
.endif
ZLIBSRCDIR:=	${.PARSEDIR}/../../../common/dist/zlib
GNUEFIMISCCPPFLAGS+=-I${ZLIBSRCDIR}

GNUEFIMAKE= \
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:Q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:Q} \
	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} CPUFLAGS= \
	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
	    LORDER=${LORDER:Q} \
	    TSORT=${TSORT:Q} \
	    LD=${LD:Q} STRIP=${STRIP:Q} \
	    AR=${AR:Q} NM=${NM:Q} \
	    RANLIB=${RANLIB:Q} SIZE=${SIZE:Q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:Q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:Q} \
	    ${GNUEFIMISCMAKEFLAGS}

${GNUEFILIB}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi.a
.else
	@@${GNUEFIMAKE} libgnuefi.o
.endif

${GNUEFILIB_PROF}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the profiled gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi_p.a
.else
	@@${GNUEFIMAKE} libgnuefi.po
.endif

clean:			.NOTMAIN cleangnuefilib
cleangnuefilib:		.NOTMAIN
	@@echo cleaning the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} clean; fi

cleandir distclean:	.NOTMAIN cleandirgnuefilib
cleandirgnuefilib:		.NOTMAIN
	@@echo cleandiring the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} cleandir; fi

dependall depend:	.NOTMAIN dependgnuefilib
dependgnuefilib:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo depending the gnuefi library objects
	@@${GNUEFIMAKE} depend

__always_make_gnuefilib:	.NOTMAIN
	@@mkdir -p ${GNUEFIDST}

.PHONY: __always_make_gnuefilib
.PHONY: cleangnuefilib cleandirgnuefilib dependgnuefilib
@


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


1.1.2.2
log
@sync with head
@
text
@a0 87
#	$NetBSD$
#
#	Configuration variables (default values are below):
#
#	S	must be set to the top of the 'sys' tree.
#	GNUEFIDST	may be set to the location of the directory where library
#		objects are to be built.  Defaults to ${.OBJDIR}/lib/gnuefi.
#	GNUEFI_AS	may be set to 'obj' to build a object from the library's
#		object files.  (Otherwise, a library will be built.)
#		Defaults to 'library'.
#	GNUEFIMISCCPPFLAGS
#		Miscellaneous cpp flags to be passed to the library's Makefile
#		when building.
#	GNUEFIMISCMAKEFLAGS
#		Miscellaneous flags to be passed to the library's Makefile when
#		building.  See library's Makefile for more details about
#		supported flags and their default values.

# Default values:
GNUEFIDST?=		${.OBJDIR}/lib/gnuefi
GNUEFI_AS?=		library
GNUEFIDOTDIR?= ../../.

CWARNFLAGS.clang+=	-Wno-format-extra-args

GNUEFIDIR=		${S:S@@^.@@${GNUEFIDOTDIR}@@:Q}/lib/libgnuefi
.if (${GNUEFI_AS} == "obj")
GNUEFILIB=		${GNUEFIDST}/libgnuefi.o
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi.po
.else
GNUEFILIB=		${GNUEFIDST}/libgnuefi.a
GNUEFILIB_PROF=	${GNUEFIDST}/libgnuefi_p.a
.endif
ZLIBSRCDIR:=	${.PARSEDIR}/../../../common/dist/zlib
GNUEFIMISCCPPFLAGS+=-I${ZLIBSRCDIR}

GNUEFIMAKE= \
	cd ${GNUEFIDST} && ${MAKE} -f ${GNUEFIDIR:Q}/Makefile \
	    GNUEFIDIR=${GNUEFIDIR:Q} \
	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} CPUFLAGS= \
	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
	    LORDER=${LORDER:Q} \
	    TSORT=${TSORT:Q} \
	    LD=${LD:Q} STRIP=${STRIP:Q} \
	    AR=${AR:Q} NM=${NM:Q} \
	    RANLIB=${RANLIB:Q} SIZE=${SIZE:Q} \
	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
	    GNUEFICPPFLAGS=${CPPFLAGS:S@@^-I.@@-I${GNUEFIDOTDIR}@@g:Q} \
	    GNUEFIMISCCPPFLAGS=${GNUEFIMISCCPPFLAGS:Q} \
	    ${GNUEFIMISCMAKEFLAGS}

${GNUEFILIB}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi.a
.else
	@@${GNUEFIMAKE} libgnuefi.o
.endif

${GNUEFILIB_PROF}:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo making sure the profiled gnuefi library is up to date...
.if (${GNUEFI_AS} == "library")
	@@${GNUEFIMAKE} libgnuefi_p.a
.else
	@@${GNUEFIMAKE} libgnuefi.po
.endif

clean:			.NOTMAIN cleangnuefilib
cleangnuefilib:		.NOTMAIN
	@@echo cleaning the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} clean; fi

cleandir distclean:	.NOTMAIN cleandirgnuefilib
cleandirgnuefilib:		.NOTMAIN
	@@echo cleandiring the gnuefi library objects
	@@if [ -d "${GNUEFIDST}" ]; then ${GNUEFIMAKE} cleandir; fi

dependall depend:	.NOTMAIN dependgnuefilib
dependgnuefilib:		.NOTMAIN .MAKE __always_make_gnuefilib
	@@echo depending the gnuefi library objects
	@@${GNUEFIMAKE} depend

__always_make_gnuefilib:	.NOTMAIN
	@@mkdir -p ${GNUEFIDST}

.PHONY: __always_make_gnuefilib
.PHONY: cleangnuefilib cleandirgnuefilib dependgnuefilib
@


