11556Srgrimes# $NetBSD: Makefile.inc,v 1.3 2005/12/11 12:17:40 christos Exp $ 21556Srgrimes 31556Srgrimes# $OpenBSD: Makefile.inc,v 1.4 2001/03/29 03:58:17 mickey Exp $ 41556Srgrimes# 51556Srgrimes# NOTE: $S must correspond to the top of the 'sys' tree 61556Srgrimes# $HPPA must correspond to the top of hppa tree 71556Srgrimes 81556SrgrimesSPMATHDIR= ${HPPA}/spmath 91556Srgrimes 101556SrgrimesSPMATHDST?= ${.OBJDIR}/lib/spmath 111556Srgrimes 121556SrgrimesSPMATH= ${SPMATHDST}/spmath.o 131556SrgrimesSPMATH_PROF= ${SPMATHDST}/spmath.po 141556Srgrimes 151556SrgrimesSPMATHMAKE= \ 161556Srgrimes cd ${SPMATHDIR} && MAKEOBJDIRPREFIX= && unset MAKEOBJDIRPREFIX && \ 171556Srgrimes MAKEOBJDIR=${SPMATHDST} ${MAKE} \ 181556Srgrimes CC='${CC}' CFLAGS='${CFLAGS}' \ 191556Srgrimes SPMATHCPPFLAGS='${CPPFLAGS:S@^-I.@-I. -I../../.@g}'\ 201556Srgrimes AS='${AS}' AFLAGS='${AFLAGS}' \ 211556Srgrimes LD='${LD}' STRIP='${STRIP}' \ 221556Srgrimes CPP='${CPP}' STRIP='${STRIP}' AR='${AR}' \ 231556Srgrimes NM='${NM}' LORDER='${LORDER}' \ 241556Srgrimes XMACHINE='${MACHINE}' XMACHINE_ARCH='${MACHINE_ARCH}' 251556Srgrimes 261556Srgrimes${SPMATH}: .NOTMAIN .MAKE __always_make_spmath 271556Srgrimes @echo making sure the spmath library is up to date... 281556Srgrimes @${SPMATHMAKE} spmath.o 291556Srgrimes 301556Srgrimes${SPMATH_PROF}: .NOTMAIN .MAKE __always_make_spmath 311556Srgrimes @echo making sure the profiled spmath library is up to date... 321556Srgrimes @${SPMATHMAKE} spmath.po 331556Srgrimes 341556Srgrimes__CLEANSPMATH: .NOTMAIN .MAKE __always_make_spmath 351556Srgrimes @echo cleaning the spmath library objects 361556Srgrimes @${SPMATHMAKE} clean 371556Srgrimes 381556Srgrimesclean: __CLEANSPMATH 3936049Scharnier 4036049Scharnier__DEPENDSPMATH: .NOTMAIN .MAKE __always_make_spmath assym.h 4136049Scharnier @echo depending the spmath library objects 4236049Scharnier @${SPMATHMAKE} depend 4350471Speter 441556Srgrimesdepend: __DEPENDSPMATH 451556Srgrimes 461556Srgrimes__always_make_spmath: .NOTMAIN 471556Srgrimes -mkdir -p ${SPMATHDST} 481556Srgrimes 491556Srgrimes