1993-12-08 16:30:16 +03:00
|
|
|
# $Id: Makefile.inc,v 1.3 1993/12/08 13:30:16 pk Exp $
|
1993-10-07 03:17:24 +03:00
|
|
|
|
|
|
|
# `source' files built from m4 source
|
|
|
|
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
|
1993-12-04 05:33:35 +03:00
|
|
|
SRCS+= rem.S sdiv.S udiv.S urem.S
|
|
|
|
CLEANFILES+=rem.S sdiv.S udiv.S urem.S
|
1993-10-07 03:17:24 +03:00
|
|
|
|
1993-12-08 16:30:16 +03:00
|
|
|
sdiv.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
|
1993-10-07 03:17:24 +03:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
|
|
|
|
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
@chmod 444 ${.TARGET}
|
|
|
|
|
1993-12-08 16:30:16 +03:00
|
|
|
udiv.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
|
1993-10-07 03:17:24 +03:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
|
|
|
|
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
@chmod 444 ${.TARGET}
|
|
|
|
|
1993-12-08 16:30:16 +03:00
|
|
|
rem.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
|
1993-10-07 03:17:24 +03:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
|
|
|
|
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
@chmod 444 ${.TARGET}
|
|
|
|
|
1993-12-08 16:30:16 +03:00
|
|
|
urem.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
|
1993-10-07 03:17:24 +03:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
|
|
|
|
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
@chmod 444 ${.TARGET}
|