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