1 EXTRA_PASSES = mips-tfile mips-tdump
3 LIBGCC2_CFLAGS = -O2 $(GCC_CFLAGS) -g1 -G 0
4 CONFIG2_H = $(srcdir)/config/mips.h
6 # We have a premade insn-attrtab.c to save the hour it takes to run genattrtab.
7 PREMADE_ATTRTAB = $(srcdir)/config/mips-at.c
8 PREMADE_ATTRTAB_MD = $(srcdir)/config/mips-at.md
10 # Supress building libgcc1.a, since the MIPS compiler port is complete
11 # and does not need anything from libgcc1.a.
12 LIBGCC1 = libgcc1.null
14 # Add additional dependencies to recompile selected modules whenever the
15 # tm.h file changes. The files compiled are:
17 # gcc.c (*_SPEC changes)
18 # toplev.c (new switches + assembly output changes)
19 # sdbout.c (debug format changes)
20 # dbxout.c (debug format changes)
21 # dwarfout.c (debug format changes)
22 # final.c (assembly output changes)
23 # varasm.c (assembly output changes)
24 # cse.c (cost functions)
25 # insn-output.c (possible ifdef changes in tm.h)
26 # regclass.c (fixed/call used register changes)
27 # cccp.c (new preprocessor macros, -v version #)
28 # explow.c (GO_IF_LEGITIMATE_ADDRESS)
29 # recog.c (GO_IF_LEGITIMATE_ADDRESS)
30 # reload.c (GO_IF_LEGITIMATE_ADDRESS)
33 toplev.o: $(CONFIG2_H)
34 sdbout.o: $(CONFIG2_H)
35 dbxout.o: $(CONFIG2_H)
36 dwarfout.o: $(CONFIG2_H)
38 varasm.o: $(CONFIG2_H)
40 insn-output.o: $(CONFIG2_H)
41 regclass.o: $(CONFIG2_H)
43 explow.o: $(CONFIG2_H)
45 reload.o: $(CONFIG2_H)
47 mips-tfile: mips-tfile.o version.o $(LIBDEPS)
48 $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tfile mips-tfile.o version.o $(LIBS)
50 mips-tfile.o : mips-tfile.c $(CONFIG_H) $(CONFIG2_H) $(RTL_H)
52 mips-tdump: mips-tdump.o version.o $(LIBDEPS)
53 $(CC) $(CFLAGS) $(LDFLAGS) -o mips-tdump mips-tdump.o version.o $(LIBS)
55 mips-tdump.o : mips-tdump.c $(CONFIG_H) $(CONFIG2_H) $(RTL_H)