]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/Makefile.am
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / libquadmath / Makefile.am
CommitLineData
1ec601bf
FXC
1## Process this file with automake to produce Makefile.in
2
22e05272 3AUTOMAKE_OPTIONS = foreign info-in-builddir
1ec601bf
FXC
4
5## Skip over everything if the quadlib is not available:
6if BUILD_LIBQUADMATH
7ACLOCAL_AMFLAGS = -I .. -I ../config
b21fbbd2 8AM_CPPFLAGS = -I $(top_srcdir)/../include
fda26abe 9AM_CFLAGS = $(XCFLAGS)
1ec601bf
FXC
10
11## May be used by toolexeclibdir.
3c36aa6b 12gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
1ec601bf
FXC
13
14## Symbol versioning (copied from libssp).
15if LIBQUAD_USE_SYMVER
16if LIBQUAD_USE_SYMVER_GNU
17version_arg = -Wl,--version-script=$(srcdir)/quadmath.map
18version_dep = $(srcdir)/quadmath.map
19endif
20if LIBQUAD_USE_SYMVER_SUN
21version_arg = -Wl,-M,quadmath.map-sun
22version_dep = quadmath.map-sun
23quadmath.map-sun : $(srcdir)/quadmath.map \
4144e658
RO
24 $(top_srcdir)/../contrib/make_sunver.pl \
25 $(libquadmath_la_OBJECTS) $(libquadmath_la_LIBADD)
26 perl $(top_srcdir)/../contrib/make_sunver.pl \
27 $(srcdir)/quadmath.map \
28 `echo $(libquadmath_la_OBJECTS) $(libquadmath_la_LIBADD) | \
29 sed 's,\([^/ ]*\)\.l\([ao]\),.libs/\1.\2,g'` \
30 > $@ || (rm -f $@ ; exit 1)
1ec601bf
FXC
31endif
32else
33version_arg =
34version_dep =
35endif
36
1ec601bf 37toolexeclib_LTLIBRARIES = libquadmath.la
4144e658 38libquadmath_la_LIBADD =
fabfcf5e 39libquadmath_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
7de6ba7a 40 $(version_arg) $(lt_host_flags) -lm
fabfcf5e 41libquadmath_la_DEPENDENCIES = $(version_dep) $(libquadmath_la_LIBADD)
1ec601bf 42
375a39e2
TB
43nodist_libsubinclude_HEADERS = quadmath.h quadmath_weak.h
44libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
1ec601bf
FXC
45
46libquadmath_la_SOURCES = \
f029f4be
TB
47 math/x2y2m1q.c math/isinf_nsq.c math/acoshq.c math/fmodq.c \
48 math/acosq.c math/frexpq.c \
1ec601bf
FXC
49 math/rem_pio2q.c math/asinhq.c math/hypotq.c math/remainderq.c \
50 math/asinq.c math/rintq.c math/atan2q.c math/isinfq.c \
51 math/roundq.c math/atanhq.c math/isnanq.c math/scalblnq.c math/atanq.c \
52 math/j0q.c math/scalbnq.c math/cbrtq.c math/j1q.c math/signbitq.c \
53 math/ceilq.c math/jnq.c math/sincos_table.c math/complex.c math/ldexpq.c \
54 math/sincosq.c math/copysignq.c math/lgammaq.c math/sincosq_kernel.c \
55 math/coshq.c math/llroundq.c math/sinhq.c math/cosq.c math/log10q.c \
56 math/sinq.c math/cosq_kernel.c math/log1pq.c math/sinq_kernel.c \
57 math/erfq.c math/logq.c math/sqrtq.c math/expm1q.c math/lroundq.c \
58 math/tanhq.c math/expq.c math/modfq.c math/tanq.c math/fabsq.c \
59 math/nanq.c math/tgammaq.c math/finiteq.c math/nextafterq.c \
03c02a42 60 math/truncq.c math/floorq.c math/powq.c math/fmaq.c math/logbq.c \
fa23b182 61 math/cacoshq.c math/cacosq.c math/casinhq.c math/casinq.c \
dbc9f6c6
JJ
62 math/catanhq.c math/catanq.c math/cimagq.c math/conjq.c math/cprojq.c \
63 math/crealq.c math/fdimq.c math/fmaxq.c math/fminq.c math/ilogbq.c \
1d92226b 64 math/llrintq.c math/log2q.c math/lrintq.c math/nearbyintq.c math/remquoq.c \
f029f4be
TB
65 math/ccoshq.c math/cexpq.c math/clog10q.c math/clogq.c math/csinq.c \
66 math/csinhq.c math/csqrtq.c math/ctanq.c math/ctanhq.c \
1d92226b
JJ
67 printf/addmul_1.c printf/add_n.c printf/cmp.c printf/divrem.c \
68 printf/flt1282mpn.c printf/fpioconst.c printf/lshift.c printf/mul_1.c \
69 printf/mul_n.c printf/mul.c printf/printf_fphex.c printf/printf_fp.c \
a855debf
JJ
70 printf/quadmath-printf.c printf/rshift.c printf/submul_1.c printf/sub_n.c \
71 strtod/strtoflt128.c strtod/mpn2flt128.c strtod/tens_in_limb.c
dbc9f6c6 72
1ec601bf 73
fabfcf5e
KT
74# Work around what appears to be a GNU make bug handling MAKEFLAGS
75# values defined in terms of make variables, as is the case for CC and
76# friends when we are called from the top level Makefile.
77AM_MAKEFLAGS = \
78 "AR_FLAGS=$(AR_FLAGS)" \
79 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
80 "CFLAGS=$(CFLAGS)" \
81 "CXXFLAGS=$(CXXFLAGS)" \
82 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
83 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
84 "INSTALL=$(INSTALL)" \
85 "INSTALL_DATA=$(INSTALL_DATA)" \
86 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
87 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
88 "JC1FLAGS=$(JC1FLAGS)" \
89 "LDFLAGS=$(LDFLAGS)" \
90 "LIBCFLAGS=$(LIBCFLAGS)" \
91 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
92 "MAKE=$(MAKE)" \
93 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
94 "PICFLAG=$(PICFLAG)" \
95 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
96 "SHELL=$(SHELL)" \
97 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
98 "exec_prefix=$(exec_prefix)" \
99 "infodir=$(infodir)" \
100 "libdir=$(libdir)" \
101 "prefix=$(prefix)" \
102 "includedir=$(includedir)" \
103 "AR=$(AR)" \
104 "AS=$(AS)" \
105 "CC=$(CC)" \
106 "CXX=$(CXX)" \
107 "LD=$(LD)" \
108 "LIBCFLAGS=$(LIBCFLAGS)" \
109 "NM=$(NM)" \
110 "PICFLAG=$(PICFLAG)" \
111 "RANLIB=$(RANLIB)" \
112 "DESTDIR=$(DESTDIR)"
113
88cc02ff
JM
114# Subdir rules rely on $(FLAGS_TO_PASS)
115FLAGS_TO_PASS = $(AM_MAKEFLAGS)
116
fabfcf5e
KT
117MAKEOVERRIDES=
118
4c993c44
TB
119# AM_CONDITIONAL on configure option --generated-files-in-srcdir
120if GENINSRC
121STAMP_GENINSRC = stamp-geninsrc
122else
123STAMP_GENINSRC =
124endif
22e05272 125ALL_LOCAL_DEPS = $(STAMP_GENINSRC)
4c993c44
TB
126
127# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
128if BUILD_INFO
129STAMP_BUILD_INFO = stamp-build-info
130else
131STAMP_BUILD_INFO =
1ec601bf 132endif
4c993c44
TB
133
134
4c993c44
TB
135stamp-geninsrc: libquadmath.info
136 cp -p $(top_builddir)/libquadmath.info $(srcdir)/libquadmath.info
137 @touch $@
138
642d2873 139stamp-build-info: libquadmath.texi $(libquadmath_TEXINFOS)
4c993c44
TB
140 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libquadmath.info $(srcdir)/libquadmath.texi
141 @touch $@
142
22e05272 143CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO)
4c993c44
TB
144MAINTAINERCLEANFILES = $(srcdir)/libquadmath.info
145
a6098a28
RW
146endif BUILD_LIBQUADMATH
147
22e05272
JM
148all-local: $(ALL_LOCAL_DEPS)
149
a6098a28
RW
150# Unconditionally override this target, so that automake's definition
151# does not wrongly interfere.
152libquadmath.info: $(STAMP_BUILD_INFO)
4c993c44
TB
153
154
155# Automake Documentation:
156# If your package has Texinfo files in many directories, you can use the
157# variable TEXINFO_TEX to tell Automake where to find the canonical
158# `texinfo.tex' for your package. The value of this variable should be
159# the relative path from the current `Makefile.am' to `texinfo.tex'.
160TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
161
162# Defines info, dvi, pdf and html targets
163MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
9d55066c
FXC
164
165if BUILD_LIBQUADMATH
4c993c44 166info_TEXINFOS = libquadmath.texi
9d55066c
FXC
167else
168info_TEXINFOS =
9d55066c 169endif
642d2873 170
0f01f740
FXC
171libquadmath_TEXINFOS = libquadmath-vers.texi
172
642d2873
TB
173libquadmath-vers.texi:
174 echo "@set BUGURL $(REPORT_BUGS_TEXI)" > $@
22e05272
JM
175
176include $(top_srcdir)/../multilib.am