2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / config / rs6000 / t-aix43
blob3cac73bd923795f97eab76054048bbf7dfa3f29d
1 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2 # 2006 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)
9 # any later version.
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 # We want fine grained libraries, so use the new code to build the
21 # floating point emulation libraries.
22 FPBIT = fp-bit.c
23 DPBIT = dp-bit.c
25 dp-bit.c: $(srcdir)/config/fp-bit.c
26         cat $(srcdir)/config/fp-bit.c > dp-bit.c
28 fp-bit.c: $(srcdir)/config/fp-bit.c
29         echo '#define FLOAT' > fp-bit.c
30         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
32 # Build the libraries for pthread and all of the 
33 # different processor models
35 MULTILIB_OPTIONS        = pthread \
36                           mcpu=common/mcpu=power/mcpu=powerpc/maix64
38 MULTILIB_DIRNAMES       = pthread \
39                           common power powerpc ppc64
41 MULTILIB_MATCHES        = mcpu?power=mcpu?power \
42                           mcpu?power=mcpu?power2 \
43                           mcpu?powerpc=mcpu?power3 \
44                           mcpu?powerpc=mcpu?power4 \
45                           mcpu?powerpc=mcpu?powerpc \
46                           mcpu?power=mcpu?rios1 \
47                           mcpu?power=mcpu?rios2 \
48                           mcpu?power=mcpu?rsc \
49                           mcpu?power=mcpu?rsc1 \
50                           mcpu?powerpc=mcpu?rs64a \
51                           mcpu?powerpc=mcpu?601 \
52                           mcpu?powerpc=mcpu?602 \
53                           mcpu?powerpc=mcpu?603 \
54                           mcpu?powerpc=mcpu?603e \
55                           mcpu?powerpc=mcpu?604 \
56                           mcpu?powerpc=mcpu?604e \
57                           mcpu?powerpc=mcpu?620 \
58                           mcpu?powerpc=mcpu?630
60 LIBGCC = stmp-multilib
61 INSTALL_LIBGCC = install-multilib
63 # Build a shared libgcc library.
64 SHLIB_EXT = .a
65 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
66         -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
67         @multilib_flags@ @shlib_objs@ -lc \
68         `case @multilib_dir@ in \
69         *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
70         *) echo -lc ;; esac` ; \
71         rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
72         $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \
73         @multilib_dir@/shr.o ; \
74         mv @multilib_dir@/tmp-@shlib_base_name@.a \
75            @multilib_dir@/@shlib_base_name@.a ; \
76         rm -f @multilib_dir@/shr.o
77 # $(slibdir) double quoted to protect it from expansion while building
78 # libgcc.mk.  We want this delayed until actual install time.
79 SHLIB_INSTALL = \
80         $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
81         $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
82                 $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
83 SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
84 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
85 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
86 SHLIB_NM_FLAGS = -Bpg -X32_64
88 # GCC 128-bit long double support routines.
89 LIB2FUNCS_EXTRA =  $(srcdir)/config/rs6000/ppc64-fp.c \
90         $(srcdir)/config/rs6000/darwin-ldouble.c
91 TARGET_LIBGCC2_CFLAGS = -mlong-double-128
93 # Either 32-bit and 64-bit objects in archives.
94 AR_FLAGS_FOR_TARGET = -X32_64