1 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2008, 2009
2 # Free Software Foundation, Inc.
4 # This file is part of GCC.
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)
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.
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 # <http://www.gnu.org/licenses/>.
20 LIB1ASMSRC = v850/lib1funcs.asm
21 LIB1ASMFUNCS = _mulsi3 \
74 _callt_save_interrupt \
75 _callt_save_all_interrupt \
84 # We want fine grained libraries, so use the new code to build the
85 # floating point emulation libraries.
89 dp-bit.c: $(srcdir)/config/fp-bit.c
90 echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
91 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
92 echo '#endif' >> dp-bit.c
93 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
95 fp-bit.c: $(srcdir)/config/fp-bit.c
96 echo '#define FLOAT' > fp-bit.c
97 echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
98 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
99 echo '#endif' >> fp-bit.c
100 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
102 # Create target-specific versions of the libraries
103 MULTILIB_OPTIONS = mv850e
104 MULTILIB_DIRNAMES = v850e
105 INSTALL_LIBGCC = install-multilib
106 MULTILIB_MATCHES = mv850e=mv850e1
108 TCFLAGS = -mno-app-regs -msmall-sld -Wa,-mwarn-signed-overflow -Wa,-mwarn-unsigned-overflow
110 v850-c.o: $(srcdir)/config/v850/v850-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
111 $(TM_H) $(CPPLIB_H) $(TREE_H) c-pragma.h toplev.h $(GGC_H) $(TM_P_H)
112 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
113 $(srcdir)/config/v850/v850-c.c