1 # $NetBSD: Makefile.inc,v 1.3 2005/12/11 12:17:40 christos Exp $
3 # $OpenBSD: Makefile.inc,v 1.4 2001/03/29 03:58:17 mickey Exp $
5 # NOTE: $S must correspond to the top of the 'sys' tree
6 # $HPPA must correspond to the top of hppa tree
8 SPMATHDIR= ${HPPA}/spmath
10 SPMATHDST?= ${.OBJDIR}/lib/spmath
12 SPMATH= ${SPMATHDST}/spmath.o
13 SPMATH_PROF= ${SPMATHDST}/spmath.po
16 cd ${SPMATHDIR} && MAKEOBJDIRPREFIX= && unset MAKEOBJDIRPREFIX && \
17 MAKEOBJDIR=${SPMATHDST} ${MAKE} \
18 CC='${CC}' CFLAGS='${CFLAGS}' \
19 SPMATHCPPFLAGS='${CPPFLAGS:S@^-I.@-I. -I../../.@g}'\
20 AS='${AS}' AFLAGS='${AFLAGS}' \
21 LD='${LD}' STRIP='${STRIP}' \
22 CPP='${CPP}' STRIP='${STRIP}' AR='${AR}' \
23 NM='${NM}' LORDER='${LORDER}' \
24 XMACHINE='${MACHINE}' XMACHINE_ARCH='${MACHINE_ARCH}'
26 ${SPMATH}: .NOTMAIN .MAKE __always_make_spmath
27 @echo making sure the spmath library is up to date...
28 @${SPMATHMAKE} spmath.o
30 ${SPMATH_PROF}: .NOTMAIN .MAKE __always_make_spmath
31 @echo making sure the profiled spmath library is up to date...
32 @${SPMATHMAKE} spmath.po
34 __CLEANSPMATH: .NOTMAIN .MAKE __always_make_spmath
35 @echo cleaning the spmath library objects
40 __DEPENDSPMATH: .NOTMAIN .MAKE __always_make_spmath assym.h
41 @echo depending the spmath library objects
44 depend: __DEPENDSPMATH
46 __always_make_spmath: .NOTMAIN
47 -mkdir -p ${SPMATHDST}