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 =
|
1992-07-20 00:05:11 -04:00
|
|
|
|
|
|
|
# gmon build rule:
|
1993-01-06 01:37:55 -05:00
|
|
|
gmon.o: $(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
|
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.
|
1993-01-06 01:37:55 -05:00
|
|
|
crt1.o: $(srcdir)/config/sparc/sol2-c1.asm
|
|
|
|
$(AS) -o crt1.o $(srcdir)/config/sparc/sol2-c1.asm
|
|
|
|
crti.o: $(srcdir)/config/sparc/sol2-ci.asm
|
|
|
|
$(AS) -o crti.o $(srcdir)/config/sparc/sol2-ci.asm
|
|
|
|
crtn.o: $(srcdir)/config/sparc/sol2-cn.asm
|
|
|
|
$(AS) -o crtn.o $(srcdir)/config/sparc/sol2-cn.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.
|
|
|
|
|
1994-12-06 15:09:44 -05:00
|
|
|
# Since the GNU assembler doesn't support PIC yet, we need to force gcc to
|
|
|
|
# use the native assembler when building crtstuff. If we're a
|
|
|
|
# cross-compiler, just give up on using PIC.
|
|
|
|
|
1995-03-13 18:11:08 -05:00
|
|
|
CRTSTUFF_T_CFLAGS = `if [ -z "$(CROSS)" ]; then echo -fPIC -B/usr/ccs/bin/; fi`
|