Makefile.am 6.0 KB

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