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