Home | History | Annotate | Line # | Download | only in sparc64
Makefile.inc revision 1.5.10.2
      1  1.5.10.1    skrll #	$NetBSD: Makefile.inc,v 1.5.10.2 2004/09/18 14:54:01 skrll 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.5.10.1    skrll 	bswap16.c bswap32.c bswap64.c ffs.S \
      6       1.2    perry 	memchr.c memcmp.c memset.c \
      7       1.5   martin 	strcat.c strcmp.c strcpy.c strtoul.c strlen.S strcasecmp.c \
      8       1.4  thorpej 	strncasecmp.c strncmp.c strncpy.c \
      9       1.1      eeh 	scanc.c skpc.c \
     10       1.1      eeh 	htonl.S htons.S ntohl.S ntohs.S \
     11       1.1      eeh 	random.S
     12       1.1      eeh 
     13       1.1      eeh SRCS+=	umul.S mul.S rem.S sdiv.S udiv.S umul.S urem.S
     14       1.1      eeh SRCS+=	mul.S saveregs.S umul.S
     15       1.1      eeh 
     16       1.1      eeh # `source' files built from m4 source
     17       1.1      eeh # the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
     18       1.1      eeh SRCS+=	rem.S sdiv.S udiv.S urem.S
     19       1.1      eeh CLEANFILES+=rem.S sdiv.S udiv.S urem.S
     20       1.1      eeh 
     21       1.3      eeh sdiv.S: $M/divrem.m4
     22       1.1      eeh 	echo 'building ${.TARGET} from ${.ALLSRC}'
     23       1.1      eeh 	(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
     24       1.1      eeh 	 cat ${.ALLSRC}) | m4 > ${.TARGET}
     25       1.1      eeh 
     26       1.3      eeh udiv.S: $M/divrem.m4
     27       1.1      eeh 	@echo 'building ${.TARGET} from ${.ALLSRC}'
     28       1.1      eeh 	@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
     29       1.1      eeh 	 cat ${.ALLSRC}) | m4 > ${.TARGET}
     30       1.1      eeh 
     31       1.3      eeh rem.S:	$M/divrem.m4
     32       1.1      eeh 	echo 'building ${.TARGET} from ${.ALLSRC}'
     33       1.1      eeh 	(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
     34       1.1      eeh 	 cat ${.ALLSRC}) | m4 > ${.TARGET}
     35       1.1      eeh 
     36       1.3      eeh urem.S: $M/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