1 # $NetBSD: Makefile,v 1.16 2013/12/19 01:10:19 gdt Exp $
5 # We don't install mpfr, just provide it for GCC.
8 .if
${LIBISPRIVATE} != "yes"
9 INCS
= mpf2mpfr.h mpfr.h
13 # XXX get_d.c triggers lint div zero errors (which is valid?)
18 LIBDPLIBS
+= gmp
${.CURDIR
}/..
/..
/..
/gmp
/lib
/libgmp
458 -DHAVE_INTTYPES_H
=1 \
460 -DTIME_WITH_SYS_TIME
=1 \
464 -DHAVE_SYS_TIME_H
=1 \
468 -DHAVE_GETTIMEOFDAY
=1 \
471 -DMPFR_HAVE_INTMAX_MAX
=1 \
472 -DMPFR_HAVE_FESETROUND
=1 \
478 -DHAVE_ATTRIBUTE_MODE
=1
481 GMP_MACHINE_ARCH
=${MACHINE_ARCH
:S
/earmv4
/arm
/:C
/armv
[5-7]/arm
/}
482 CPPFLAGS
+= -I
${NETBSDSRCDIR}/external
/lgpl3
/gmp
/lib
/libgmp
/arch
/${GMP_MACHINE_ARCH}
483 CPPFLAGS
+= -I
${.CURDIR
}/..
/..
/dist/src
486 # XXX XXX check mips*
487 # XXX XXX do something more, more ports!!
489 # XXX missing: arm* sparc sh3* m68k/m68000 (powerpc64/ia64)
491 # IEEE FP support. No VAX here.
492 .if
${MACHINE_ARCH} == "x86_64" || \
493 ${MACHINE_ARCH} == "i386"
494 ${MACHINE_ARCH} == "mipsel"
495 CPPFLAGS
+= -DHAVE_LDOUBLE_IEEE_EXT_LITTLE
=1
498 .if
${MACHINE_ARCH} == "mips64el"
499 CPPFLAGS
+= -DHAVE_LDOUBLE_IEEE_QUAD_LITTLE
=1
502 .if
${MACHINE_ARCH} == "sparc64" || \
503 ${MACHINE_ARCH} == "powerpc" || \
504 ${MACHINE_ARCH} == "powerpc64" || \
505 ${MACHINE_ARCH} == "mips64eb"
506 CPPFLAGS
+= -DHAVE_LDOUBLE_IEEE_QUAD_BIG
=1
511 .
include <bsd.lib.mk
>
513 mparam.h
: mparam_h.in
514 rm -f
${.TARGET
} && cp
${.ALLSRC
} ${.TARGET
}
517 CLEANFILES
+= mparam.h
519 .PATH
: ${.CURDIR
}/..
/..
/dist/src
521 .if
!empty
(MACHINE_ARCH
:M
*arm
*)
524 .if
${MACHINE_ARCH} == "vax"
525 COPTS.set_ld.c
+= -Wno-error
528 # Don't warn about functions which cannot be stack smash protected as
529 # there are a lot of them.
530 COPTS
+= -Wno-stack-protector