]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/spu/t-spu-elf
host-hpux.c: Change copyright header to refer to version 3 of the GNU General Public...
[thirdparty/gcc.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
18 # Suppress building libgcc1.a
19 LIBGCC1 =
20 CROSS_LIBGCC1 =
21
22 # On SPU __word__ is TImode which is too inefficient and incomplete for
23 # implementing libgcc routines.
24 TARGET_LIBGCC2_CFLAGS = -fPIC -D__word__=SI -mwarn-reloc
25
26 LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/spu/float_unssidf.c \
27 $(srcdir)/config/spu/float_unsdidf.c
28
29 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
30 $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
31
32 # We want fine grained libraries, so use the new code to build the
33 # floating point emulation libraries.
34 FPBIT = fp-bit.c
35 DPBIT = dp-bit.c
36
37 dp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
38 echo '#undef US_SOFTWARE_GOFAST' > dp-bit.c
39 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
40
41 fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
42 echo '#define FLOAT' > fp-bit.c
43 echo '#undef US_SOFTWARE_GOFAST' >> fp-bit.c
44 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
45
46 # Don't let CTOR_LIST end up in sdata section.
47 CRTSTUFF_T_CFLAGS =
48
49 #MULTILIB_OPTIONS=mlarge-mem/mtest-abi
50 #MULTILIB_DIRNAMES=large-mem test-abi
51 #MULTILIB_MATCHES=
52
53 # Neither gcc or newlib seem to have a standard way to generate multiple
54 # crt*.o files. So we don't use the standard crt0.o name anymore.
55
56 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
57
58 LIBGCC = stmp-multilib
59 INSTALL_LIBGCC = install-multilib
60
61 spu.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
62 $(RTL_H) $(REGS_H) hard-reg-set.h \
63 real.h insn-config.h conditions.h insn-attr.h flags.h $(RECOG_H) \
64 $(OBSTACK_H) $(TREE_H) $(EXPR_H) $(OPTABS_H) except.h function.h \
65 output.h $(BASIC_BLOCK_H) $(INTEGRATE_H) toplev.h $(GGC_H) $(HASHTAB_H) \
66 $(TM_P_H) $(TARGET_H) $(TARGET_DEF_H) langhooks.h reload.h cfglayout.h \
67 $(srcdir)/config/spu/spu-protos.h \
68 $(srcdir)/config/spu/spu-builtins.h \
69 $(srcdir)/config/spu/spu-builtins.def
70
71 spu-c.o: $(srcdir)/config/spu/spu-c.c \
72 $(srcdir)/config/spu/spu-protos.h \
73 $(srcdir)/config/spu/spu-builtins.h \
74 $(srcdir)/config/spu/spu-builtins.def \
75 $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(CPPLIB_H) \
76 $(TM_P_H) c-pragma.h errors.h coretypes.h $(TM_H) insn-codes.h
77 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/spu/spu-c.c
78