1 # $NetBSD: Makefile.inc,v 1.12 2006/06/17 18:04:23 uwe 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}'
12 @(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
13 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
16 udiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
17 @echo 'building ${.TARGET} from ${.ALLSRC}'
18 @(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
19 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
22 rem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
23 @echo 'building ${.TARGET} from ${.ALLSRC}'
24 @(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
25 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
28 urem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
29 @echo 'building ${.TARGET} from ${.ALLSRC}'
30 @(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
31 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}