]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/rs6000/t-aix43
soft-fp: Move to ../libgcc.
[thirdparty/gcc.git] / gcc / config / rs6000 / t-aix43
CommitLineData
ad41bd84 1# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
569dc494 2# 2006, 2011 Free Software Foundation, Inc.
ad41bd84
JM
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# <http://www.gnu.org/licenses/>.
19
a473fe45 20# Build the libraries for pthread and all of the
a260abc9
DE
21# different processor models
22
a473fe45 23MULTILIB_OPTIONS = pthread \
c71791e0 24 mcpu=common/mcpu=power/mcpu=powerpc/maix64
a260abc9 25
a473fe45 26MULTILIB_DIRNAMES = pthread \
5f59ecb7 27 common power powerpc ppc64
a260abc9 28
e3485bbc
DE
29MULTILIB_MATCHES = mcpu?power=mcpu?power \
30 mcpu?power=mcpu?power2 \
31 mcpu?powerpc=mcpu?power3 \
32 mcpu?powerpc=mcpu?power4 \
33 mcpu?powerpc=mcpu?powerpc \
a260abc9 34 mcpu?power=mcpu?rios1 \
e3485bbc 35 mcpu?power=mcpu?rios2 \
a260abc9
DE
36 mcpu?power=mcpu?rsc \
37 mcpu?power=mcpu?rsc1 \
5f59ecb7 38 mcpu?powerpc=mcpu?rs64a \
a260abc9
DE
39 mcpu?powerpc=mcpu?601 \
40 mcpu?powerpc=mcpu?602 \
41 mcpu?powerpc=mcpu?603 \
42 mcpu?powerpc=mcpu?603e \
43 mcpu?powerpc=mcpu?604 \
e3485bbc 44 mcpu?powerpc=mcpu?604e \
a260abc9 45 mcpu?powerpc=mcpu?620 \
e3485bbc 46 mcpu?powerpc=mcpu?630
a260abc9
DE
47
48LIBGCC = stmp-multilib
49INSTALL_LIBGCC = install-multilib
50
0ad7574f
DE
51# Build a shared libgcc library.
52SHLIB_EXT = .a
53SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
54 -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
55 @multilib_flags@ @shlib_objs@ -lc \
4e8d0554 56 `case @multilib_dir@ in \
0ad7574f
DE
57 *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
58 *) echo -lc ;; esac` ; \
4e8d0554
RS
59 rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
60 $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \
61 @multilib_dir@/shr.o ; \
62 mv @multilib_dir@/tmp-@shlib_base_name@.a \
63 @multilib_dir@/@shlib_base_name@.a ; \
0ad7574f 64 rm -f @multilib_dir@/shr.o
9c2e06d9
RH
65# $(slibdir) double quoted to protect it from expansion while building
66# libgcc.mk. We want this delayed until actual install time.
1628a835
DE
67SHLIB_INSTALL = \
68 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
69 $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
4e8d0554
RS
70 $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
71SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
0ad7574f 72SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
aca0b0b3 73SHLIB_MAPFILES = $$(libgcc_objdir)/libgcc-std.ver
174bf2b1 74SHLIB_NM_FLAGS = -Bpg -X32_64
9ebbca7d 75
0134bf2d
DE
76# Either 32-bit and 64-bit objects in archives.
77AR_FLAGS_FOR_TARGET = -X32_64
78