Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / i386 / stand / lib / Makefile.inc
blob085efe5137fa8c8477ae3aa9463d6f20f9f465f4
1 #       $NetBSD: Makefile.inc,v 1.11.18.3 2004/09/21 13:17:10 skrll Exp $
3 #       Configuration variables (default values are below):
5 #       S       must be set to the top of the 'sys' tree.
6 #       I386DST may be set to the location of the directory where library
7 #               objects are to be built.  Defaults to ${.OBJDIR}/lib/i386.
8 #       I386MISCCPPFLAGS
9 #               Miscellaneous cpp flags to be passed to the library's Makefile
10 #               when building.
11 #       I386MISCMAKEFLAGS
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.
16 # Default values:
17 I386DST?=               ${.OBJDIR}/lib/i386
19 #I386DIR=               $S/arch/i386/stand/lib
20 I386LIB=                ${I386DST}/libi386.a
22 I386MAKE= \
23         cd ${I386DIR} && MAKEOBJDIRPREFIX= && unset MAKEOBJDIRPREFIX && \
24             MAKEOBJDIR=${I386DST} ${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             I386CPPFLAGS=${CPPFLAGS:S@^-I.@-I../../.@g:Q} \
30             I386MISCCPPFLAGS=${I386MISCCPPFLAGS:Q} \
31             ${I386MISCMAKEFLAGS}
33 ${I386LIB}:             .NOTMAIN __always_make_i386lib
34         @echo making sure the i386 library is up to date...
35         @${I386MAKE} libi386.a
37 clean:                  .NOTMAIN cleani386lib
38 cleani386lib:           .NOTMAIN
39         @echo cleaning the i386 library objects
40         @if [ -d "${I386DST}" ]; then ${I386MAKE} clean; fi
42 cleandir distclean:     .NOTMAIN cleandiri386lib
43 cleandiri386lib:        .NOTMAIN
44         @echo cleandiring the i386 library objects
45         @if [ -d "${I386DST}" ]; then ${I386MAKE} cleandir; fi
47 dependall depend:       .NOTMAIN dependi386lib
48 dependi386lib:          .NOTMAIN __always_make_i386lib
49         @echo depending the i386 library objects
50         @${I386MAKE} depend
52 __always_make_i386lib:  .NOTMAIN
53         @mkdir -p ${I386DST}