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