2012-09-17 11:09:12 +02:00
|
|
|
# $NetBSD: Makefile.inc,v 1.19 2012/03/21 14:10:47 christos Exp $
|
2011-02-14 20:36:03 +01:00
|
|
|
|
|
|
|
SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
|
|
|
|
|
|
|
|
# Some assembler files use v9a extensions.
|
|
|
|
AFLAGS+= -Wa,-Av9a
|
|
|
|
|
|
|
|
.PATH: ${ARCHDIR}/softfloat
|
|
|
|
SRCS+= qp.c
|
2012-09-17 11:09:12 +02:00
|
|
|
CPPFLAGS+= -DSOFTFLOATSPARC64_FOR_GCC -DEXCEPTIONS_WITH_SOFTFLOAT
|
|
|
|
CPPFLAGS+= -DSOFTFLOAT_NEED_FIXUNS
|
2011-02-14 20:36:03 +01:00
|
|
|
.if ${MKSOFTFLOAT} != "no"
|
|
|
|
.include <softfloat/Makefile.inc>
|
|
|
|
.else
|
|
|
|
#
|
|
|
|
# Can't directly use softfloat.c due to .PATH issues with the other source
|
|
|
|
# in softfloat. Just provide a wrapper which pulls it in via a #include
|
|
|
|
SRCS.softfloat= softfloat-wrapper.c
|
|
|
|
SRCS+= ${SRCS.softfloat}
|
|
|
|
CPPFLAGS+= -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat \
|
|
|
|
-I${.CURDIR}/softfloat/bits64
|
2012-09-17 11:09:12 +02:00
|
|
|
|
|
|
|
.if ${HAVE_GCC} == 45
|
|
|
|
COPTS.softfloat-wrapper.c+= -Wno-enum-compare
|
|
|
|
.endif
|
|
|
|
|
2011-02-14 20:36:03 +01:00
|
|
|
.endif
|