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