1# The`long double' type is a distinct type we support if
2# -mlong-double-128 option is used (or when it becomes a default
3# when -mlong-double-64 is not used).
4long-double-fcts = yes
5sysdep-CFLAGS += -mlong-double-128
6
7ifeq ($(subdir),stdlib)
8tests += tst-strtold-ldbl-128ibm
9$(objpfx)tst-strtold-ldbl-128ibm: $(libm)
10endif
11
12ldbl-tests = test-fmodl-ldbl-128ibm test-remainderl-ldbl-128ibm \
13	     test-remquol-ldbl-128ibm test-canonical-ldbl-128ibm \
14	     test-totalorderl-ldbl-128ibm
15
16ifeq ($(subdir),math)
17tests += $(ldbl-tests)
18endif
19
20# Long double files may need extra CFLAGS.
21ldbl-128ibm-routines = s_nexttoward s_nexttowardf \
22		       $(type-ldouble-routines) \
23		       $(subst F,$(type-ldouble-suffix),$(libm-compat-calls)) \
24		       $(subst F,$(type-ldouble-suffix),$(libm-calls)) \
25		       $(subst F,$(type-ldouble-suffix),$(calls)) \
26		       $(foreach f,$(libm-narrow-fns), \
27				 $(subst F,$(f), \
28					 $(libm-narrow-types-ldouble-yes)))
29$(foreach suf,$(all-object-suffixes), \
30	  $(foreach r,$(ldbl-128ibm-routines) $(ldbl-tests), \
31		    $(objpfx)$(r)$(suf))): \
32  CFLAGS += $(type-ldouble-CFLAGS)
33