1992-07-20 00:05:11 -04:00
|
|
|
# we need to supply our own assembly versions of libgcc1.c files,
|
|
|
|
# since the user may not have native 'cc' available
|
|
|
|
|
1995-01-12 13:36:12 -05:00
|
|
|
LIBGCC1 =
|
|
|
|
CROSS_LIBGCC1 =
|
1996-01-17 17:38:27 -05:00
|
|
|
LIBGCC1_TEST =
|
1992-07-20 00:05:11 -04:00
|
|
|
|
|
|
|
# gmon build rule:
|
1996-06-10 11:44:40 -04:00
|
|
|
gmon.o: $(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H) stmp-int-hdrs
|
1992-07-20 00:05:11 -04:00
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \
|
1993-01-06 01:37:55 -05:00
|
|
|
-c $(srcdir)/config/sparc/gmon-sol2.c -o gmon.o
|
1992-07-20 00:10:32 -04:00
|
|
|
|
|
|
|
# Assemble startup files.
|
1996-06-10 11:44:40 -04:00
|
|
|
crt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
|
1998-09-08 22:43:28 -04:00
|
|
|
$(GCC_FOR_TARGET) -c -o crt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
|
1996-06-10 11:44:40 -04:00
|
|
|
crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES)
|
1998-09-08 22:43:28 -04:00
|
|
|
$(GCC_FOR_TARGET) -c -o crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm
|
1996-06-10 11:44:40 -04:00
|
|
|
crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES)
|
1998-09-08 22:43:28 -04:00
|
|
|
$(GCC_FOR_TARGET) -c -o crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm
|
|
|
|
gcrt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
|
|
|
|
$(GCC_FOR_TARGET) -c -DGCRT1 -o gcrt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
|
1994-11-18 23:09:58 -05:00
|
|
|
|
1995-03-13 18:11:08 -05:00
|
|
|
# We need to use -fPIC when we are using gcc to compile the routines in
|
1994-11-18 23:09:58 -05:00
|
|
|
# crtstuff.c. This is only really needed when we are going to use gcc/g++
|
|
|
|
# to produce a shared library, but since we don't know ahead of time when
|
1995-03-13 18:11:08 -05:00
|
|
|
# we will be doing that, we just always use -fPIC when compiling the
|
1994-11-18 23:09:58 -05:00
|
|
|
# routines in crtstuff.c.
|
|
|
|
|
1995-12-04 12:58:56 -05:00
|
|
|
CRTSTUFF_T_CFLAGS = -fPIC
|
1995-12-04 22:26:37 -05:00
|
|
|
TARGET_LIBGCC2_CFLAGS = -fPIC
|