t-vxworks revision 1.1 1 1.1 mrg # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008,
2 1.1 mrg # 2009 Free Software Foundation, Inc.
3 1.1 mrg #
4 1.1 mrg # This file is part of GCC.
5 1.1 mrg #
6 1.1 mrg # GCC is free software; you can redistribute it and/or modify
7 1.1 mrg # it under the terms of the GNU General Public License as published by
8 1.1 mrg # the Free Software Foundation; either version 3, or (at your option)
9 1.1 mrg # any later version.
10 1.1 mrg #
11 1.1 mrg # GCC is distributed in the hope that it will be useful,
12 1.1 mrg # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 1.1 mrg # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 1.1 mrg # GNU General Public License for more details.
15 1.1 mrg #
16 1.1 mrg # You should have received a copy of the GNU General Public License
17 1.1 mrg # along with GCC; see the file COPYING3. If not see
18 1.1 mrg # <http://www.gnu.org/licenses/>.
19 1.1 mrg
20 1.1 mrg # Build libgcc using the multilib mechanism
21 1.1 mrg LIBGCC = stmp-multilib
22 1.1 mrg INSTALL_LIBGCC = install-multilib
23 1.1 mrg
24 1.1 mrg # No special flags needed for libgcc.a
25 1.1 mrg TARGET_LIBGCC2_CFLAGS =
26 1.1 mrg
27 1.1 mrg # Don't build libgcc.a with debug info
28 1.1 mrg LIBGCC2_DEBUG_CFLAGS =
29 1.1 mrg
30 1.1 mrg # Extra libgcc2 modules used by gthr-vxworks.h functions
31 1.1 mrg LIB2FUNCS_EXTRA = $(srcdir)/config/vxlib.c $(srcdir)/config/vxlib-tls.c
32 1.1 mrg
33 1.1 mrg # Some runtime modules need these. Can't set extra_headers in config.gcc
34 1.1 mrg # because the paths are always made absolute to the cpu config dir.
35 1.1 mrg EXTRA_HEADERS += $(srcdir)/gthr-vxworks.h gthr-default.h
36 1.1 mrg
37 1.1 mrg # This ensures that the correct target headers are used; some
38 1.1 mrg # VxWorks system headers have names that collide with GCC's
39 1.1 mrg # internal (host) headers, e.g. regs.h.
40 1.1 mrg LIBGCC2_INCLUDES = -nostdinc -I \
41 1.1 mrg `case "/$$(MULTIDIR)" in \
42 1.1 mrg */mrtp*) echo $(WIND_USR)/h ;; \
43 1.1 mrg *) echo $(WIND_BASE)/target/h ;; \
44 1.1 mrg esac`
45 1.1 mrg
46 1.1 mrg # Both the kernel and RTP headers provide limits.h.
47 1.1 mrg LIMITS_H_TEST = true
48 1.1 mrg
49 1.1 mrg EXTRA_MULTILIB_PARTS =
50 1.1 mrg
51 1.1 mrg vxworks.o: $(srcdir)/config/vxworks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
52 1.1 mrg $(TARGET_H) toplev.h output.h $(TM_H)
53 1.1 mrg $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
54