OSDN Git Service

* config/score/crti.asm: add pic support.
[pf3gnuchains/gcc-fork.git] / gcc / config / score / t-score-elf
1 # Additional Backend Files
2 score-mdaux.o: $(srcdir)/config/score/score-mdaux.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/score-mdaux.c
7
8 # Assemble startup files.
9 $(T)crti.o: $(srcdir)/config/score/crti.asm $(GCC_PASSES)
10         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
11         -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/score/crti.asm
12
13 $(T)crtn.o: $(srcdir)/config/score/crtn.asm $(GCC_PASSES)
14         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
15         -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/score/crtn.asm
16
17 LIB1ASMSRC = score/mul-div.S
18
19 LIB1ASMFUNCS = _mulsi3 _divsi3 _flush_cache
20
21 FPBIT = fp-bit.c
22 DPBIT = dp-bit.c
23
24 # If any special flags are necessary when building libgcc2 put them here.
25 TARGET_LIBGCC2_CFLAGS = -g
26
27 fp-bit.c: $(srcdir)/config/fp-bit.c
28         echo '#define FLOAT' > fp-bit.c
29         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
30
31 dp-bit.c: $(srcdir)/config/fp-bit.c
32         cat $(srcdir)/config/fp-bit.c > dp-bit.c
33
34 # We must build libgcc2.a with -G 0, in case the user wants to link
35 # without the $gp register.
36 TARGET_LIBGCC2_CFLAGS = -G 0
37
38 MULTILIB_OPTIONS = fPIC mel mSCORE7
39 MULTILIB_MATCHES = fPIC=fpic
40
41 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
42
43 LIBGCC = stmp-multilib
44 INSTALL_LIBGCC = install-multilib
45
46