]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/Makefile.am
[Ada] Warning for out-of-order record representation clauses
[thirdparty/gcc.git] / libquadmath / Makefile.am
CommitLineData
87969c8c 1## Process this file with automake to produce Makefile.in
2
f00f02a3 3AUTOMAKE_OPTIONS = foreign info-in-builddir
87969c8c 4
5## Skip over everything if the quadlib is not available:
6if BUILD_LIBQUADMATH
7ACLOCAL_AMFLAGS = -I .. -I ../config
81927967 8AM_CPPFLAGS = -I $(top_srcdir)/../include
a8fd7248 9AM_CFLAGS = $(XCFLAGS)
87969c8c 10
11## May be used by toolexeclibdir.
0812bb06 12gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
87969c8c 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 \
885e0ef9 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)
87969c8c 31endif
32else
33version_arg =
34version_dep =
35endif
36
87969c8c 37toolexeclib_LTLIBRARIES = libquadmath.la
885e0ef9 38libquadmath_la_LIBADD =
cb3103a1 39libquadmath_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
8c35d268 40 $(version_arg) $(lt_host_flags) -lm
cb3103a1 41libquadmath_la_DEPENDENCIES = $(version_dep) $(libquadmath_la_LIBADD)
87969c8c 42
3b3b9773 43nodist_libsubinclude_HEADERS = quadmath.h quadmath_weak.h
44libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
87969c8c 45
46libquadmath_la_SOURCES = \
e409716d 47 math/x2y2m1q.c math/acoshq.c math/fmodq.c \
4a2f7ea2 48 math/acosq.c math/frexpq.c \
87969c8c 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 \
03cb8c1e 60 math/truncq.c math/floorq.c math/powq.c math/fmaq.c math/logbq.c \
e409716d 61 math/exp2q.c math/issignalingq.c math/lgammaq_neg.c math/lgammaq_product.c \
62 math/tanq_kernel.c math/tgammaq_product.c math/casinhq_kernel.c \
b12676a5 63 math/cacoshq.c math/cacosq.c math/casinhq.c math/casinq.c \
e7b8ec29 64 math/catanhq.c math/catanq.c math/cimagq.c math/conjq.c math/cprojq.c \
65 math/crealq.c math/fdimq.c math/fmaxq.c math/fminq.c math/ilogbq.c \
0c0fb0a6 66 math/llrintq.c math/log2q.c math/lrintq.c math/nearbyintq.c math/remquoq.c \
4a2f7ea2 67 math/ccoshq.c math/cexpq.c math/clog10q.c math/clogq.c math/csinq.c \
68 math/csinhq.c math/csqrtq.c math/ctanq.c math/ctanhq.c \
0c0fb0a6 69 printf/addmul_1.c printf/add_n.c printf/cmp.c printf/divrem.c \
70 printf/flt1282mpn.c printf/fpioconst.c printf/lshift.c printf/mul_1.c \
71 printf/mul_n.c printf/mul.c printf/printf_fphex.c printf/printf_fp.c \
abb2a4bd 72 printf/quadmath-printf.c printf/rshift.c printf/submul_1.c printf/sub_n.c \
73 strtod/strtoflt128.c strtod/mpn2flt128.c strtod/tens_in_limb.c
e7b8ec29 74
87969c8c 75
cb3103a1 76# Work around what appears to be a GNU make bug handling MAKEFLAGS
77# values defined in terms of make variables, as is the case for CC and
78# friends when we are called from the top level Makefile.
79AM_MAKEFLAGS = \
80 "AR_FLAGS=$(AR_FLAGS)" \
81 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
82 "CFLAGS=$(CFLAGS)" \
83 "CXXFLAGS=$(CXXFLAGS)" \
84 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
85 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
86 "INSTALL=$(INSTALL)" \
87 "INSTALL_DATA=$(INSTALL_DATA)" \
88 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
89 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
90 "JC1FLAGS=$(JC1FLAGS)" \
91 "LDFLAGS=$(LDFLAGS)" \
92 "LIBCFLAGS=$(LIBCFLAGS)" \
93 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
94 "MAKE=$(MAKE)" \
95 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
96 "PICFLAG=$(PICFLAG)" \
97 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
98 "SHELL=$(SHELL)" \
99 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
100 "exec_prefix=$(exec_prefix)" \
101 "infodir=$(infodir)" \
102 "libdir=$(libdir)" \
103 "prefix=$(prefix)" \
104 "includedir=$(includedir)" \
105 "AR=$(AR)" \
106 "AS=$(AS)" \
107 "CC=$(CC)" \
108 "CXX=$(CXX)" \
109 "LD=$(LD)" \
110 "LIBCFLAGS=$(LIBCFLAGS)" \
111 "NM=$(NM)" \
112 "PICFLAG=$(PICFLAG)" \
113 "RANLIB=$(RANLIB)" \
114 "DESTDIR=$(DESTDIR)"
115
9b5bb817 116# Subdir rules rely on $(FLAGS_TO_PASS)
117FLAGS_TO_PASS = $(AM_MAKEFLAGS)
118
cb3103a1 119MAKEOVERRIDES=
120
d6580113 121# AM_CONDITIONAL on configure option --generated-files-in-srcdir
122if GENINSRC
123STAMP_GENINSRC = stamp-geninsrc
124else
125STAMP_GENINSRC =
126endif
f00f02a3 127ALL_LOCAL_DEPS = $(STAMP_GENINSRC)
d6580113 128
129# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
130if BUILD_INFO
131STAMP_BUILD_INFO = stamp-build-info
132else
133STAMP_BUILD_INFO =
87969c8c 134endif
d6580113 135
136
d6580113 137stamp-geninsrc: libquadmath.info
138 cp -p $(top_builddir)/libquadmath.info $(srcdir)/libquadmath.info
139 @touch $@
140
95cdaa86 141stamp-build-info: libquadmath.texi $(libquadmath_TEXINFOS)
d6580113 142 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libquadmath.info $(srcdir)/libquadmath.texi
143 @touch $@
144
f00f02a3 145CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO)
d6580113 146MAINTAINERCLEANFILES = $(srcdir)/libquadmath.info
147
d7887345 148endif BUILD_LIBQUADMATH
149
f00f02a3 150all-local: $(ALL_LOCAL_DEPS)
151
d7887345 152# Unconditionally override this target, so that automake's definition
153# does not wrongly interfere.
154libquadmath.info: $(STAMP_BUILD_INFO)
d6580113 155
156
157# Automake Documentation:
158# If your package has Texinfo files in many directories, you can use the
159# variable TEXINFO_TEX to tell Automake where to find the canonical
160# `texinfo.tex' for your package. The value of this variable should be
161# the relative path from the current `Makefile.am' to `texinfo.tex'.
162TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
163
164# Defines info, dvi, pdf and html targets
165MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
acafca51 166
167if BUILD_LIBQUADMATH
d6580113 168info_TEXINFOS = libquadmath.texi
acafca51 169else
170info_TEXINFOS =
acafca51 171endif
95cdaa86 172
0c33e10d 173libquadmath_TEXINFOS = libquadmath-vers.texi
174
95cdaa86 175libquadmath-vers.texi:
176 echo "@set BUGURL $(REPORT_BUGS_TEXI)" > $@
f00f02a3 177
178include $(top_srcdir)/../multilib.am