1 # Copyright (C) 2009, 2011
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/>.
20 # Enable the crtbegin/end rules disabled in t-ia64
23 # VMS_EXTRA_PARTS is defined in x-vms and represent object files that
24 # are only needed for VMS targets, but can only be compiled on a VMS host
25 # (because they need DEC C).
26 EXTRA_PARTS = $(VMS_EXTRA_PARTS) crtbegin.o crtbeginS.o crtend.o crtendS.o crtinitS.o
28 CRTSTUFF_T_CFLAGS = -O0
29 CRTSTUFF_T_CFLAGS_S = -O0
31 $(T)crtinitS.o: $(srcdir)/config/ia64/vms-crtinit.asm $(GCC_PASSES)
32 $(GCC_FOR_TARGET) -I. -c -o $(T)crtinitS.o -x assembler-with-cpp \
33 $(srcdir)/config/ia64/vms-crtinit.asm
35 # Shared library macros
36 shlib_version:=$(shell echo $(BASEVER_c) | sed -e 's/\./,/' -e 's/\.//g')
38 SHLIB_OBJS = @shlib_objs@
39 SHLIB_NAME = @shlib_base_name@.exe
41 SHLIB_INSTALL = $(INSTALL_DATA) $(SHLIB_NAME) $$(DESTDIR)$$(libsubdir)/$(SHLIB_ NAME)
43 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -nodefaultlibs \
44 -shared --for-linker=/noinform -o $(SHLIB_NAME) $(SHLIB_OBJS) \
45 --for-linker=$(srcdir)/config/ia64/VMS_SYMVEC_@shlib_base_name@.opt \
46 --for-linker=gsmatch=equal,$(shlib_version)