1 # Support for NetBSD PowerPC64 ELF targets (ELF64 ABI).
3 LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/tramp.asm \
4 $(srcdir)/config/rs6000/ppc64-fp.c \
5 $(srcdir)/config/rs6000/darwin-ldouble.c
7 TARGET_LIBGCC2_CFLAGS += -mno-minimal-toc
9 MULTILIB_OPTIONS = m64/m32 msoft-float
10 MULTILIB_DIRNAMES = 64 32 soft-float
11 MULTILIB_EXTRA_OPTS = fPIC mstrict-align
12 MULTILIB_EXCEPTIONS = m64/msoft-float
13 MULTILIB_EXCLUSIONS = m64/!m32/msoft-float
15 MULTILIB_OSDIRNAMES = ../lib ../lib32 soft-float
17 MULTILIB_MATCHES = $(MULTILIB_MATCHES_FLOAT)
19 # We want fine grained libraries, so use the new code to build the
20 # floating point emulation libraries.
21 # fp-bit is only to be used by 32-bit multilibs
25 dp-bit32.c: $(srcdir)/config/fp-bit.c
26 ( echo '#ifndef __powerpc64__'; \
27 cat $(srcdir)/config/fp-bit.c; \
28 echo '#endif' ) > dp-bit32.c
30 fp-bit32.c: $(srcdir)/config/fp-bit.c
31 ( echo '#ifndef __powerpc64__'; \
32 echo '#define FLOAT'; \
33 cat $(srcdir)/config/fp-bit.c; \
34 echo '#endif' ) > fp-bit32.c