c++: more dummy non_constant_p arg avoidance
[official-gcc.git] / gcc / config / t-vxworks
blob164869a7bf011ce62ef4439b751bad61ac329520
1 # Copyright (C) 2002-2023 Free Software Foundation, Inc.
3 # This file is part of GCC.
5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
10 # GCC is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3.  If not see
17 # <http://www.gnu.org/licenses/>.
19 vxworks-driver.o: $(srcdir)/config/vxworks-driver.cc
20         $(COMPILE) $<
21         $(POSTCOMPILE)
23 vxworks.o: $(srcdir)/config/vxworks.cc
24         $(COMPILE) $<
25         $(POSTCOMPILE)
27 vxworks-c.o: $(srcdir)/config/vxworks-c.cc
28         $(COMPILE) $<
29         $(POSTCOMPILE)
31 # We leverage $sysroot to find target system headers only, distributed
32 # in a VxWorks (a)typical fashion with a different set of headers for
33 # rtp vs kernel mode.  We setup SYSROOT_HEADERS_SUFFIX_SPEC to handle
34 # this, and need to clear NATIVE_SYSTEM_HEADER_DIR to prevent it from
35 # interfering.
37 NATIVE_SYSTEM_HEADER_DIR =
39 # Both the kernel and RTP headers provide limits.h.  They embed VxWorks
40 # specificities and are dated on some configurations so we both need to
41 # provide our own version and make sure the system one gets exposed.
43 LIMITS_H_TEST = true
45 # VxWorks system environments have been GCC based for a long time and
46 # we need to make sure that our files and the system ones use distinct
47 # macro names to protect against recursive inclusions.  We achieve
48 # this by modifying the GLIMITS_H fragment that goes into limits.h
49 # with some version indication in the inclusion-protection macro
50 # names.
52 T_GLIMITS_H = vxw-glimits.h
54 vxw-glimits.h: $(srcdir)/glimits.h
55         ID=`echo $(BASEVER_c) | sed -e 's/\./_/g'` && \
56         sed -e "s/_LIMITS_H__/_LIMITS_H__$${ID}_/" < $< > $@T
57         mv $@T $@
59 # Arrange to "provide" a tailored version of stdint-gcc.h
61 T_STDINT_GCC_H = vxw-stdint-gcc.h
63 vxw-stdint-gcc.h: $(srcdir)/ginclude/stdint-gcc.h
64         sed -e "/#define _GCC_STDINT_H/ a #include <_yvals.h>" < $< > $@T
65         mv $@T $@