1 |
282 |
jeremybenn |
# Copyright (C) 2009
|
2 |
|
|
# Free Software Foundation, Inc.
|
3 |
|
|
#
|
4 |
|
|
# This file is part of GCC.
|
5 |
|
|
#
|
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)
|
9 |
|
|
# any later version.
|
10 |
|
|
#
|
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.
|
15 |
|
|
#
|
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 |
|
|
# .
|
19 |
|
|
|
20 |
|
|
# Enable the crtbegin/end rules disabled in t-ia64
|
21 |
|
|
T =
|
22 |
|
|
|
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
|
27 |
|
|
|
28 |
|
|
CRTSTUFF_T_CFLAGS = -O0
|
29 |
|
|
CRTSTUFF_T_CFLAGS_S = -O0
|
30 |
|
|
|
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
|
34 |
|
|
|
35 |
|
|
LIB2ADDEH += $(srcdir)/config/ia64/fde-vms.c $(srcdir)/gthr-gnat.c
|
36 |
|
|
|
37 |
|
|
# Shared library macros
|
38 |
|
|
shlib_version:=$(shell echo $(BASEVER_c) | sed -e 's/\./,/' -e 's/\.//g')
|
39 |
|
|
SHLIB_EXT = .exe
|
40 |
|
|
SHLIB_OBJS = @shlib_objs@
|
41 |
|
|
SHLIB_NAME = @shlib_base_name@.exe
|
42 |
|
|
SHLIB_MULTILIB =
|
43 |
|
|
SHLIB_INSTALL = $(INSTALL_DATA) $(SHLIB_NAME) $$(DESTDIR)$$(libsubdir)/$(SHLIB_ NAME)
|
44 |
|
|
SHLIB_LINK = \
|
45 |
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -nodefaultlibs \
|
46 |
|
|
-shared --for-linker=/noinform -o $(SHLIB_NAME) $(SHLIB_OBJS) \
|
47 |
|
|
--for-linker=$(srcdir)/config/ia64/VMS_SYMVEC_@shlib_base_name@.opt \
|
48 |
|
|
--for-linker=gsmatch=equal,$(shlib_version)
|
49 |
|
|
|