Replace occurrences of #elif with #if...#endif.
[official-gcc.git] / gcc / config / mips / t-elf
blob0e8da0474e51863c0b75a6fa728e2efdb451f4a1
1 CONFIG2_H       = $(srcdir)/config/mips/ecoff.h
3 # Don't let CTOR_LIST end up in sdata section.
4 CRTSTUFF_T_CFLAGS = -G 0
6 # Assemble startup files.
7 $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
8         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
9         -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
11 $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
12         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
13         -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
15 LIB1ASMSRC = mips/mips16.S
16 LIB1ASMFUNCS = _m16addsf3 _m16subsf3 _m16mulsf3 _m16divsf3 \
17         _m16eqsf2 _m16nesf2 _m16gtsf2 _m16gesf2 _m16lesf2 _m16ltsf2 \
18         _m16fltsisf _m16fixsfsi \
19         _m16adddf3 _m16subdf3 _m16muldf3 _m16divdf3 \
20         _m16extsfdf2 _m16trdfsf2 \
21         _m16eqdf2 _m16nedf2 _m16gtdf2 _m16gedf2 _m16ledf2 _m16ltdf2 \
22         _m16fltsidf _m16fixdfsi \
23         _m16retsf _m16retdf \
24         _m16stub1 _m16stub2 _m16stub5 _m16stub6 _m16stub9 _m16stub10 \
25         _m16stubsf0 _m16stubsf1 _m16stubsf2 _m16stubsf5 _m16stubsf6 \
26         _m16stubsf9 _m16stubsf10 \
27         _m16stubdf0 _m16stubdf1 _m16stubdf2 _m16stubdf5 _m16stubdf6 \
28         _m16stubdf9 _m16stubdf10
30 # We must build libgcc2.a with -G 0, in case the user wants to link
31 # without the $gp register.
32 TARGET_LIBGCC2_CFLAGS = -G 0
34 # We want fine grained libraries, so use the new code to build the
35 # floating point emulation libraries.
36 FPBIT = fp-bit.c
37 DPBIT = dp-bit.c
39 dp-bit.c: $(srcdir)/config/fp-bit.c
40         echo '#ifdef __MIPSEL__' > dp-bit.c
41         echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
42         echo '#endif' >> dp-bit.c
43         echo '#define US_SOFTWARE_GOFAST' >> dp-bit.c
44         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
46 fp-bit.c: $(srcdir)/config/fp-bit.c
47         echo '#define FLOAT' > fp-bit.c
48         echo '#ifdef __MIPSEL__' >> fp-bit.c
49         echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
50         echo '#endif' >> fp-bit.c
51         echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c
52         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
54 # Build the libraries for both hard and soft floating point
56 MULTILIB_OPTIONS = msoft-float/msingle-float EL/EB mips1/mips3
57 MULTILIB_DIRNAMES = soft-float single el eb mips1 mips3
58 MULTILIB_MATCHES = msingle-float=m4650
59 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
61 LIBGCC = stmp-multilib
62 INSTALL_LIBGCC = install-multilib
64 # Add additional dependencies to recompile selected modules whenever the
65 # tm.h file changes.  The files compiled are:
67 #       gcc.c           (*_SPEC changes)
68 #       toplev.c        (new switches + assembly output changes)
69 #       sdbout.c        (debug format changes)
70 #       dbxout.c        (debug format changes)
71 #       dwarfout.c      (debug format changes)
72 #       final.c         (assembly output changes)
73 #       varasm.c        (assembly output changes)
74 #       cse.c           (cost functions)
75 #       insn-output.c   (possible ifdef changes in tm.h)
76 #       regclass.c      (fixed/call used register changes)
77 #       explow.c        (GO_IF_LEGITIMATE_ADDRESS)
78 #       recog.c         (GO_IF_LEGITIMATE_ADDRESS)
79 #       reload.c        (GO_IF_LEGITIMATE_ADDRESS)
81 gcc.o: $(CONFIG2_H)
82 toplev.o: $(CONFIG2_H)
83 sdbout.o: $(CONFIG2_H)
84 dbxout.o: $(CONFIG2_H)
85 dwarfout.o: $(CONFIG2_H)
86 final.o: $(CONFIG2_H)
87 varasm.o: $(CONFIG2_H)
88 cse.o: $(CONFIG2_H)
89 insn-output.o: $(CONFIG2_H)
90 regclass.o: $(CONFIG2_H)
91 explow.o: $(CONFIG2_H)
92 recog.o: $(CONFIG2_H)
93 reload.o: $(CONFIG2_H)