NetBSD/sys/lib/libkern/arch/sparc/Makefile.inc

40 lines
1.5 KiB
PHP
Raw Normal View History

1994-01-15 22:48:56 +03:00
# $Id: Makefile.inc,v 1.5 1994/01/15 19:48:56 pk Exp $
1993-10-15 09:20:46 +03:00
SRCS+= __main.c imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \
1993-12-05 04:52:27 +03:00
bcmp.c bzero.S ffs.S strcat.c strcmp.c strcpy.c strlen.S strncmp.c \
1994-01-15 22:48:56 +03:00
strncpy.c htonl.S htons.S ntohl.S ntohs.S scanc.c skpc.c
1993-12-05 04:52:27 +03:00
SRCS+= umul.S mul.S rem.S sdiv.S udiv.S umul.S urem.S
SRCS+= _setjmp.S fabs.S fixunsdfsi.S modf.S mul.S saveregs.S setjmp.S umul.S
SRCS+= frexp.c isinf.c isnan.c ldexp.c
# `source' files built from m4 source
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
1993-12-05 04:52:27 +03:00
SRCS+= rem.S sdiv.S udiv.S urem.S
CLEANFILES+=rem.S sdiv.S udiv.S urem.S
1994-01-15 22:48:56 +03:00
sdiv.S: ${.CURDIR}/../../../lib/libc/arch/sparc/gen/divrem.m4
echo 'building ${.TARGET} from ${.ALLSRC}'
(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
chmod 444 ${.TARGET}
1994-01-15 22:48:56 +03:00
udiv.S: ${.CURDIR}/../../../lib/libc/arch/sparc/gen/divrem.m4
@echo 'building ${.TARGET} from ${.ALLSRC}'
@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
@chmod 444 ${.TARGET}
1994-01-15 22:48:56 +03:00
rem.S: ${.CURDIR}/../../../lib/libc/arch/sparc/gen/divrem.m4
echo 'building ${.TARGET} from ${.ALLSRC}'
(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
chmod 444 ${.TARGET}
1994-01-15 22:48:56 +03:00
urem.S: ${.CURDIR}/../../../lib/libc/arch/sparc/gen/divrem.m4
@echo 'building ${.TARGET} from ${.ALLSRC}'
@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
cat ${.ALLSRC}) | m4 > ${.TARGET}
@chmod 444 ${.TARGET}