Home | History | Annotate | Line # | Download | only in sparc64
Makefile.inc revision 1.14
      1  1.14    martin #	$NetBSD: Makefile.inc,v 1.14 2011/03/06 10:32:47 martin Exp $
      2   1.6   thorpej 
      3  1.10  christos SRCS+=	__sigaction14_sigtramp.c __sigtramp2.S
      4   1.2        tv 
      5   1.2        tv # Some assembler files use v9a extensions.
      6   1.2        tv AFLAGS+= -Wa,-Av9a
      7   1.1       eeh 
      8   1.1       eeh # `source' files built from m4 source
      9   1.1       eeh # the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
     10   1.1       eeh SRCS+=	rem.S sdiv.S udiv.S urem.S
     11   1.1       eeh CLEANFILES+=rem.S sdiv.S udiv.S urem.S
     12   1.1       eeh 
     13  1.12       mrg sdiv.S: ${LIBCDIR}/arch/sparc64/gen/divrem.m4
     14   1.1       eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     15   1.1       eeh 	@(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
     16   1.9       jmc 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     17   1.1       eeh 	@chmod 444 ${.TARGET}
     18   1.1       eeh 
     19  1.12       mrg udiv.S: ${LIBCDIR}/arch/sparc64/gen/divrem.m4
     20   1.1       eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     21   1.1       eeh 	@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
     22   1.9       jmc 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     23   1.1       eeh 	@chmod 444 ${.TARGET}
     24   1.1       eeh 
     25  1.12       mrg rem.S: ${LIBCDIR}/arch/sparc64/gen/divrem.m4
     26   1.1       eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     27   1.1       eeh 	@(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
     28   1.9       jmc 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     29   1.1       eeh 	@chmod 444 ${.TARGET}
     30   1.1       eeh 
     31  1.12       mrg urem.S: ${LIBCDIR}/arch/sparc64/gen/divrem.m4
     32   1.1       eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     33   1.1       eeh 	@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
     34   1.9       jmc 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     35   1.1       eeh 	@chmod 444 ${.TARGET}
     36   1.3       jmc 
     37   1.3       jmc .PATH: ${ARCHDIR}/softfloat
     38   1.3       jmc SRCS+= qp.c
     39  1.14    martin CPPFLAGS+=	-DSOFTFLOATSPARC64_FOR_GCC -DEXCEPTIONS_WITH_SOFTFLOAT
     40   1.3       jmc .if ${MKSOFTFLOAT} != "no"
     41   1.3       jmc .include <softfloat/Makefile.inc>
     42   1.3       jmc .else
     43   1.3       jmc #
     44   1.3       jmc # Can't directly use softfloat.c due to .PATH issues with the other source
     45   1.3       jmc # in softfloat. Just provide a wrapper which pulls it in via a #include
     46  1.13  uebayasi SRCS.softfloat= softfloat-wrapper.c
     47  1.13  uebayasi SRCS+= ${SRCS.softfloat}
     48   1.5     bjh21 CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat \
     49   1.5     bjh21 		-I${.CURDIR}/softfloat/bits64
     50   1.3       jmc .endif
     51