Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / config / score / t-score-elf
blobf27484fea4651b1014698fe10fb436dab9dc38e3
1 # Additional Backend Files
2 score7.o: $(srcdir)/config/score/score7.c $(CONFIG_H) $(SYSTEM_H) \
3   coretypes.h $(TM_H) $(RTL_H) output.h flags.h $(TREE_H) \
4   expr.h toplev.h $(TM_P_H)
5         $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
6         $(srcdir)/config/score/score7.c
8 score3.o: $(srcdir)/config/score/score3.c $(CONFIG_H) $(SYSTEM_H) \
9   coretypes.h $(TM_H) $(RTL_H) output.h flags.h $(TREE_H) \
10   expr.h toplev.h $(TM_P_H)
11         $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
12         $(srcdir)/config/score/score3.c
15 # Assemble startup files.
16 $(T)crti.o: $(srcdir)/config/score/crti.asm $(GCC_PASSES)
17         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
18         -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/score/crti.asm
20 $(T)crtn.o: $(srcdir)/config/score/crtn.asm $(GCC_PASSES)
21         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
22         -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/score/crtn.asm
24 LIB1ASMSRC = score/mul-div.S
26 LIB1ASMFUNCS = _mulsi3 _divsi3 _flush_cache
28 FPBIT = fp-bit.c
29 DPBIT = dp-bit.c
31 # If any special flags are necessary when building libgcc2 put them here.
32 TARGET_LIBGCC2_CFLAGS = -g
34 fp-bit.c: $(srcdir)/config/fp-bit.c
35         echo '#define FLOAT' > fp-bit.c
36         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
38 dp-bit.c: $(srcdir)/config/fp-bit.c
39         cat $(srcdir)/config/fp-bit.c > dp-bit.c
41 # We must build libgcc2.a with -G 0, in case the user wants to link
42 # without the $gp register.
43 TARGET_LIBGCC2_CFLAGS = -G 0
45 MULTILIB_OPTIONS = mscore3 mel
46 MULTILIB_MATCHES = mscore3=march?score3
48 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
50 LIBGCC = stmp-multilib
51 INSTALL_LIBGCC = install-multilib