| 1 |
282 |
jeremybenn |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001,
|
| 2 |
|
|
# 2002 Free Software Foundation, Inc.
|
| 3 |
|
|
#
|
| 4 |
|
|
# This file is part of GCC.
|
| 5 |
|
|
#
|
| 6 |
|
|
# GCC is free software; you can redistribute it and/or modify
|
| 7 |
|
|
# it under the terms of the GNU General Public License as published by
|
| 8 |
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
| 9 |
|
|
# any later version.
|
| 10 |
|
|
#
|
| 11 |
|
|
# GCC is distributed in the hope that it will be useful,
|
| 12 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
|
|
# GNU General Public License for more details.
|
| 15 |
|
|
#
|
| 16 |
|
|
# You should have received a copy of the GNU General Public License
|
| 17 |
|
|
# along with GCC; see the file COPYING3. If not see
|
| 18 |
|
|
# .
|
| 19 |
|
|
|
| 20 |
|
|
# gmon build rule:
|
| 21 |
|
|
$(T)gmon.o: $(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) \
|
| 22 |
|
|
$(TCONFIG_H) tsystem.h coretypes.h $(TM_H) stmp-int-hdrs
|
| 23 |
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
|
| 24 |
|
|
-c $(srcdir)/config/sparc/gmon-sol2.c -o $(T)gmon.o
|
| 25 |
|
|
|
| 26 |
|
|
# Assemble startup files.
|
| 27 |
|
|
$(T)crt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
|
| 28 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
|
| 29 |
|
|
$(T)crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES)
|
| 30 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm
|
| 31 |
|
|
$(T)crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES)
|
| 32 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm
|
| 33 |
|
|
$(T)gcrt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
|
| 34 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -DGCRT1 -o $(T)gcrt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
|
| 35 |
|
|
|
| 36 |
|
|
# We need to use -fPIC when we are using gcc to compile the routines in
|
| 37 |
|
|
# crtstuff.c. This is only really needed when we are going to use gcc/g++
|
| 38 |
|
|
# to produce a shared library, but since we don't know ahead of time when
|
| 39 |
|
|
# we will be doing that, we just always use -fPIC when compiling the
|
| 40 |
|
|
# routines in crtstuff.c.
|
| 41 |
|
|
|
| 42 |
|
|
CRTSTUFF_T_CFLAGS = -fPIC
|
| 43 |
|
|
TARGET_LIBGCC2_CFLAGS = -fPIC
|