comparison gcc/config/t-vxworks @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 # Copyright (C) 2002-2018 Free Software Foundation, Inc. 1 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 # 2 #
3 # This file is part of GCC. 3 # This file is part of GCC.
4 # 4 #
5 # GCC is free software; you can redistribute it and/or modify 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 6 # it under the terms of the GNU General Public License as published by
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3. If not see 16 # along with GCC; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>. 17 # <http://www.gnu.org/licenses/>.
18 18
19 # Both the kernel and RTP headers provide limits.h. 19 vxworks.o: $(srcdir)/config/vxworks.c
20 $(COMPILE) $<
21 $(POSTCOMPILE)
22
23 vxworks-c.o: $(srcdir)/config/vxworks-c.c
24 $(COMPILE) $<
25 $(POSTCOMPILE)
26
27 # Arrange to install our stdint.h wrapper, by copying it in the
28 # build-time include dir before this include dir is installed and after
29 # stmp-int-hdrs removes it (because it was told we don't provide it).
30
31 INSTALL_HEADERS += install-stdint.h
32
33 install-stdint.h: stmp-int-hdrs
34 cp -p $(srcdir)/config/vxworks/stdint.h include/stdint.h
35 chmod a+r include/stdint.h
36
37 $(INSTALL_HEADERS_DIR): install-stdint.h
38
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
20 LIMITS_H_TEST = true 43 LIMITS_H_TEST = true
44 STMP_FIXINC = stmp-fixinc
21 45
22 vxworks.o: $(srcdir)/config/vxworks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ 46 # VxWorks system environments have been GCC based for a long time and we need
23 $(TARGET_H) output.h $(TM_H) 47 # to make sure that our files and the system ones use distinct macro names to
24 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< 48 # protect against recursive inclusions. We achieve this by temporarily
49 # substituting the headers used by stmp-int-headers with alternative versions
50 # where we add some version indication in the inclusion-protection macro
51 # names.
52
53 # Before the standard stmp-int-headers operations take place, arrange to
54 # copy the current version of the relevant header files locally, generate
55 # the alternate version and replace the original version with ours:
56
57 stmp-int-hdrs: subst-glimits.h
58
59 subst-%.h:
60 cp -p $(srcdir)/$*.h orig-$*.h
61 ID=$$(echo $(BASEVER_c) | sed -e 's/\./_/g'); \
62 sed -e "s/_LIMITS_H__/_LIMITS_H_$${ID}_/" < $(srcdir)/$*.h > $@
63 cp $@ $(srcdir)/$*.h
64
65 # Then arrange to restore the original versions after the standard
66 # operations have taken place:
67
68 INSTALL_HEADERS += restore-glimits.h
69
70 restore-glimits.h: stmp-int-hdrs
71 cp -p orig-glimits.h $(srcdir)/glimits.h