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