1 # Common support for PowerPC eabi, System V targets.
3 # Do not build libgcc1.
7 # These are really part of libgcc1, but this will cause them to be
8 # built correctly, so... [taken from t-sparclite]
9 LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c eabi.S eabi-ctors.c tramp.S
11 dp-bit.c: $(srcdir)/config/fp-bit.c
12 cat $(srcdir)/config/fp-bit.c > dp-bit.c
14 fp-bit.c: $(srcdir)/config/fp-bit.c
15 echo '#define FLOAT' > fp-bit.c
16 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
18 eabi.S: $(srcdir)/config/rs6000/eabi.asm
19 cat $(srcdir)/config/rs6000/eabi.asm > eabi.S
21 eabi-ctors.c: $(srcdir)/config/rs6000/eabi-ctors.c
22 cat $(srcdir)/config/rs6000/eabi-ctors.c > eabi-ctors.c
24 tramp.S: $(srcdir)/config/rs6000/tramp.asm
25 cat $(srcdir)/config/rs6000/tramp.asm > tramp.S
28 MULTILIB_MATCHES_FLOAT = msoft-float=mcpu?401 \
29 msoft-float=mcpu?403 \
30 msoft-float=mcpu?ec603e \
31 msoft-float=mcpu?801 \
32 msoft-float=mcpu?821 \
33 msoft-float=mcpu?823 \
35 MULTILIB_MATCHES_ENDIAN = mlittle=mlittle-endian mbig=mbig-endian
36 MULTILIB_MATCHES_SYSV = mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi
38 LIBGCC = stmp-multilib
39 INSTALL_LIBGCC = install-multilib
40 EXTRA_MULTILIB_PARTS = ecrti$(objext) ecrtn$(objext) scrt0$(objext) scrti$(objext) scrtn$(objext)
42 # We build {e,s}crti.o, {e,s}crtn.o, and scrt0.o which serve to add begin and
43 # end labels to all of the special sections used when we link using gcc.
45 # Assemble startup files.
46 ecrti.S: $(srcdir)/config/rs6000/eabi-ci.asm
47 cat $(srcdir)/config/rs6000/eabi-ci.asm >ecrti.S
49 ecrtn.S: $(srcdir)/config/rs6000/eabi-cn.asm
50 cat $(srcdir)/config/rs6000/eabi-cn.asm >ecrtn.S
52 scrti.S: $(srcdir)/config/rs6000/sol-ci.asm
53 cat $(srcdir)/config/rs6000/sol-ci.asm >scrti.S
55 scrtn.S: $(srcdir)/config/rs6000/sol-cn.asm
56 cat $(srcdir)/config/rs6000/sol-cn.asm >scrtn.S
58 scrt0.c: $(srcdir)/config/rs6000/sol-c0.c
59 cat $(srcdir)/config/rs6000/sol-c0.c >scrt0.c
61 # Build multiple copies of ?crt{i,n}.o, one for each target switch.
62 $(T)ecrti$(objext): ecrti.S
63 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)ecrti$(objext)
65 $(T)ecrtn$(objext): ecrtn.S
66 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrtn.S -o $(T)ecrtn$(objext)
68 $(T)scrti$(objext): scrti.S
69 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c scrti.S -o $(T)scrti$(objext)
71 $(T)scrtn$(objext): scrtn.S
72 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c scrtn.S -o $(T)scrtn$(objext)
74 $(T)scrt0$(objext): scrt0.c
75 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c scrt0.c -o $(T)scrt0$(objext)
77 # It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata.
78 CRTSTUFF_T_CFLAGS = -msdata=none
79 CRTSTUFF_T_CFLAGS_S = -fpic -msdata=none