OSDN Git Service

667b9baf66a4987fbc22f5fde41ae0a5bc738d94
[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           $(libquadmath_la_OBJECTS:%.lo=.libs/%.o) \
28          `echo $(libquadmath_la_LIBADD) | \
29             sed 's,/\([^/.]*\)\.la,/.libs/\1.a,g'` \
30          > $@ || (rm -f $@ ; exit 1)
31 endif
32 else
33 version_arg =
34 version_dep =
35 endif
36
37 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) \
38             -no-undefined
39
40
41 toolexeclib_LTLIBRARIES = libquadmath.la
42 libquadmath_la_LIBADD = -lm
43 libquadmath_la_LDFLAGS = $(LTLDFLAGS) -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(version_arg)
44 libquadmath_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
45 libquadmath_la_DEPENDENCIES = $(version_dep)
46
47 include_HEADERS = quadmath.h quadmath_weak.h
48
49 libquadmath_la_SOURCES = \
50   gdtoa/arith.h gdtoa/gdtoa_fltrnds.h gdtoa/gd_qnan.h gdtoa/gdtoaimp.h \
51   gdtoa/gdtoa.h quadmath-imp.h \
52   gdtoa/dmisc.c gdtoa/gdtoa.c gdtoa/hd_init.c gdtoa/smisc.c gdtoa/sum.c \
53   gdtoa/g_Qfmt.c gdtoa/gethex.c gdtoa/hexnan.c gdtoa/strtodg.c \
54   gdtoa/ulp.c gdtoa/g__fmt.c gdtoa/gmisc.c gdtoa/misc.c gdtoa/strtopQ.c \
55   quadmath_io.c \
56   math/acoshq.c math/fmodq.c math/acosq.c math/frexpq.c \
57   math/rem_pio2q.c math/asinhq.c math/hypotq.c math/remainderq.c \
58   math/asinq.c math/rintq.c math/atan2q.c math/isinfq.c \
59   math/roundq.c math/atanhq.c math/isnanq.c math/scalblnq.c math/atanq.c \
60   math/j0q.c math/scalbnq.c math/cbrtq.c math/j1q.c math/signbitq.c \
61   math/ceilq.c math/jnq.c math/sincos_table.c math/complex.c math/ldexpq.c \
62   math/sincosq.c math/copysignq.c math/lgammaq.c math/sincosq_kernel.c \
63   math/coshq.c math/llroundq.c math/sinhq.c math/cosq.c math/log10q.c \
64   math/sinq.c math/cosq_kernel.c math/log1pq.c math/sinq_kernel.c \
65   math/erfq.c math/logq.c math/sqrtq.c math/expm1q.c math/lroundq.c \
66   math/tanhq.c math/expq.c math/modfq.c math/tanq.c math/fabsq.c \
67   math/nanq.c math/tgammaq.c math/finiteq.c math/nextafterq.c \
68   math/truncq.c math/floorq.c math/powq.c
69
70 endif