Home | History | Annotate | Line # | Download | only in sparc64
Makefile.inc revision 1.1.12.3
      1  1.1.12.3  nathanw #	$NetBSD: Makefile.inc,v 1.1.12.3 2002/03/22 20:41:54 nathanw Exp $
      2       1.1      eeh 
      3       1.1      eeh KMINCLUDES= arch/sparc64/SYS.h
      4       1.1      eeh KMSRCS=	bzero.S ffs.S strlen.S htonl.S htons.S \
      5       1.1      eeh 	ntohl.S ntohs.S divrem.m4 \
      6       1.1      eeh 	_setjmp.S mul.S saveregs.S setjmp.S umul.S
      7  1.1.12.1  nathanw 
      8  1.1.12.1  nathanw # Some assembler files use v9a extensions.
      9  1.1.12.1  nathanw AFLAGS+= -Wa,-Av9a
     10       1.1      eeh 
     11       1.1      eeh # `source' files built from m4 source
     12       1.1      eeh # the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
     13       1.1      eeh SRCS+=	rem.S sdiv.S udiv.S urem.S
     14       1.1      eeh CLEANFILES+=rem.S sdiv.S udiv.S urem.S
     15       1.1      eeh 
     16       1.1      eeh sdiv.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
     17       1.1      eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     18       1.1      eeh 	@(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
     19       1.1      eeh 	 cat ${.ALLSRC}) | m4 > ${.TARGET}
     20       1.1      eeh 	@chmod 444 ${.TARGET}
     21       1.1      eeh 
     22       1.1      eeh udiv.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
     23       1.1      eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     24       1.1      eeh 	@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
     25       1.1      eeh 	 cat ${.ALLSRC}) | m4 > ${.TARGET}
     26       1.1      eeh 	@chmod 444 ${.TARGET}
     27       1.1      eeh 
     28       1.1      eeh rem.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
     29       1.1      eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     30       1.1      eeh 	@(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
     31       1.1      eeh 	 cat ${.ALLSRC}) | m4 > ${.TARGET}
     32       1.1      eeh 	@chmod 444 ${.TARGET}
     33       1.1      eeh 
     34       1.1      eeh urem.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
     35       1.1      eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     36       1.1      eeh 	@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
     37       1.1      eeh 	 cat ${.ALLSRC}) | m4 > ${.TARGET}
     38       1.1      eeh 	@chmod 444 ${.TARGET}
     39  1.1.12.2  nathanw 
     40  1.1.12.2  nathanw .PATH: ${ARCHDIR}/softfloat
     41  1.1.12.2  nathanw SRCS+= qp.c
     42  1.1.12.2  nathanw CPPFLAGS+=	-DSOFTFLOATSPARC64_FOR_GCC
     43  1.1.12.2  nathanw .if ${MKSOFTFLOAT} != "no"
     44  1.1.12.2  nathanw .include <softfloat/Makefile.inc>
     45  1.1.12.2  nathanw .else
     46  1.1.12.2  nathanw #
     47  1.1.12.2  nathanw # Can't directly use softfloat.c due to .PATH issues with the other source
     48  1.1.12.2  nathanw # in softfloat. Just provide a wrapper which pulls it in via a #include
     49  1.1.12.2  nathanw SRCS+= softfloat-wrapper.c
     50  1.1.12.2  nathanw CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat
     51  1.1.12.2  nathanw .endif
     52