xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/rs6000/t-netbsd64 (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
1# Support for NetBSD PowerPC64 ELF targets (ELF64 ABI).
2
3LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/tramp.asm \
4	$(srcdir)/config/rs6000/ppc64-fp.c \
5	$(srcdir)/config/rs6000/darwin-ldouble.c
6
7TARGET_LIBGCC2_CFLAGS += -mno-minimal-toc
8
9MULTILIB_OPTIONS        = m64/m32
10MULTILIB_DIRNAMES       = 64 32
11MULTILIB_OSDIRNAMES	= . ../lib/powerpc
12
13# We want fine grained libraries, so use the new code to build the
14# floating point emulation libraries.
15# fp-bit is only to be used by 32-bit multilibs
16FPBIT = fp-bit32.c
17DPBIT = dp-bit32.c
18
19dp-bit32.c: $(srcdir)/config/fp-bit.c
20	( echo '#ifndef __powerpc64__'; \
21	  cat $(srcdir)/config/fp-bit.c; \
22	  echo '#endif' ) > dp-bit32.c
23
24fp-bit32.c: $(srcdir)/config/fp-bit.c
25	( echo '#ifndef __powerpc64__'; \
26	  echo '#define FLOAT'; \
27	  cat $(srcdir)/config/fp-bit.c; \
28	  echo '#endif' ) > fp-bit32.c
29