Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / config / rs6000 / t-aix43
blobb163ef8af2c5c5c591d0b45683ed96608798bebc
1 # We want fine grained libraries, so use the new code to build the
2 # floating point emulation libraries.
3 FPBIT = fp-bit.c
4 DPBIT = dp-bit.c
6 dp-bit.c: $(srcdir)/config/fp-bit.c
7         cat $(srcdir)/config/fp-bit.c > dp-bit.c
9 fp-bit.c: $(srcdir)/config/fp-bit.c
10         echo '#define FLOAT' > fp-bit.c
11         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
13 # Build the libraries for pthread and all of the 
14 # different processor models
16 MULTILIB_OPTIONS        = pthread \
17                           mcpu=common/mcpu=power/mcpu=powerpc/maix64
19 MULTILIB_DIRNAMES       = pthread \
20                           common power powerpc ppc64
22 MULTILIB_MATCHES        = mcpu?power=mcpu?power \
23                           mcpu?power=mcpu?power2 \
24                           mcpu?powerpc=mcpu?power3 \
25                           mcpu?powerpc=mcpu?power4 \
26                           mcpu?powerpc=mcpu?powerpc \
27                           mcpu?power=mcpu?rios1 \
28                           mcpu?power=mcpu?rios2 \
29                           mcpu?power=mcpu?rsc \
30                           mcpu?power=mcpu?rsc1 \
31                           mcpu?powerpc=mcpu?rs64a \
32                           mcpu?powerpc=mcpu?601 \
33                           mcpu?powerpc=mcpu?602 \
34                           mcpu?powerpc=mcpu?603 \
35                           mcpu?powerpc=mcpu?603e \
36                           mcpu?powerpc=mcpu?604 \
37                           mcpu?powerpc=mcpu?604e \
38                           mcpu?powerpc=mcpu?620 \
39                           mcpu?powerpc=mcpu?630
41 LIBGCC = stmp-multilib
42 INSTALL_LIBGCC = install-multilib
44 # Build a shared libgcc library.
45 SHLIB_EXT = .a
46 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
47         -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
48         @multilib_flags@ @shlib_objs@ -lc \
49         `case @multilib_dir@ in \
50         *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
51         *) echo -lc ;; esac` ; \
52         rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
53         $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \
54         @multilib_dir@/shr.o ; \
55         mv @multilib_dir@/tmp-@shlib_base_name@.a \
56            @multilib_dir@/@shlib_base_name@.a ; \
57         rm -f @multilib_dir@/shr.o
58 # $(slibdir) double quoted to protect it from expansion while building
59 # libgcc.mk.  We want this delayed until actual install time.
60 SHLIB_INSTALL = \
61         $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
62         $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
63                 $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
64 SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
65 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
66 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
67 SHLIB_NM_FLAGS = -Bpg -X32_64
69 # GCC 128-bit long double support routines.
70 LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/darwin-ldouble.c
72 # Either 32-bit and 64-bit objects in archives.
73 AR_FLAGS_FOR_TARGET = -X32_64
75 # Compile Ada files with minimal-toc.  The primary focus is gnatlib, so
76 # that the library does not use nearly the entire TOC of applications
77 # until gnatlib is built as a shared library on AIX.  Compiling the
78 # compiler with -mminimal-toc does not cause any harm.
79 T_ADAFLAGS = -mminimal-toc
80 BOOT_LDFLAGS = -Wl,-bbigtoc