2003-09-04 Eric Christopher <echristo@redhat.com>
[official-gcc.git] / gcc / config / sh / t-sh
blob15aaba1ece68948a7d8a2942f701a266dc293adc
1 LIB1ASMSRC = sh/lib1funcs.asm
2 LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movstr \
3   _movstr_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
4   $(LIB1ASMFUNCS_CACHE)
6 # We want fine grained libraries, so use the new code to build the
7 # floating point emulation libraries.
8 FPBIT = fp-bit.c
9 DPBIT = dp-bit.c
11 dp-bit.c: $(srcdir)/config/fp-bit.c
12         echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
13         echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
14         echo '#endif'           >> dp-bit.c
15         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
17 fp-bit.c: $(srcdir)/config/fp-bit.c
18         echo '#define FLOAT' > fp-bit.c
19         echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
20         echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
21         echo '#endif'           >> fp-bit.c
22         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
24 MULTILIB_ENDIAN = ml
25 MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m2/m2e/m4-single-only/m4-single/m4
26 MULTILIB_DIRNAMES= 
27 MULTILIB_MATCHES = m2=m3 m2e=m3e m2=m4-nofpu
28 MULTILIB_EXCEPTIONS = ml
30 LIBGCC = stmp-multilib
31 INSTALL_LIBGCC = install-multilib
33 $(T)crt1.o: $(srcdir)/config/sh/crt1.asm $(GCC_PASSES)
34         $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sh/crt1.asm
35 $(T)crti.o: $(srcdir)/config/sh/crti.asm $(GCC_PASSES)
36         $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sh/crti.asm
37 $(T)crtn.o: $(srcdir)/config/sh/crtn.asm $(GCC_PASSES)
38         $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sh/crtn.asm
40 $(out_object_file): gt-sh.h
41 gt-sh.h : s-gtype ; @true
43 # These are not suitable for COFF.
44 # EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o