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