1 # We want fine grained libraries, so use the new code to build the
2 # floating point emulation libraries.
6 # Turn off the SDA while compiling libgcc2. There are no headers for it
7 # and we want maximal upward compatibility here.
9 TARGET_LIBGCC2_CFLAGS = -G 0
11 fp-bit.c: $(srcdir)/config/fp-bit.c
12 echo '#define FLOAT' > fp-bit.c
13 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
15 dp-bit.c: $(srcdir)/config/fp-bit.c
16 cat $(srcdir)/config/fp-bit.c > dp-bit.c
18 # We need to use -fpic when we are using gcc to compile the routines in
19 # initfini.c. This is only really needed when we are going to use gcc/g++
20 # to produce a shared library, but since we don't know ahead of time when
21 # we will be doing that, we just always use -fpic when compiling the
22 # routines in initfini.c.
23 # -fpic currently isn't supported for the m32r.
27 # .init/.fini section routines
29 crtinit.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
30 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
31 -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
32 -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -o crtinit.o
34 crtfini.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
35 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
36 -DCRT_FINI -finhibit-size-directive -fno-inline-functions \
37 -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -o crtfini.o
42 m32rx/crtinit.o: m32rx $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
43 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
44 -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
45 -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -m32rx \
48 m32rx/crtfini.o: m32rx $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
49 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
50 -DCRT_FINI -finhibit-size-directive -fno-inline-functions \
51 -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -m32rx \
54 # -mmodel={small,medium} requires separate libraries.
55 # We don't build libraries for the large model, instead we use the medium
56 # libraries. The only difference is that the large model can handle jumps
57 # more than 26 signed bits away.
59 MULTILIB_OPTIONS = mmodel=small/mmodel=medium m32r/m32rx
60 MULTILIB_DIRNAMES = small medium m32r m32rx
61 MULTILIB_MATCHES = mmodel?medium=mmodel?large
63 # Set MULTILIB_EXTRA_OPTS so shipped libraries have small data in .sdata and
65 # This is important for objects referenced in system header files.
66 MULTILIB_EXTRA_OPTS = msdata=sdata
68 LIBGCC = stmp-multilib
69 INSTALL_LIBGCC = install-multilib