1# $NetBSD: Makefile.inc,v 1.27 2009/08/12 21:20:40 dsl Exp $ 2 3SRCS+= _mcount.S 4SRCS+= byte_swap_2.S byte_swap_4.S 5SRCS+= ffs.S 6SRCS+= memcpy.S memmove.S 7 8SRCS+= softfloat.c 9 10# `source' files built from m4 source 11SRCS+= __divqu.S __divq.S __divlu.S __divl.S 12SRCS+= __remqu.S __remq.S __remlu.S __reml.S 13CLEANFILES+= __divqu.S __divq.S __divlu.S __divl.S 14CLEANFILES+= __remqu.S __remq.S __remlu.S __reml.S 15 16__divqu.S: ${M}/divrem.m4 17 @echo 'building ${.TARGET} from ${.ALLSRC}' 18 @(echo "define(NAME,\`__divqu')define(OP,\`div')define(S,\`false')"; \ 19 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 20 21__divq.S: ${M}/divrem.m4 22 @echo 'building ${.TARGET} from ${.ALLSRC}' 23 @(echo "define(NAME,\`__divq')define(OP,\`div')define(S,\`true')"; \ 24 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 25 26__divlu.S: ${M}/divrem.m4 27 @echo 'building ${.TARGET} from ${.ALLSRC}' 28 @(echo "define(NAME,\`__divlu')define(OP,\`div')define(S,\`false')"; \ 29 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 30 31__divl.S: ${M}/divrem.m4 32 @echo 'building ${.TARGET} from ${.ALLSRC}' 33 @(echo "define(NAME,\`__divl')define(OP,\`div')define(S,\`true')"; \ 34 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 35 36__remqu.S: ${M}/divrem.m4 37 @echo 'building ${.TARGET} from ${.ALLSRC}' 38 @(echo "define(NAME,\`__remqu')define(OP,\`rem')define(S,\`false')"; \ 39 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 40 41__remq.S: ${M}/divrem.m4 42 @echo 'building ${.TARGET} from ${.ALLSRC}' 43 @(echo "define(NAME,\`__remq')define(OP,\`rem')define(S,\`true')"; \ 44 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 45 46__remlu.S: ${M}/divrem.m4 47 @echo 'building ${.TARGET} from ${.ALLSRC}' 48 @(echo "define(NAME,\`__remlu')define(OP,\`rem')define(S,\`false')"; \ 49 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 50 51__reml.S: ${M}/divrem.m4 52 @echo 'building ${.TARGET} from ${.ALLSRC}' 53 @(echo "define(NAME,\`__reml')define(OP,\`rem')define(S,\`true')"; \ 54 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET} 55