Home | History | Annotate | Line # | Download | only in sparc64
Makefile.inc revision 1.9
      1  1.9   dsl #	$NetBSD: Makefile.inc,v 1.9 2009/08/12 21:20:41 dsl Exp $
      2  1.1   eeh 
      3  1.9   dsl SRCS+=	ffs.S
      4  1.9   dsl SRCS+=	strlen.S
      5  1.9   dsl SRCS+=	htonl.S htons.S ntohl.S ntohs.S
      6  1.9   dsl SRCS+=	random.S
      7  1.9   dsl 
      8  1.9   dsl SRCS+=  __main.c __assert.c
      9  1.9   dsl SRCS+=	imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c
     10  1.9   dsl SRCS+=	bswap16.c bswap32.c bswap64.c
     11  1.9   dsl SRCS+=	memchr.c memcmp.c memset.c
     12  1.9   dsl SRCS+=	strcat.c strcmp.c strcpy.c strtoul.c strcasecmp.c
     13  1.9   dsl SRCS+=	strncasecmp.c strncmp.c strncpy.c
     14  1.9   dsl SRCS+=	scanc.c skpc.c
     15  1.1   eeh 
     16  1.1   eeh SRCS+=	umul.S mul.S rem.S sdiv.S udiv.S umul.S urem.S
     17  1.1   eeh SRCS+=	mul.S saveregs.S umul.S
     18  1.1   eeh 
     19  1.1   eeh # `source' files built from m4 source
     20  1.1   eeh # the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
     21  1.1   eeh SRCS+=	rem.S sdiv.S udiv.S urem.S
     22  1.1   eeh CLEANFILES+=rem.S sdiv.S udiv.S urem.S
     23  1.1   eeh 
     24  1.3   eeh sdiv.S: $M/divrem.m4
     25  1.1   eeh 	echo 'building ${.TARGET} from ${.ALLSRC}'
     26  1.1   eeh 	(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
     27  1.7  reed 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     28  1.1   eeh 
     29  1.3   eeh udiv.S: $M/divrem.m4
     30  1.1   eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     31  1.1   eeh 	@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
     32  1.7  reed 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     33  1.1   eeh 
     34  1.3   eeh rem.S:	$M/divrem.m4
     35  1.1   eeh 	echo 'building ${.TARGET} from ${.ALLSRC}'
     36  1.1   eeh 	(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
     37  1.7  reed 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     38  1.1   eeh 
     39  1.3   eeh urem.S: $M/divrem.m4
     40  1.1   eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     41  1.1   eeh 	@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
     42  1.7  reed 	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
     43