eaf64f1b6c
Any .S files added by the arch/*/Makefile.inc cause the .c file to be excluded. Specific exclusions added using NO_SRCS to match previous files. At least sparc, sparc64, i386, amd64 and vax GENERIC still build. (There is a fubar with the naming of the byte-swap files ...)
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.10 2009/08/14 19:23:55 dsl Exp $
|
|
|
|
SRCS+= ffs.S
|
|
SRCS+= strlen.S
|
|
SRCS+= htonl.S htons.S ntohl.S ntohs.S
|
|
SRCS+= random.S
|
|
|
|
SRCS+= bswap16.c bswap32.c
|
|
|
|
SRCS+= umul.S mul.S rem.S sdiv.S udiv.S umul.S urem.S
|
|
SRCS+= mul.S saveregs.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: $M/divrem.m4
|
|
echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
|
|
cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
|
|
|
|
udiv.S: $M/divrem.m4
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
|
|
cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
|
|
|
|
rem.S: $M/divrem.m4
|
|
echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
|
|
cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
|
|
|
|
urem.S: $M/divrem.m4
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
|
|
cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
|