2 # Free Software Foundation, Inc.
4 # This file is part of GCC.
6 # GCC is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GCC is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GCC; see the file COPYING3. If not see
18 # <http://www.gnu.org/licenses/>.
24 # Under VMS, directory names cannot contain dots.
25 version:=$(shell echo $(BASEVER_c) | sed -e 's/\./_/g')
27 # Temporary restriction: VMS_EXTRA_PARTS must be compiled by DEC C.
28 #VMS_EXTRA_PARTS=vcrt0.o pcrt0.o
31 DECC=`echo $(CC) | sed -e 's/xgcc -B.*/decc$(exeext)/' -e 's/^gcc/decc/' -e 's/^decc/.\/decc/' -e 's/\(.*\)-gcc/\1-decc/'`
33 # Assemble startup files.
34 $(T)vcrt0.o: $(CRT0_S) $(GCC_PASSES)
35 $(DECC) -c /names=as_is $(srcdir)/config/vms/vms-crt0.c -o $(T)vcrt0.o
37 $(T)pcrt0.o: $(CRT0_S) $(GCC_PASSES)
38 $(DECC) -c /names=as_is $(srcdir)/config/vms/vms-psxcrt0.c -o $(T)pcrt0.o