t-aix43 revision 96263
1# We want fine grained libraries, so use the new code to build the
2# floating point emulation libraries.
3FPBIT = fp-bit.c
4DPBIT = dp-bit.c
5
6dp-bit.c: $(srcdir)/config/fp-bit.c
7	cat $(srcdir)/config/fp-bit.c > dp-bit.c
8
9fp-bit.c: $(srcdir)/config/fp-bit.c
10	echo '#define FLOAT' > fp-bit.c
11	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
12
13# Build the libraries for pthread and all of the 
14# different processor models
15
16MULTILIB_OPTIONS	= pthread \
17			  mcpu=common/mcpu=power/mcpu=powerpc/maix64
18
19MULTILIB_DIRNAMES	= pthread \
20			  common power powerpc ppc64
21
22MULTILIB_MATCHES	= mcpu?power=mpower \
23			  mcpu?power=mrios1 \
24			  mcpu?power=mcpu?rios1 \
25			  mcpu?power=mcpu?rsc \
26			  mcpu?power=mcpu?rsc1 \
27			  mcpu?power=mpower2 \
28			  mcpu?power=mrios2 \
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
43
44LIBGCC = stmp-multilib
45INSTALL_LIBGCC = install-multilib
46
47# Build a shared libgcc library.
48SHLIB_EXT = .a
49SHLIB_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.
61SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.a $$(slibdir)/
62SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac`
63SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
64SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
65SHLIB_NM_FLAGS = -Bpg -X32_64
66
67# Either 32-bit and 64-bit objects in archives.
68AR_FLAGS_FOR_TARGET = -X32_64
69
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.
74T_ADAFLAGS = -mminimal-toc
75