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