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