150397Sobrien# gmon build rule:
2132718Skan$(T)gmon.o:	$(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) \
3132718Skan  $(TCONFIG_H) tsystem.h coretypes.h $(TM_H) stmp-int-hdrs
452284Sobrien	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
552284Sobrien		-c $(srcdir)/config/sparc/gmon-sol2.c -o $(T)gmon.o
650397Sobrien
750397Sobrien# Assemble startup files.
852284Sobrien$(T)crt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
952284Sobrien	$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
1052284Sobrien$(T)crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES)
1152284Sobrien	$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm
1252284Sobrien$(T)crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES)
1352284Sobrien	$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm
1452284Sobrien$(T)gcrt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
1552284Sobrien	$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -DGCRT1 -o $(T)gcrt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
1650397Sobrien
1750397Sobrien# We need to use -fPIC when we are using gcc to compile the routines in
1850397Sobrien# crtstuff.c.  This is only really needed when we are going to use gcc/g++
1950397Sobrien# to produce a shared library, but since we don't know ahead of time when
2050397Sobrien# we will be doing that, we just always use -fPIC when compiling the
2150397Sobrien# routines in crtstuff.c.
2250397Sobrien
2350397SobrienCRTSTUFF_T_CFLAGS = -fPIC
2450397SobrienTARGET_LIBGCC2_CFLAGS = -fPIC
25