1 # We want fine grained libraries, so use the new code to build the
2 # floating point emulation libraries.
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=mpower \
24 mcpu?power=mcpu?rios1 \
26 mcpu?power=mcpu?rsc1 \
29 mcpu?power=mcpu?rios2 \
30 mcpu?powerpc=mcpu?rs64a \
31 mcpu?powerpc=mcpu?601 \
32 mcpu?powerpc=mcpu?602 \
33 mcpu?powerpc=mcpu?603 \
34 mcpu?powerpc=mcpu?603e \
35 mcpu?powerpc=mcpu?604 \
36 mcpu?powerpc=mcpu?620 \
37 mcpu?powerpc=mcpu?630 \
38 mcpu?powerpc=mcpu?750 \
39 mcpu?powerpc=mcpu?403 \
40 mcpu?powerpc=mpowerpc \
41 mcpu?powerpc=mpowerpc-gpopt \
42 mcpu?powerpc=mpowerpc-gfxopt
44 LIBGCC = stmp-multilib
45 INSTALL_LIBGCC = install-multilib
47 # Build a shared libgcc library.
49 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
50 -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
51 @multilib_flags@ @shlib_objs@ -lc \
52 `case @shlib_base_name@ in \
53 *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
54 *) echo -lc ;; esac` ; \
55 rm -f tmp-@shlib_base_name@.a ; \
56 $(AR_CREATE_FOR_TARGET) tmp-@shlib_base_name@.a @multilib_dir@/shr.o ; \
57 mv tmp-@shlib_base_name@.a @shlib_base_name@.a ; \
58 rm -f @multilib_dir@/shr.o
59 # $(slibdir) double quoted to protect it from expansion while building
60 # libgcc.mk. We want this delayed until actual install time.
61 SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.a $$(slibdir)/
62 SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac`
63 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
64 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
65 SHLIB_NM_FLAGS = -Bpg -X32_64
67 # Either 32-bit and 64-bit objects in archives.
68 AR_FLAGS_FOR_TARGET = -X32_64
70 # Compile Ada files with minimal-toc. The primary focus is gnatlib, so
71 # that the library does not use nearly the entire TOC of applications
72 # until gnatlib is built as a shared library on AIX. Compiling the
73 # compiler with -mminimal-toc does not cause any harm.
74 T_ADAFLAGS = -mminimal-toc