OSDN Git Service

ef876431d3ded232d5071b302c4017c22e9520d2
[pf3gnuchains/gcc-fork.git] / libquadmath / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.8 foreign
4
5
6 ## Skip over everything if the quadlib is not available:
7 if BUILD_LIBQUADMATH
8 ACLOCAL_AMFLAGS = -I .. -I ../config
9
10 ## May be used by toolexeclibdir.
11 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
12
13 ## Symbol versioning (copied from libssp).
14 if LIBQUAD_USE_SYMVER
15 if LIBQUAD_USE_SYMVER_GNU
16 version_arg = -Wl,--version-script=$(srcdir)/quadmath.map
17 version_dep = $(srcdir)/quadmath.map
18 endif
19 if LIBQUAD_USE_SYMVER_SUN
20 version_arg = -Wl,-M,quadmath.map-sun
21 version_dep = quadmath.map-sun
22 quadmath.map-sun : $(srcdir)/quadmath.map \
23                 $(top_srcdir)/../contrib/make_sunver.pl \
24                 $(libquadmath_la_OBJECTS) $(libquadmath_la_LIBADD)
25         perl $(top_srcdir)/../contrib/make_sunver.pl \
26           $(srcdir)/quadmath.map \
27          `echo $(libquadmath_la_OBJECTS) $(libquadmath_la_LIBADD) | \
28            sed 's,\([^/         ]*\)\.l\([ao]\),.libs/\1.\2,g'` \
29          > $@ || (rm -f $@ ; exit 1)
30 endif
31 else
32 version_arg =
33 version_dep =
34 endif
35
36 toolexeclib_LTLIBRARIES = libquadmath.la
37 libquadmath_la_LIBADD = 
38 libquadmath_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
39                          $(version_arg) -no-undefined -bindir "$(bindir)" -lm
40 libquadmath_la_DEPENDENCIES = $(version_dep) $(libquadmath_la_LIBADD)
41
42 include_HEADERS = quadmath.h quadmath_weak.h
43
44 libquadmath_la_SOURCES = \
45   gdtoa/arith.h gdtoa/gdtoa_fltrnds.h gdtoa/gd_qnan.h gdtoa/gdtoaimp.h \
46   gdtoa/gdtoa.h quadmath-imp.h \
47   gdtoa/dmisc.c gdtoa/gdtoa.c gdtoa/hd_init.c gdtoa/smisc.c gdtoa/sum.c \
48   gdtoa/g_Qfmt.c gdtoa/gethex.c gdtoa/hexnan.c gdtoa/strtodg.c \
49   gdtoa/ulp.c gdtoa/g__fmt.c gdtoa/gmisc.c gdtoa/misc.c gdtoa/strtopQ.c \
50   quadmath_io.c \
51   math/acoshq.c math/fmodq.c math/acosq.c math/frexpq.c \
52   math/rem_pio2q.c math/asinhq.c math/hypotq.c math/remainderq.c \
53   math/asinq.c math/rintq.c math/atan2q.c math/isinfq.c \
54   math/roundq.c math/atanhq.c math/isnanq.c math/scalblnq.c math/atanq.c \
55   math/j0q.c math/scalbnq.c math/cbrtq.c math/j1q.c math/signbitq.c \
56   math/ceilq.c math/jnq.c math/sincos_table.c math/complex.c math/ldexpq.c \
57   math/sincosq.c math/copysignq.c math/lgammaq.c math/sincosq_kernel.c \
58   math/coshq.c math/llroundq.c math/sinhq.c math/cosq.c math/log10q.c \
59   math/sinq.c math/cosq_kernel.c math/log1pq.c math/sinq_kernel.c \
60   math/erfq.c math/logq.c math/sqrtq.c math/expm1q.c math/lroundq.c \
61   math/tanhq.c math/expq.c math/modfq.c math/tanq.c math/fabsq.c \
62   math/nanq.c math/tgammaq.c math/finiteq.c math/nextafterq.c \
63   math/truncq.c math/floorq.c math/powq.c
64
65 # Work around what appears to be a GNU make bug handling MAKEFLAGS
66 # values defined in terms of make variables, as is the case for CC and
67 # friends when we are called from the top level Makefile.
68 AM_MAKEFLAGS = \
69         "AR_FLAGS=$(AR_FLAGS)" \
70         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
71         "CFLAGS=$(CFLAGS)" \
72         "CXXFLAGS=$(CXXFLAGS)" \
73         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
74         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
75         "INSTALL=$(INSTALL)" \
76         "INSTALL_DATA=$(INSTALL_DATA)" \
77         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
78         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
79         "JC1FLAGS=$(JC1FLAGS)" \
80         "LDFLAGS=$(LDFLAGS)" \
81         "LIBCFLAGS=$(LIBCFLAGS)" \
82         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
83         "MAKE=$(MAKE)" \
84         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
85         "PICFLAG=$(PICFLAG)" \
86         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
87         "SHELL=$(SHELL)" \
88         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
89         "exec_prefix=$(exec_prefix)" \
90         "infodir=$(infodir)" \
91         "libdir=$(libdir)" \
92         "prefix=$(prefix)" \
93         "includedir=$(includedir)" \
94         "AR=$(AR)" \
95         "AS=$(AS)" \
96         "CC=$(CC)" \
97         "CXX=$(CXX)" \
98         "LD=$(LD)" \
99         "LIBCFLAGS=$(LIBCFLAGS)" \
100         "NM=$(NM)" \
101         "PICFLAG=$(PICFLAG)" \
102         "RANLIB=$(RANLIB)" \
103         "DESTDIR=$(DESTDIR)"
104
105 MAKEOVERRIDES=
106
107 endif