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