]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/t-vxworks
rs6000: Load high and low part of 64bit constant independently
[thirdparty/gcc.git] / gcc / config / t-vxworks
CommitLineData
aeee4812 1# Copyright (C) 2002-2023 Free Software Foundation, Inc.
ad41bd84
JM
2#
3# This file is part of GCC.
4#
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.
9#
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.
14#
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/>.
18
2f26f5b5
MP
19vxworks-driver.o: $(srcdir)/config/vxworks-driver.cc
20 $(COMPILE) $<
21 $(POSTCOMPILE)
22
e53b6e56 23vxworks.o: $(srcdir)/config/vxworks.cc
c62f986a
OH
24 $(COMPILE) $<
25 $(POSTCOMPILE)
7800631f 26
e53b6e56 27vxworks-c.o: $(srcdir)/config/vxworks-c.cc
b3405ddc
JB
28 $(COMPILE) $<
29 $(POSTCOMPILE)
30
f3f923e5
OH
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.
36
37NATIVE_SYSTEM_HEADER_DIR =
38
7800631f
OH
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.
42
43LIMITS_H_TEST = true
7800631f 44
cecf8c66
AO
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
7800631f
OH
50# names.
51
cecf8c66 52T_GLIMITS_H = vxw-glimits.h
7800631f 53
cecf8c66
AO
54vxw-glimits.h: $(srcdir)/glimits.h
55 ID=`echo $(BASEVER_c) | sed -e 's/\./_/g'` && \
6a0f6018
OH
56 sed -e "s/_LIMITS_H__/_LIMITS_H__$${ID}_/" < $< > $@T
57 mv $@T $@
58
59# Arrange to "provide" a tailored version of stdint-gcc.h
60
61T_STDINT_GCC_H = vxw-stdint-gcc.h
62
63vxw-stdint-gcc.h: $(srcdir)/ginclude/stdint-gcc.h
64 sed -e "/#define _GCC_STDINT_H/ a #include <_yvals.h>" < $< > $@T
cecf8c66 65 mv $@T $@