Home | History | Annotate | Line # | Download | only in lib
      1  1.5  christos #	$NetBSD: Makefile.inc,v 1.6 2018/06/13 16:03:44 christos Exp $
      2  1.1   reinoud #
      3  1.1   reinoud #	Configuration variables (default values are below):
      4  1.1   reinoud #
      5  1.1   reinoud #	S	must be set to the top of the 'sys' tree.
      6  1.1   reinoud #	RISCOSDST	may be set to the location of the directory where library
      7  1.1   reinoud #		objects are to be built.  Defaults to ${.OBJDIR}/lib/riscos.
      8  1.1   reinoud #	RISCOSMISCCPPFLAGS
      9  1.1   reinoud #		Miscellaneous cpp flags to be passed to the library's Makefile
     10  1.1   reinoud #		when building.
     11  1.1   reinoud #	RISCOSMISCMAKEFLAGS
     12  1.1   reinoud #		Miscellaneous flags to be passed to the library's Makefile when
     13  1.1   reinoud #		building.  See library's Makefile for more details about
     14  1.1   reinoud #		supported flags and their default values.
     15  1.1   reinoud 
     16  1.1   reinoud # Default values:
     17  1.1   reinoud RISCOSDST?=		${.OBJDIR}/lib/riscos
     18  1.1   reinoud 
     19  1.1   reinoud RISCOSDIR=		${S}/arch/acorn32/stand/lib
     20  1.1   reinoud RISCOSLIB=		${RISCOSDST}/libriscos.a
     21  1.1   reinoud 
     22  1.1   reinoud RISCOSMAKE= \
     23  1.1   reinoud 	cd ${RISCOSDIR} && MAKEOBJDIRPREFIX= && unset MAKEOBJDIRPREFIX && \
     24  1.1   reinoud 	  MAKEOBJDIR=${RISCOSDST} ${MAKE} \
     25  1.6  christos 	    CC=${CC:q} CFLAGS=${CFLAGS:q} \
     26  1.4  christos 	    AS=${AS:q} AFLAGS=${AFLAGS:q} \
     27  1.4  christos 	    LD=${LD:q} STRIP=${STRIP:q} \
     28  1.4  christos 	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:q} \
     29  1.4  christos 	    RISCOSCPPFLAGS=${CPPFLAGS:S@^-I.@-I../../.@g:q} \
     30  1.4  christos 	    RISCOSMISCCPPFLAGS=${RISCOSMISCCPPFLAGS:q} \
     31  1.1   reinoud 	    ${RISCOSMISCMAKEFLAGS}
     32  1.1   reinoud 
     33  1.1   reinoud ${RISCOSLIB}:		.NOTMAIN .MAKE __always_make_riscoslib
     34  1.1   reinoud 	@echo making sure the riscos library is up to date...
     35  1.1   reinoud 	@${RISCOSMAKE} libriscos.a
     36  1.1   reinoud 
     37  1.1   reinoud clean:			.NOTMAIN cleanriscoslib
     38  1.1   reinoud cleanriscoslib:		.NOTMAIN
     39  1.1   reinoud 	@echo cleaning the riscos library objects
     40  1.1   reinoud 	@if [ -d "${RISCOSDST}" ]; then ${RISCOSMAKE} clean; fi
     41  1.1   reinoud 
     42  1.1   reinoud cleandir distclean:	.NOTMAIN cleandirriscoslib
     43  1.1   reinoud cleandirriscoslib:	.NOTMAIN
     44  1.1   reinoud 	@echo cleandiring the riscos library objects
     45  1.1   reinoud 	@if [ -d "${RISCOSDST}" ]; then ${RISCOSMAKE} cleandir; fi
     46  1.1   reinoud 
     47  1.1   reinoud depend:			.NOTMAIN dependriscoslib
     48  1.1   reinoud dependriscoslib:	.NOTMAIN .MAKE __always_make_riscoslib
     49  1.1   reinoud 	@echo depending the riscos library objects
     50  1.1   reinoud 	@${RISCOSMAKE} depend
     51  1.1   reinoud 
     52  1.1   reinoud __always_make_riscoslib:	.NOTMAIN
     53  1.1   reinoud 	@mkdir -p ${RISCOSDST}
     54  1.1   reinoud 
     55  1.1   reinoud .PHONY: __always_make_riscoslib
     56  1.1   reinoud .PHONY: cleanriscoslib cleandirriscoslib dependriscoslib
     57