1 # $NetBSD: Makefile.inc,v 1.15 2014/07/12 19:21:48 nakayama Exp $
3 SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
5 .if ${MACHINE} != "sparc64"
6 # `source' files built from m4 source
7 # the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
8 SRCS+= rem.S sdiv.S udiv.S urem.S
9 CLEANFILES+=rem.S sdiv.S udiv.S urem.S
11 sdiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
12 @echo 'building ${.TARGET} from ${.ALLSRC}'
14 @(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
15 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
18 udiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
19 @echo 'building ${.TARGET} from ${.ALLSRC}'
21 @(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
22 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
25 rem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
26 @echo 'building ${.TARGET} from ${.ALLSRC}'
28 @(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
29 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
32 urem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
33 @echo 'building ${.TARGET} from ${.ALLSRC}'
35 @(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
36 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}