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