1 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008,
2 # 2009, 2010 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 # Build libgcc using the multilib mechanism
21 LIBGCC = stmp-multilib
22 INSTALL_LIBGCC = install-multilib
24 # No special flags needed for libgcc.a
25 TARGET_LIBGCC2_CFLAGS =
27 # Don't build libgcc.a with debug info
28 LIBGCC2_DEBUG_CFLAGS =
30 # Extra libgcc2 modules used by gthr-vxworks.h functions
31 LIB2FUNCS_EXTRA = $(srcdir)/config/vxlib.c $(srcdir)/config/vxlib-tls.c
33 # Some runtime modules need these. Can't set extra_headers in config.gcc
34 # because the paths are always made absolute to the cpu config dir.
35 EXTRA_HEADERS += $(srcdir)/gthr-vxworks.h gthr-default.h
37 # This ensures that the correct target headers are used; some
38 # VxWorks system headers have names that collide with GCC's
39 # internal (host) headers, e.g. regs.h.
40 LIBGCC2_INCLUDES = -nostdinc -I \
41 `case "/$$(MULTIDIR)" in \
42 */mrtp*) echo $(WIND_USR)/h ;; \
43 *) echo $(WIND_BASE)/target/h ;; \
46 # Both the kernel and RTP headers provide limits.h.
49 EXTRA_MULTILIB_PARTS =
51 vxworks.o: $(srcdir)/config/vxworks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
52 $(TARGET_H) output.h $(TM_H)
53 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<