OSDN Git Service

* config/spu/spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
[pf3gnuchains/gcc-fork.git] / gcc / config / spu / t-spu-elf
1 #  Copyright (C) 2006, 2007 Free Software Foundation, Inc.
2 #
3 #  This file is free software; you can redistribute it and/or modify it under
4 #  the terms of the GNU General Public License as published by the Free
5 #  Software Foundation; either version 3 of the License, or (at your option) 
6 #  any later version.
7 #
8 #  This file is distributed in the hope that it will be useful, but WITHOUT
9 #  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 #  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11 #  for more details.
12 #
13 #  You should have received a copy of the GNU General Public License
14 #  along with GCC; see the file COPYING3.  If not see
15 #  <http://www.gnu.org/licenses/>.
16
17 # Define system directory to match STANDARD_INCLUDE_DIR in spu-elf.h,
18 # allowing combined SPU/PPU sysroot builds.
19 NATIVE_SYSTEM_HEADER_DIR = /include
20
21 # Suppress building libgcc1.a
22 LIBGCC1 =
23 CROSS_LIBGCC1 =
24
25 TARGET_LIBGCC2_CFLAGS = -fPIC -mwarn-reloc -D__IN_LIBGCC2
26
27 # We exclude those because the libgcc2.c default versions do not support
28 # the SPU single-precision format (round towards zero).  We provide our
29 # own versions below.
30 LIB2FUNCS_EXCLUDE = _floatdisf _floatundisf
31
32 LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/spu/float_unssidf.c \
33                          $(srcdir)/config/spu/float_unsdidf.c \
34                          $(srcdir)/config/spu/float_unsdisf.c \
35                          $(srcdir)/config/spu/float_disf.c \
36                          $(srcdir)/config/spu/mfc_tag_table.c \
37                          $(srcdir)/config/spu/mfc_tag_reserve.c \
38                          $(srcdir)/config/spu/mfc_tag_release.c \
39                          $(srcdir)/config/spu/mfc_multi_tag_reserve.c \
40                          $(srcdir)/config/spu/mfc_multi_tag_release.c \
41                          $(srcdir)/config/spu/multi3.c \
42                          $(srcdir)/config/spu/divmodti4.c
43
44 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
45    $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
46
47 # We want fine grained libraries, so use the new code to build the
48 # floating point emulation libraries.
49 FPBIT = fp-bit.c
50 DPBIT = dp-bit.c
51
52 dp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
53         echo '#undef US_SOFTWARE_GOFAST' > dp-bit.c
54         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
55
56 fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
57         echo '#define FLOAT' > fp-bit.c
58         echo '#undef US_SOFTWARE_GOFAST' >> fp-bit.c
59         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
60
61 # Don't let CTOR_LIST end up in sdata section.
62 CRTSTUFF_T_CFLAGS =
63
64 #MULTILIB_OPTIONS=mlarge-mem/mtest-abi
65 #MULTILIB_DIRNAMES=large-mem test-abi
66 #MULTILIB_MATCHES=
67
68 # Neither gcc or newlib seem to have a standard way to generate multiple
69 # crt*.o files.  So we don't use the standard crt0.o name anymore.
70
71 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
72
73 LIBGCC = stmp-multilib
74 INSTALL_LIBGCC = install-multilib
75
76 spu.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
77   $(RTL_H) $(REGS_H) hard-reg-set.h \
78   real.h insn-config.h conditions.h insn-attr.h flags.h $(RECOG_H) \
79   $(OBSTACK_H) $(TREE_H) $(EXPR_H) $(OPTABS_H) except.h function.h \
80   output.h $(BASIC_BLOCK_H) $(INTEGRATE_H) toplev.h $(GGC_H) $(HASHTAB_H) \
81   $(TM_P_H) $(TARGET_H) $(TARGET_DEF_H) langhooks.h reload.h cfglayout.h \
82   $(srcdir)/config/spu/spu-protos.h \
83   $(srcdir)/config/spu/spu-builtins.h \
84   $(srcdir)/config/spu/spu-builtins.def 
85
86 spu-c.o: $(srcdir)/config/spu/spu-c.c \
87     $(srcdir)/config/spu/spu-protos.h \
88     $(srcdir)/config/spu/spu-builtins.h \
89     $(srcdir)/config/spu/spu-builtins.def \
90     $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(CPPLIB_H) \
91     $(TM_P_H) c-pragma.h errors.h coretypes.h $(TM_H) insn-codes.h
92         $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/spu/spu-c.c
93