1# $NetBSD: Makefile,v 1.1.10.3 2004/09/21 13:16:34 skrll Exp $ 2 3# $OpenBSD: Makefile,v 1.4 2000/01/11 21:32:57 mickey Exp $ 4 5LIB= spmath 6NOPIC= 7 8SRCS= dfadd.c dfcmp.c dfdiv.c dfmpy.c dfrem.c dfsqrt.c dfsub.c divsfm.c \ 9 divsfr.c divsim.c divsir.c divu.S divufr.c divuir.c fcnvff.c fcnvfx.c \ 10 fcnvfxt.c fcnvxf.c frnd.c impys.S impyu.S mpyaccs.c mpyaccu.c mpys.c \ 11 mpyscv.c mpyu.c mpyucv.c setovfl.c sfadd.c sfcmp.c sfdiv.c sfmpy.c \ 12 sfrem.c sfsqrt.c sfsub.c fpudispatch.c 13 14CPPFLAGS+= ${SPMATHCPPFLAGS} 15 16MACHINE= ${XMACHINE} 17MACHINE_ARCH= ${XMACHINE_ARCH} 18 19# Files to clean up 20CLEANFILES+= ${LIB}.o ${LIB}.po 21 22install: 23 24.include <bsd.lib.mk> 25 26${LIB}.o:: ${OBJS} 27 @echo building standard ${LIB} library 28 @rm -f ${LIB}.o 29 @${LD} -r -o ${LIB}.o `${LORDER} ${OBJS} | tsort` 30 31${LIB}.po:: ${POBJS} 32 @echo building profiled ${LIB} library 33 @rm -f ${LIB}.po 34 @${LD} -r -o ${LIB}.po `${LORDER} ${POBJS} | tsort` 35 36