36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
# $Id: Makefile.inc,v 1.4 1994/06/30 06:46:37 deraadt Exp $
|
|
|
|
KMINCLUDES= arch/sparc/SYS.h arch/sparc/DEFS.h
|
|
KMSRCS= bzero.S ffs.S strlen.S htonl.S htons.S \
|
|
ntohl.S ntohs.S divrem.m4 \
|
|
_setjmp.S mul.S saveregs.S setjmp.S umul.S
|
|
|
|
# `source' files built from m4 source
|
|
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
|
|
SRCS+= rem.S sdiv.S udiv.S urem.S
|
|
CLEANFILES+=rem.S sdiv.S udiv.S urem.S
|
|
|
|
sdiv.S: ${.CURDIR}/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}
|
|
|
|
udiv.S: ${.CURDIR}/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}
|
|
|
|
rem.S: ${.CURDIR}/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}
|
|
|
|
urem.S: ${.CURDIR}/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}
|