0
|
1 # Don't let CTOR_LIST end up in sdata section.
|
|
2 CRTSTUFF_T_CFLAGS = -G 0
|
|
3
|
|
4 # Assemble startup files.
|
|
5 $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
|
|
6 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
|
7 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
|
|
8
|
|
9 $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
|
|
10 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
|
11 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
|
|
12
|
|
13 # We must build libgcc2.a with -G 0, in case the user wants to link
|
|
14 # without the $gp register.
|
|
15 TARGET_LIBGCC2_CFLAGS = -G 0
|
|
16
|
|
17 # Build the libraries for both hard and soft floating point
|
|
18
|
|
19 ifneq ($(filter MIPS_ABI_DEFAULT=ABI_EABI,$(tm_defines)),)
|
|
20 MULTILIB_OPTIONS = msoft-float EL/EB mips32/mips32r2/mips64/mips64r2
|
|
21 MULTILIB_DIRNAMES = soft-float el eb mips32 mips32r2 mips64 mips64r2
|
|
22 else
|
|
23 MULTILIB_OPTIONS = msoft-float/mfp64 EL/EB mips32/mips32r2/mips64/mips64r2
|
|
24 MULTILIB_DIRNAMES = soft-float fp64 el eb mips32 mips32r2 mips64 mips64r2
|
|
25 ifneq ($(filter MIPS_ISA_DEFAULT=33,$(tm_defines)),)
|
|
26 MULTILIB_EXCLUSIONS = mips32/mfp64 mips64/mfp64 mips64r2/mfp64
|
|
27 else
|
|
28 MULTILIB_EXCLUSIONS = !mips32r2/mfp64
|
|
29 endif
|
|
30 endif
|
|
31 MULTILIB_MATCHES = EL=mel EB=meb
|
|
32 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
|
|
33
|
|
34 LIBGCC = stmp-multilib
|
|
35 INSTALL_LIBGCC = install-multilib
|