head	1.2;
access;
symbols
	gcc-2_8_1-990325:1.2
	gcc-2_8_1-990319:1.2
	gcc-2_8_1-990302:1.2
	gcc_2_8_1-990302:1.2
	gcc_2_8_1-990222:1.2
	gcc-2_8_1-990109:1.2
	gcc-2_8_1-981210:1.2
	gcc-2_8_1-981208:1.2
	gcc-2_8_1-980929:1.2
	gcc_2_8_1-980929:1.2
	gcc-2_8_1-980928:1.2
	gcc-2_8_1-980813:1.2
	gcc-2_8_1-980811:1.2
	gcc-2_8_1-980718:1.2
	gcc-2_8_1-980705:1.2
	gcc-2_8_1-980627:1.2
	gcc-2_8_1-980609:1.2
	gcc-2_8_1-980608:1.2
	gcc-2_8_1-980529:1.2
	gcc-2_8_1-980525:1.2
	gcc-2_8_1-980513:1.2
	gcc-2_8_1-980502:1.2
	gcc-2_8_1-980426:1.2
	gcc-2_8_1-980419:1.2
	gcc-2_8_1-980413:1.2
	gcc-2_8_1-980412:1.2
	gcc-2_8_1-980407:1.2
	gcc-2_8_1-980401:1.2
	gcc_2_8_1-980315:1.2
	gcc-2_8_1-RELEASE:1.2;
locks; strict;
comment	@# @;


1.2
date	97.10.24.20.13.24;	author meissner;	state Exp;
branches;
next	1.1;

1.1
date	96.12.12.20.55.56;	author meissner;	state Exp;
branches;
next	;


desc
@Common System V/eabi target Makefile
@


1.2
log
@Apply changes from egcs
@
text
@# Common support for PowerPC eabi, System V targets.

# Do not build libgcc1.
LIBGCC1 =
CROSS_LIBGCC1 =

# These are really part of libgcc1, but this will cause them to be
# built correctly, so... [taken from t-sparclite]
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c eabi.S eabi-ctors.c tramp.S

dp-bit.c: $(srcdir)/config/fp-bit.c
	cat $(srcdir)/config/fp-bit.c > dp-bit.c

fp-bit.c: $(srcdir)/config/fp-bit.c
	echo '#define FLOAT' > fp-bit.c
	cat $(srcdir)/config/fp-bit.c >> fp-bit.c

eabi.S: $(srcdir)/config/rs6000/eabi.asm
	cat $(srcdir)/config/rs6000/eabi.asm > eabi.S

eabi-ctors.c: $(srcdir)/config/rs6000/eabi-ctors.c
	cat $(srcdir)/config/rs6000/eabi-ctors.c > eabi-ctors.c

tramp.S: $(srcdir)/config/rs6000/tramp.asm
	cat $(srcdir)/config/rs6000/tramp.asm > tramp.S

# Switch synonyms
MULTILIB_MATCHES_FLOAT	= msoft-float=mcpu?403 msoft-float=mcpu?821 msoft-float=mcpu?860
MULTILIB_MATCHES_ENDIAN	= mlittle=mlittle-endian mbig=mbig-endian
MULTILIB_MATCHES_SYSV	= mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi

LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
EXTRA_MULTILIB_PARTS = ecrti$(objext) ecrtn$(objext) scrt0$(objext) scrti$(objext) scrtn$(objext)

# We build {e,s}crti.o, {e,s}crtn.o, and scrt0.o which serve to add begin and
# end labels to all of the special sections used when we link using gcc.

# Assemble startup files.
ecrti.S: $(srcdir)/config/rs6000/eabi-ci.asm
	cat $(srcdir)/config/rs6000/eabi-ci.asm >ecrti.S

ecrtn.S: $(srcdir)/config/rs6000/eabi-cn.asm
	cat $(srcdir)/config/rs6000/eabi-cn.asm >ecrtn.S

scrti.S: $(srcdir)/config/rs6000/sol-ci.asm
	cat $(srcdir)/config/rs6000/sol-ci.asm >scrti.S

scrtn.S: $(srcdir)/config/rs6000/sol-cn.asm
	cat $(srcdir)/config/rs6000/sol-cn.asm >scrtn.S

scrt0.c: $(srcdir)/config/rs6000/sol-c0.c
	cat $(srcdir)/config/rs6000/sol-c0.c >scrt0.c

# Build multiple copies of ?crt{i,n}.o, one for each target switch.
$(T)ecrti$(objext): ecrti.S
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)ecrti$(objext)

$(T)ecrtn$(objext): ecrtn.S
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrtn.S -o $(T)ecrtn$(objext)

$(T)scrti$(objext): scrti.S
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c scrti.S -o $(T)scrti$(objext)

$(T)scrtn$(objext): scrtn.S
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c scrtn.S -o $(T)scrtn$(objext)

$(T)scrt0$(objext): scrt0.c
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c scrt0.c -o $(T)scrt0$(objext)

# It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata.
CRTSTUFF_T_CFLAGS = -msdata=none
CRTSTUFF_T_CFLAGS_S = -fpic -msdata=none
@


1.1
log
@Add @@plt if -fpic; Fix double->int conversions if stack > 32k; Redo t-* files; Fix trampolines on System V systems
@
text
@d70 4
@
