Makefile.inc revision 1.3
1# $NetBSD: Makefile.inc,v 1.3 2005/12/11 12:17:40 christos Exp $ 2 3# $OpenBSD: Makefile.inc,v 1.4 2001/03/29 03:58:17 mickey Exp $ 4# 5# NOTE: $S must correspond to the top of the 'sys' tree 6# $HPPA must correspond to the top of hppa tree 7 8SPMATHDIR= ${HPPA}/spmath 9 10SPMATHDST?= ${.OBJDIR}/lib/spmath 11 12SPMATH= ${SPMATHDST}/spmath.o 13SPMATH_PROF= ${SPMATHDST}/spmath.po 14 15SPMATHMAKE= \ 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}' 25 26${SPMATH}: .NOTMAIN __always_make_spmath 27 @echo making sure the spmath library is up to date... 28 @${SPMATHMAKE} spmath.o 29 30${SPMATH_PROF}: .NOTMAIN __always_make_spmath 31 @echo making sure the profiled spmath library is up to date... 32 @${SPMATHMAKE} spmath.po 33 34__CLEANSPMATH: .NOTMAIN __always_make_spmath 35 @echo cleaning the spmath library objects 36 @${SPMATHMAKE} clean 37 38clean: __CLEANSPMATH 39 40__DEPENDSPMATH: .NOTMAIN __always_make_spmath assym.h 41 @echo depending the spmath library objects 42 @${SPMATHMAKE} depend 43 44depend: __DEPENDSPMATH 45 46__always_make_spmath: .NOTMAIN 47 -mkdir -p ${SPMATHDST} 48 49