Home | History | Annotate | Line # | Download | only in libefi
Makefile.inc revision 1.2.40.2
      1  1.2.40.2     skrll #	$NetBSD: Makefile.inc,v 1.2.40.2 2016/04/22 15:44:10 skrll Exp $
      2       1.1    cherry #
      3       1.1    cherry #	Configuration variables (default values are below):
      4       1.1    cherry #
      5       1.1    cherry #	S	must be set to the top of the 'sys' tree.
      6       1.1    cherry #	EFIDST	may be set to the location of the directory where library
      7       1.1    cherry #		objects are to be built.  Defaults to ${.OBJDIR}/lib/efi.
      8       1.1    cherry #	EFIMISCCPPFLAGS
      9       1.1    cherry #		Miscellaneous cpp flags to be passed to the library's Makefile
     10       1.1    cherry #		when building.
     11       1.1    cherry #	EFIMISCMAKEFLAGS
     12       1.1    cherry #		Miscellaneous flags to be passed to the library's Makefile when
     13       1.1    cherry #		building.  See library's Makefile for more details about
     14       1.1    cherry #		supported flags and their default values.
     15       1.1    cherry 
     16       1.1    cherry # Default values:
     17       1.1    cherry EFIDST?=		${.OBJDIR}/efi/libefi
     18       1.1    cherry 
     19       1.1    cherry EFIDIR?=		$S/arch/ia64/stand/efi/libefi
     20       1.1    cherry EFILIB=			${EFIDST}/libefi.a
     21       1.1    cherry 
     22       1.1    cherry EFIMAKE= \
     23       1.1    cherry 	cd ${EFIDIR} && MAKEOBJDIRPREFIX= && unset MAKEOBJDIRPREFIX && \
     24       1.1    cherry 	    MAKEOBJDIR=${EFIDST} ${MAKE} \
     25       1.1    cherry 	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} \
     26       1.1    cherry 	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
     27       1.1    cherry 	    LD=${LD:Q} STRIP=${STRIP:Q} \
     28       1.1    cherry 	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
     29       1.1    cherry 	    EFICPPFLAGS=${CPPFLAGS:S@^-I.@-I../../.@g:Q} \
     30       1.1    cherry 	    EFIMISCCPPFLAGS=${EFIMISCCPPFLAGS:Q} \
     31       1.1    cherry 	    ${EFIMISCMAKEFLAGS}
     32       1.1    cherry 
     33       1.1    cherry ${EFILIB}:		.NOTMAIN __always_make_efilib
     34       1.1    cherry 	@echo making sure the efi library is up to date...
     35       1.1    cherry 	@${EFIMAKE} libefi.a
     36       1.1    cherry 
     37       1.1    cherry clean:			.NOTMAIN cleanefilib
     38       1.1    cherry cleanefilib:		.NOTMAIN
     39       1.1    cherry 	@echo cleaning the efi library objects
     40       1.1    cherry 	@if [ -d "${EFIDST}" ]; then ${EFIMAKE} clean; fi
     41       1.1    cherry 
     42       1.1    cherry cleandir distclean:	.NOTMAIN cleandirefilib
     43       1.1    cherry cleandirefilib:		.NOTMAIN
     44       1.1    cherry 	@echo cleandiring the efi library objects
     45       1.1    cherry 	@if [ -d "${EFIDST}" ]; then ${EFIMAKE} cleandir; fi
     46       1.2  kiyohara 	-rm -rf efi
     47       1.1    cherry 
     48       1.1    cherry dependall depend:	.NOTMAIN dependefilib
     49       1.1    cherry dependefilib:		.NOTMAIN __always_make_efilib
     50       1.1    cherry 	@echo depending the efi library objects
     51       1.1    cherry 	@${EFIMAKE} depend
     52       1.1    cherry 
     53       1.1    cherry __always_make_efilib:	.NOTMAIN
     54       1.1    cherry 	@mkdir -p ${EFIDST}
     55