]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/Makefile.am
quadmath.h (__quadmath_throw, [...]): Define.
[thirdparty/gcc.git] / libquadmath / Makefile.am
CommitLineData
1ec601bf
FXC
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 \
4144e658
RO
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)
1ec601bf
FXC
30endif
31else
32version_arg =
33version_dep =
34endif
35
1ec601bf 36toolexeclib_LTLIBRARIES = libquadmath.la
4144e658 37libquadmath_la_LIBADD =
fabfcf5e 38libquadmath_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
7de6ba7a 39 $(version_arg) $(lt_host_flags) -lm
fabfcf5e 40libquadmath_la_DEPENDENCIES = $(version_dep) $(libquadmath_la_LIBADD)
1ec601bf 41
375a39e2
TB
42nodist_libsubinclude_HEADERS = quadmath.h quadmath_weak.h
43libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
1ec601bf
FXC
44
45libquadmath_la_SOURCES = \
46 gdtoa/arith.h gdtoa/gdtoa_fltrnds.h gdtoa/gd_qnan.h gdtoa/gdtoaimp.h \
47 gdtoa/gdtoa.h quadmath-imp.h \
48 gdtoa/dmisc.c gdtoa/gdtoa.c gdtoa/hd_init.c gdtoa/smisc.c gdtoa/sum.c \
49 gdtoa/g_Qfmt.c gdtoa/gethex.c gdtoa/hexnan.c gdtoa/strtodg.c \
50 gdtoa/ulp.c gdtoa/g__fmt.c gdtoa/gmisc.c gdtoa/misc.c gdtoa/strtopQ.c \
51 quadmath_io.c \
52 math/acoshq.c math/fmodq.c 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 \
fa23b182
JJ
64 math/truncq.c math/floorq.c math/powq.c math/fmaq.c \
65 math/cacoshq.c math/cacosq.c math/casinhq.c math/casinq.c \
dbc9f6c6
JJ
66 math/catanhq.c math/catanq.c math/cimagq.c math/conjq.c math/cprojq.c \
67 math/crealq.c math/fdimq.c math/fmaxq.c math/fminq.c math/ilogbq.c \
68 math/llrintq.c math/log2q.c math/lrintq.c math/nearbyintq.c math/remquoq.c
69
1ec601bf 70
fabfcf5e
KT
71# Work around what appears to be a GNU make bug handling MAKEFLAGS
72# values defined in terms of make variables, as is the case for CC and
73# friends when we are called from the top level Makefile.
74AM_MAKEFLAGS = \
75 "AR_FLAGS=$(AR_FLAGS)" \
76 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
77 "CFLAGS=$(CFLAGS)" \
78 "CXXFLAGS=$(CXXFLAGS)" \
79 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
80 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
81 "INSTALL=$(INSTALL)" \
82 "INSTALL_DATA=$(INSTALL_DATA)" \
83 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
84 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
85 "JC1FLAGS=$(JC1FLAGS)" \
86 "LDFLAGS=$(LDFLAGS)" \
87 "LIBCFLAGS=$(LIBCFLAGS)" \
88 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
89 "MAKE=$(MAKE)" \
90 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
91 "PICFLAG=$(PICFLAG)" \
92 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
93 "SHELL=$(SHELL)" \
94 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
95 "exec_prefix=$(exec_prefix)" \
96 "infodir=$(infodir)" \
97 "libdir=$(libdir)" \
98 "prefix=$(prefix)" \
99 "includedir=$(includedir)" \
100 "AR=$(AR)" \
101 "AS=$(AS)" \
102 "CC=$(CC)" \
103 "CXX=$(CXX)" \
104 "LD=$(LD)" \
105 "LIBCFLAGS=$(LIBCFLAGS)" \
106 "NM=$(NM)" \
107 "PICFLAG=$(PICFLAG)" \
108 "RANLIB=$(RANLIB)" \
109 "DESTDIR=$(DESTDIR)"
110
111MAKEOVERRIDES=
112
4c993c44
TB
113# AM_CONDITIONAL on configure option --generated-files-in-srcdir
114if GENINSRC
115STAMP_GENINSRC = stamp-geninsrc
116else
117STAMP_GENINSRC =
118endif
119
120# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
121if BUILD_INFO
122STAMP_BUILD_INFO = stamp-build-info
123else
124STAMP_BUILD_INFO =
1ec601bf 125endif
4c993c44
TB
126
127
128all-local: $(STAMP_GENINSRC)
129
130stamp-geninsrc: libquadmath.info
131 cp -p $(top_builddir)/libquadmath.info $(srcdir)/libquadmath.info
132 @touch $@
133
642d2873 134stamp-build-info: libquadmath.texi $(libquadmath_TEXINFOS)
4c993c44
TB
135 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libquadmath.info $(srcdir)/libquadmath.texi
136 @touch $@
137
138CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libquadmath.info
139MAINTAINERCLEANFILES = $(srcdir)/libquadmath.info
140
a6098a28
RW
141endif BUILD_LIBQUADMATH
142
143# Unconditionally override this target, so that automake's definition
144# does not wrongly interfere.
145libquadmath.info: $(STAMP_BUILD_INFO)
4c993c44
TB
146
147
148# Automake Documentation:
149# If your package has Texinfo files in many directories, you can use the
150# variable TEXINFO_TEX to tell Automake where to find the canonical
151# `texinfo.tex' for your package. The value of this variable should be
152# the relative path from the current `Makefile.am' to `texinfo.tex'.
153TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
154
155# Defines info, dvi, pdf and html targets
156MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
157info_TEXINFOS = libquadmath.texi
642d2873
TB
158libquadmath_TEXINFOS = libquadmath-vers.texi
159
160libquadmath-vers.texi:
161 echo "@set BUGURL $(REPORT_BUGS_TEXI)" > $@