Assign quad / softfloat specific ${SRCS} to ${SRCS.quad} / ${SRCS.softfloat}

then append them to ${SRCS}.  Those will be used to generate quad / softfloat
symbol lists.
This commit is contained in:
uebayasi 2009-12-06 05:34:42 +00:00
parent 378ad8db55
commit f0d2ed931c
2 changed files with 14 additions and 10 deletions

View File

@ -1,21 +1,23 @@
# $NetBSD: Makefile.inc,v 1.10 2001/05/18 15:23:44 fredette Exp $
# $NetBSD: Makefile.inc,v 1.11 2009/12/06 05:34:42 uebayasi Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
# Quad support
SRCS+= cmpdi2.c divdi3.c fixdfdi.c fixsfdi.c fixunsdfdi.c \
SRCS.quad= cmpdi2.c divdi3.c fixdfdi.c fixsfdi.c fixunsdfdi.c \
fixunssfdi.c floatdidf.c floatdisf.c floatunsdidf.c \
moddi3.c muldi3.c negdi2.c qdivrem.c \
ucmpdi2.c udivdi3.c umoddi3.c
.if (${MACHINE_ARCH} == "m68k")
SRCS+= ashldi3.S ashrdi3.S lshrdi3.S
SRCS.quad+= ashldi3.S ashrdi3.S lshrdi3.S
.elif (${MACHINE_ARCH} == "m68000")
SRCS+= ashldi3.S lshrdi3.S
SRCS.quad+= ashldi3.S lshrdi3.S
.else
SRCS+= ashldi3.c ashrdi3.c lshrdi3.c
SRCS.quad+= ashldi3.c ashrdi3.c lshrdi3.c
.endif
# XXX as far as I can tell, these are never used and can be removed
SRCS+= adddi3.c anddi3.c iordi3.c notdi2.c subdi3.c xordi3.c
SRCS.quad+= adddi3.c anddi3.c iordi3.c notdi2.c subdi3.c xordi3.c
SRCS+= ${SRCS.quad}
.PATH: ${ARCHDIR}/quad ${.CURDIR}/quad

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.4 2004/09/26 21:13:27 jmmv Exp $
# $NetBSD: Makefile.inc,v 1.5 2009/12/06 05:34:42 uebayasi Exp $
SOFTFLOAT_BITS?=64
.PATH: ${ARCHDIR}/softfloat \
@ -7,11 +7,13 @@ SOFTFLOAT_BITS?=64
CPPFLAGS+= -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat
CPPFLAGS+= -DSOFTFLOAT_FOR_GCC
SRCS+= softfloat.c
SRCS.softfloat= softfloat.c
SRCS+= fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c \
SRCS.softfloat+=fpsetround.c fpgetmask.c fpsetmask.c \
fpgetsticky.c fpsetsticky.c
SRCS+= eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \
SRCS.softfloat+=nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \
eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \
nexf2.c gtxf2.c gexf2.c negxf2.c unordsf2.c unorddf2.c
SRCS+= ${SRCS.softfloat}