]>
Commit | Line | Data |
---|---|---|
d8265d29 CM |
1 | CONFIG2_H = $(srcdir)/config/mips/ecoff.h |
2 | ||
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 | |
6 | ||
7 | # Suppress building libgcc1.a, since the MIPS compiler port is complete | |
8 | # and does not need anything from libgcc1.a. | |
9 | LIBGCC1 = | |
10 | ||
11 | EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o | |
12 | # Don't let CTOR_LIST end up in sdata section. | |
13 | CRTSTUFF_T_CFLAGS = -G 0 | |
14 | ||
15 | # When building a cross compiler, put the mips16 support functions in | |
16 | # libgcc1.a. | |
17 | CROSS_LIBGCC1 = libgcc1-asm.a | |
18 | LIB1ASMSRC = mips/mips16.S | |
19 | LIB1ASMFUNCS = _m16addsf3 _m16subsf3 _m16mulsf3 _m16divsf3 \ | |
20 | _m16eqsf2 _m16nesf2 _m16gtsf2 _m16gesf2 _m16lesf2 _m16ltsf2 \ | |
21 | _m16fltsisf _m16fixsfsi \ | |
22 | _m16adddf3 _m16subdf3 _m16muldf3 _m16divdf3 \ | |
23 | _m16extsfdf2 _m16trdfsf2 \ | |
24 | _m16eqdf2 _m16nedf2 _m16gtdf2 _m16gedf2 _m16ledf2 _m16ltdf2 \ | |
25 | _m16fltsidf _m16fixdfsi \ | |
26 | _m16retsf _m16retdf \ | |
27 | _m16stub1 _m16stub2 _m16stub5 _m16stub6 _m16stub9 _m16stub10 \ | |
28 | _m16stubsf0 _m16stubsf1 _m16stubsf2 _m16stubsf5 _m16stubsf6 \ | |
29 | _m16stubsf9 _m16stubsf10 \ | |
30 | _m16stubdf0 _m16stubdf1 _m16stubdf2 _m16stubdf5 _m16stubdf6 \ | |
31 | _m16stubdf9 _m16stubdf10 | |
32 | ||
33 | # We must build libgcc2.a with -G 0, in case the user wants to link | |
34 | # without the $gp register. | |
35 | TARGET_LIBGCC2_CFLAGS = -G 0 | |
36 | ||
37 | # fp-bit and dp-bit are really part of libgcc1, but this will cause | |
38 | # them to be built correctly, so... [taken from t-sparclite] | |
c91fba50 JL |
39 | # We want fine grained libraries, so use the new code to build the |
40 | # floating point emulation libraries. | |
41 | FPBIT = fp-bit.c | |
42 | DPBIT = dp-bit.c | |
d8265d29 CM |
43 | |
44 | dp-bit.c: $(srcdir)/config/fp-bit.c | |
45 | echo '#ifdef __MIPSEL__' > dp-bit.c | |
46 | echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c | |
47 | echo '#endif' >> dp-bit.c | |
48 | echo '#define US_SOFTWARE_GOFAST' >> dp-bit.c | |
49 | cat $(srcdir)/config/fp-bit.c >> dp-bit.c | |
50 | ||
51 | fp-bit.c: $(srcdir)/config/fp-bit.c | |
52 | echo '#define FLOAT' > fp-bit.c | |
53 | echo '#ifdef __MIPSEL__' >> fp-bit.c | |
54 | echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c | |
55 | echo '#endif' >> fp-bit.c | |
56 | echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c | |
57 | cat $(srcdir)/config/fp-bit.c >> fp-bit.c | |
58 | ||
59 | # Build the libraries for both hard and soft floating point | |
60 | ||
61 | MULTILIB_OPTIONS = msoft-float/msingle-float EL/EB mips1/mips3 | |
62 | MULTILIB_DIRNAMES = soft-float single el eb mips1 mips3 | |
63 | MULTILIB_MATCHES = msingle-float=m4650 | |
64 | ||
65 | LIBGCC = stmp-multilib | |
66 | INSTALL_LIBGCC = install-multilib | |
67 | ||
68 | # Add additional dependencies to recompile selected modules whenever the | |
69 | # tm.h file changes. The files compiled are: | |
70 | # | |
71 | # gcc.c (*_SPEC changes) | |
72 | # toplev.c (new switches + assembly output changes) | |
73 | # sdbout.c (debug format changes) | |
74 | # dbxout.c (debug format changes) | |
75 | # dwarfout.c (debug format changes) | |
76 | # final.c (assembly output changes) | |
77 | # varasm.c (assembly output changes) | |
78 | # cse.c (cost functions) | |
79 | # insn-output.c (possible ifdef changes in tm.h) | |
80 | # regclass.c (fixed/call used register changes) | |
81 | # cccp.c (new preprocessor macros, -v version #) | |
82 | # explow.c (GO_IF_LEGITIMATE_ADDRESS) | |
83 | # recog.c (GO_IF_LEGITIMATE_ADDRESS) | |
84 | # reload.c (GO_IF_LEGITIMATE_ADDRESS) | |
85 | ||
86 | gcc.o: $(CONFIG2_H) | |
87 | toplev.o: $(CONFIG2_H) | |
88 | sdbout.o: $(CONFIG2_H) | |
89 | dbxout.o: $(CONFIG2_H) | |
90 | dwarfout.o: $(CONFIG2_H) | |
91 | final.o: $(CONFIG2_H) | |
92 | varasm.o: $(CONFIG2_H) | |
93 | cse.o: $(CONFIG2_H) | |
94 | insn-output.o: $(CONFIG2_H) | |
95 | regclass.o: $(CONFIG2_H) | |
96 | cccp.o: $(CONFIG2_H) | |
97 | explow.o: $(CONFIG2_H) | |
98 | recog.o: $(CONFIG2_H) | |
99 | reload.o: $(CONFIG2_H) |