3 SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
5 # Some assembler files use v9a extensions.
8 # `source' files built from m4 source
9 # the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
10 SRCS+= rem.S sdiv.S udiv.S urem.S
11 CLEANFILES+=rem.S sdiv.S udiv.S urem.S
13 sdiv.S: ${LIBCDIR}/arch/sparc64/gen/divrem.m4
14 @echo 'building ${.TARGET} from ${.ALLSRC}'
15 @(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
16 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
19 udiv.S: ${LIBCDIR}/arch/sparc64/gen/divrem.m4
20 @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/sparc64/gen/divrem.m4
26 @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/sparc64/gen/divrem.m4
32 @echo 'building ${.TARGET} from ${.ALLSRC}'
33 @(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
34 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
37 .PATH: ${ARCHDIR}/softfloat
39 CPPFLAGS+= -DSOFTFLOATSPARC64_FOR_GCC
40 .if ${MKSOFTFLOAT} != "no"
41 .include <softfloat/Makefile.inc>
44 # Can't directly use softfloat.c due to .PATH issues with the other source
45 # in softfloat. Just provide a wrapper which pulls it in via a #include
46 SRCS.softfloat= softfloat-wrapper.c
47 SRCS+= ${SRCS.softfloat}
48 CPPFLAGS+= -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat \
49 -I${.CURDIR}/softfloat/bits64