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