1996-12-22 14:41:01 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.5 1996/12/22 11:41:01 cgd Exp $
|
1995-02-10 20:49:48 +03:00
|
|
|
|
1996-10-17 06:58:18 +04:00
|
|
|
KMINCLUDES=
|
1996-04-18 02:36:30 +04:00
|
|
|
KMSRCS= divrem.m4 bzero.S htonl.S htons.S ntohl.S ntohs.S \
|
1996-07-15 07:13:15 +04:00
|
|
|
byte_swap_2.S byte_swap_4.S ffs.S
|
|
|
|
#KMSRCS= bcmp.S strcat.S strcmp.S strcpy.S strlen.S
|
1995-02-10 20:49:48 +03:00
|
|
|
|
1996-12-22 14:41:01 +03:00
|
|
|
# Sources used to provide lint prototypes
|
|
|
|
LSRCS+= LintAlphaGen.c LintAlphaNet.c LintAlphaString.c LintAlphaSys.c
|
|
|
|
|
1995-02-10 20:49:48 +03:00
|
|
|
# `source' files built from m4 source
|
|
|
|
SRCS+= __divqu.S __divq.S __divlu.S __divl.S
|
|
|
|
SRCS+= __remqu.S __remq.S __remlu.S __reml.S
|
|
|
|
CLEANFILES+= __divqu.S __divq.S __divlu.S __divl.S
|
|
|
|
CLEANFILES+= __remqu.S __remq.S __remlu.S __reml.S
|
|
|
|
|
|
|
|
__divqu.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divqu')define(OP,\`div')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
__divq.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divq')define(OP,\`div')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
__divlu.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divlu')define(OP,\`div')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
__divl.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divl')define(OP,\`div')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
__remqu.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__remqu')define(OP,\`rem')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
__remq.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__remq')define(OP,\`rem')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
__remlu.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__remlu')define(OP,\`rem')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
__reml.S: ${.CURDIR}/arch/alpha/gen/divrem.m4
|
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__reml')define(OP,\`rem')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|