1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 INCLUDES = -I$(srcdir)/../common $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
7 src = s_acos.c s_frexp.c s_mathcnst.c \
10 s_asine.c s_cosh.c s_ispos.c s_numtest.c s_sqrt.c \
11 s_exp.c s_ldexp.c s_pow.c s_tan.c \
13 s_atan2.c s_fabs.c s_log.c s_tanh.c \
17 s_atangent.c s_logarithm.c \
19 s_ceil.c s_isnan.c s_isinf.c \
20 e_acosh.c e_atanh.c e_remainder.c \
21 er_gamma.c er_lgamma.c \
22 s_erf.c e_j0.c e_j1.c w_jn.c e_hypot.c \
23 w_cabs.c w_drem.c s_asinh.c s_fmod.c \
24 e_scalb.c s_infconst.c s_signif.c \
28 sf_acos.c sf_frexp.c \
30 sf_asine.c sf_cosh.c sf_ispos.c sf_numtest.c sf_sqrt.c \
32 sf_exp.c sf_ldexp.c sf_pow.c sf_tan.c \
33 sf_atan2.c sf_fabs.c sf_tanh.c \
34 sf_atan.c sf_log10.c sf_sin.c\
35 sf_floor.c sf_sine.c \
37 sf_atangent.c sf_logarithm.c sf_sineh.c \
39 sf_isnan.c sf_isinf.c \
40 ef_acosh.c ef_atanh.c ef_remainder.c \
41 erf_gamma.c erf_lgamma.c \
42 sf_erf.c ef_j0.c ef_j1.c wf_jn.c ef_hypot.c \
43 wf_cabs.c wf_drem.c sf_asinh.c sf_fmod.c \
44 ef_scalb.c sf_signif.c \
47 libmathfp_la_LDFLAGS = -Xcompiler -nostdlib
50 noinst_LTLIBRARIES = libmathfp.la
51 libmathfp_la_SOURCES = $(src) $(fsrc)
52 noinst_DATA = objectlist.awk.in
54 noinst_LIBRARIES = lib.a
55 lib_a_SOURCES = $(src) $(fsrc)
59 include $(srcdir)/../../Makefile.shared
93 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
96 $(CHEW) < $< > $*.def 2> $*.ref
99 TARGETDOC = ../tmp.texi
102 cat $(srcdir)/mathfp.tex >> $(TARGETDOC)
104 CLEANFILES = $(chobj) *.ref
106 # Texinfo does not appear to support underscores in file names, so we
107 # name the .def files without underscores.
109 eacosh.def: e_acosh.c
110 $(CHEW) < $(srcdir)/e_acosh.c >$@ 2>/dev/null
112 eatanh.def: e_atanh.c
113 $(CHEW) < $(srcdir)/e_atanh.c >$@ 2>/dev/null
115 ehypot.def: e_hypot.c
116 $(CHEW) < $(srcdir)/e_hypot.c >$@ 2>/dev/null
118 eremainder.def: e_remainder.c
119 $(CHEW) < $(srcdir)/e_remainder.c >$@ 2>/dev/null
121 erlgamma.def: er_lgamma.c
122 $(CHEW) < $(srcdir)/er_lgamma.c >$@ 2>/dev/null
125 $(CHEW) < $(srcdir)/s_acos.c >$@ 2>/dev/null
127 sasine.def: s_asine.c
128 $(CHEW) < $(srcdir)/s_asine.c >$@ 2>/dev/null
130 sasinh.def: s_asinh.c
131 $(CHEW) < $(srcdir)/s_asinh.c >$@ 2>/dev/null
134 $(CHEW) < $(srcdir)/s_atan.c >$@ 2>/dev/null
136 satan2.def: s_atan2.c
137 $(CHEW) < $(srcdir)/s_atan2.c >$@ 2>/dev/null
139 satangent.def: s_atangent.c
140 $(CHEW) < $(srcdir)/s_atangent.c >$@ 2>/dev/null
143 $(CHEW) < $(srcdir)/s_cosh.c >$@ 2>/dev/null
146 $(CHEW) < $(srcdir)/s_erf.c >$@ 2>/dev/null
149 $(CHEW) < $(srcdir)/s_exp.c >$@ 2>/dev/null
152 $(CHEW) < $(srcdir)/s_fabs.c >$@ 2>/dev/null
154 sfloor.def: s_floor.c
155 $(CHEW) < $(srcdir)/s_floor.c >$@ 2>/dev/null
158 $(CHEW) < $(srcdir)/s_fmod.c >$@ 2>/dev/null
160 sfrexp.def: s_frexp.c
161 $(CHEW) < $(srcdir)/s_frexp.c >$@ 2>/dev/null
163 sisnan.def: s_isnan.c
164 $(CHEW) < $(srcdir)/s_isnan.c >$@ 2>/dev/null
166 sldexp.def: s_ldexp.c
167 $(CHEW) < $(srcdir)/s_ldexp.c >$@ 2>/dev/null
169 slog10.def: s_log10.c
170 $(CHEW) < $(srcdir)/s_log10.c >$@ 2>/dev/null
172 slogarithm.def: s_logarithm.c
173 $(CHEW) < $(srcdir)/s_logarithm.c >$@ 2>/dev/null
176 $(CHEW) < $(srcdir)/s_pow.c >$@ 2>/dev/null
179 $(CHEW) < $(srcdir)/s_sine.c >$@ 2>/dev/null
181 ssineh.def: s_sineh.c
182 $(CHEW) < $(srcdir)/s_sineh.c >$@ 2>/dev/null
185 $(CHEW) < $(srcdir)/s_sqrt.c >$@ 2>/dev/null
188 $(CHEW) < $(srcdir)/s_tan.c >$@ 2>/dev/null
191 $(CHEW) < $(srcdir)/s_tanh.c >$@ 2>/dev/null
194 $(CHEW) < $(srcdir)/w_jn.c >$@ 2>/dev/null
197 # A partial dependency list.
199 $(lib_a_OBJECTS): $(srcdir)/../../libc/include/math.h $(srcdir)/../common/fdlibm.h