Makefile.inc revision 1.4
11.4Sdsl#	$NetBSD: Makefile.inc,v 1.4 2006/02/04 11:23:45 dsl Exp $
21.1Sfredette
31.1Sfredette#	$OpenBSD: Makefile.inc,v 1.4 2001/03/29 03:58:17 mickey Exp $
41.1Sfredette#
51.1Sfredette#	NOTE:	$S must correspond to the top of the 'sys' tree
61.1Sfredette#		$HPPA must correspond to the top of hppa tree
71.1Sfredette
81.1SfredetteSPMATHDIR=	${HPPA}/spmath
91.1Sfredette
101.1SfredetteSPMATHDST?=	${.OBJDIR}/lib/spmath
111.1Sfredette
121.1SfredetteSPMATH=		${SPMATHDST}/spmath.o
131.1SfredetteSPMATH_PROF=	${SPMATHDST}/spmath.po
141.1Sfredette
151.1SfredetteSPMATHMAKE= \
161.2Sskrll	cd ${SPMATHDIR} && MAKEOBJDIRPREFIX= && unset MAKEOBJDIRPREFIX && \
171.2Sskrll	  MAKEOBJDIR=${SPMATHDST} ${MAKE} \
181.1Sfredette	    CC='${CC}' CFLAGS='${CFLAGS}' \
191.2Sskrll	    SPMATHCPPFLAGS='${CPPFLAGS:S@^-I.@-I. -I../../.@g}'\
201.1Sfredette	    AS='${AS}' AFLAGS='${AFLAGS}' \
211.1Sfredette	    LD='${LD}' STRIP='${STRIP}' \
221.1Sfredette	    CPP='${CPP}' STRIP='${STRIP}' AR='${AR}' \
231.1Sfredette	    NM='${NM}' LORDER='${LORDER}' \
241.2Sskrll	    XMACHINE='${MACHINE}' XMACHINE_ARCH='${MACHINE_ARCH}'
251.1Sfredette
261.4Sdsl${SPMATH}:	.NOTMAIN .MAKE __always_make_spmath
271.1Sfredette	@echo making sure the spmath library is up to date...
281.1Sfredette	@${SPMATHMAKE} spmath.o
291.1Sfredette
301.4Sdsl${SPMATH_PROF}:	.NOTMAIN .MAKE __always_make_spmath
311.1Sfredette	@echo making sure the profiled spmath library is up to date...
321.1Sfredette	@${SPMATHMAKE} spmath.po
331.1Sfredette
341.4Sdsl__CLEANSPMATH:	.NOTMAIN .MAKE __always_make_spmath
351.1Sfredette	@echo cleaning the spmath library objects
361.1Sfredette	@${SPMATHMAKE} clean
371.1Sfredette
381.1Sfredetteclean:	__CLEANSPMATH
391.1Sfredette
401.4Sdsl__DEPENDSPMATH:	.NOTMAIN .MAKE __always_make_spmath assym.h
411.1Sfredette	@echo depending the spmath library objects
421.1Sfredette	@${SPMATHMAKE} depend
431.1Sfredette
441.1Sfredettedepend:	__DEPENDSPMATH
451.1Sfredette
461.1Sfredette__always_make_spmath:	.NOTMAIN
471.1Sfredette	-mkdir -p ${SPMATHDST}
481.1Sfredette
49