1 CONFIG2_H = $(srcdir)/config/mips/ecoff.h
3 # We have a premade insn-attrtab.c to save the hour it takes to run genattrtab.
4 # PREMADE_ATTRTAB = $(srcdir)/config/mips/mips-at.c
5 # PREMADE_ATTRTAB_MD = $(srcdir)/config/mips/mips-at.md
7 # Suppress building libgcc1.a, since the MIPS compiler port is complete
8 # and does not need anything from libgcc1.a.
12 # We must build libgcc2.a with -G 0, in case the user wants to link
13 # without the $gp register.
14 TARGET_LIBGCC2_CFLAGS = -G 0
16 # These are really part of libgcc1, but this will cause them to be
17 # built correctly, so... [taken from t-sparclite]
18 LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
20 dp-bit.c: $(srcdir)/config/fp-bit.c
21 echo '#ifdef __MIPSEL__' > dp-bit.c
22 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
23 echo '#endif' >> dp-bit.c
24 echo '#define US_SOFTWARE_GOFAST' >> dp-bit.c
25 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
27 fp-bit.c: $(srcdir)/config/fp-bit.c
28 echo '#define FLOAT' > fp-bit.c
29 echo '#ifdef __MIPSEL__' >> fp-bit.c
30 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
31 echo '#endif' >> fp-bit.c
32 echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c
33 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
35 # Build the libraries for both hard and soft floating point
37 MULTILIB_OPTIONS = msoft-float/msingle-float EL/EB mips1/mips3
38 MULTILIB_DIRNAMES = soft-float single el eb mips1 mips3
39 MULTILIB_MATCHES = msingle-float=m4650
41 LIBGCC = stmp-multilib
42 INSTALL_LIBGCC = install-multilib
44 # Add additional dependencies to recompile selected modules whenever the
45 # tm.h file changes. The files compiled are:
47 # gcc.c (*_SPEC changes)
48 # toplev.c (new switches + assembly output changes)
49 # sdbout.c (debug format changes)
50 # dbxout.c (debug format changes)
51 # dwarfout.c (debug format changes)
52 # final.c (assembly output changes)
53 # varasm.c (assembly output changes)
54 # cse.c (cost functions)
55 # insn-output.c (possible ifdef changes in tm.h)
56 # regclass.c (fixed/call used register changes)
57 # cccp.c (new preprocessor macros, -v version #)
58 # explow.c (GO_IF_LEGITIMATE_ADDRESS)
59 # recog.c (GO_IF_LEGITIMATE_ADDRESS)
60 # reload.c (GO_IF_LEGITIMATE_ADDRESS)
63 toplev.o: $(CONFIG2_H)
64 sdbout.o: $(CONFIG2_H)
65 dbxout.o: $(CONFIG2_H)
66 dwarfout.o: $(CONFIG2_H)
68 varasm.o: $(CONFIG2_H)
70 insn-output.o: $(CONFIG2_H)
71 regclass.o: $(CONFIG2_H)
73 explow.o: $(CONFIG2_H)
75 reload.o: $(CONFIG2_H)