Makefile.am 5.8 KB

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