Remove building with NOCRYPTO option
[minix.git] / lib / libc / softfloat / Makefile.inc
blob4a041cda30937120e7d8a2eee69d66b391b61614
1 #       $NetBSD: Makefile.inc,v 1.20 2015/04/08 13:16:37 martin Exp $
3 SOFTFLOAT_BITS?=64
4 .if defined(__MINIX)
5 .PATH:          ${ARCHDIR}/softfloat \
6                 ${LIBCDIR}/softfloat/bits${SOFTFLOAT_BITS} ${LIBCDIR}/softfloat
7 .else
8 .PATH:          ${ARCHDIR}/softfloat \
9                 ${.CURDIR}/softfloat/bits${SOFTFLOAT_BITS} ${.CURDIR}/softfloat
10 .endif # defined(__MINIX)
12 .if defined(__MINIX)
13 CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${LIBCDIR}/softfloat
14 .else
15 CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat
16 .endif # defined(__MINIX)
17 CPPFLAGS+=      -DSOFTFLOAT_FOR_GCC
19 SRCS.softfloat= softfloat.c
21 SRCS.softfloat+=fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c \
22                 fpgetsticky.c fpsetsticky.c
24 .if !empty(LIBC_MACHINE_ARCH:Mearm*)
25 SRCS.softfloat+=__aeabi_dcmpeq.c __aeabi_fcmpeq.c
26 SRCS.softfloat+=__aeabi_dcmpge.c __aeabi_fcmpge.c
27 SRCS.softfloat+=__aeabi_dcmpgt.c __aeabi_fcmpgt.c
28 SRCS.softfloat+=__aeabi_dcmple.c __aeabi_fcmple.c
29 SRCS.softfloat+=__aeabi_dcmplt.c __aeabi_fcmplt.c
30 SRCS.softfloat+=__aeabi_dcmpun.c __aeabi_fcmpun.c
31 .else
32 SRCS.softfloat+=eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \
33                 eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \
34                 eqtf2.c netf2.c gttf2.c getf2.c lttf2.c letf2.c negtf2.c \
35                 nexf2.c gtxf2.c gexf2.c negxf2.c \
36                 unordsf2.c unorddf2.c unordtf2.c
37 .endif
39 SRCS+=          ${SRCS.softfloat}
41 # XXX
42 .if defined(HAVE_GCC)
43 . if (${LIBC_MACHINE_CPU} == "arm") && (${HAVE_GCC} == "45")
44 # See doc/HACKS for more information.
45 COPTS.softfloat.c+=     -Wno-enum-compare
46 COPTS.softfloat.c+=     ${${ACTIVE_CXX} == "gcc":? -fno-tree-vrp :}
47 .elif (${LIBC_MACHINE_CPU} == "mips" || \
48      ${LIBC_MACHINE_CPU} == "sh3")
49 COPTS.softfloat.c+=     -Wno-enum-compare
50 . endif
51 .endif