1 # $NetBSD: Makefile.inc,v 1.14 2011/04/12 03:35:47 mrg Exp $
3 SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
5 # `source' files built from m4 source
6 # the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
7 SRCS+= rem.S sdiv.S udiv.S urem.S
8 CLEANFILES+=rem.S sdiv.S udiv.S urem.S
10 sdiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
11 @echo 'building ${.TARGET} from ${.ALLSRC}'
13 @(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
14 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
17 udiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
18 @echo 'building ${.TARGET} from ${.ALLSRC}'
20 @(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
21 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
24 rem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
25 @echo 'building ${.TARGET} from ${.ALLSRC}'
27 @(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
28 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
31 urem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
32 @echo 'building ${.TARGET} from ${.ALLSRC}'
34 @(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
35 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}