1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
7 src = s_finite.c s_copysign.c s_modf.c s_scalbn.c \
8 s_cbrt.c s_expm1.c s_ilogb.c \
9 s_infinity.c s_log1p.c s_nan.c s_nextafter.c \
10 s_rint.c s_logb.c s_matherr.c s_lib_ver.c \
11 s_fdim.c s_fma.c s_fmax.c s_fmin.c s_fpclassify.c s_lrint.c \
12 s_lround.c s_nearbyint.c s_remquo.c s_round.c s_scalbln.c \
15 fsrc = sf_finite.c sf_copysign.c sf_modf.c sf_scalbn.c \
16 sf_cbrt.c sf_expm1.c sf_ilogb.c \
17 sf_infinity.c sf_log1p.c sf_nan.c sf_nextafter.c \
19 sf_fdim.c sf_fma.c sf_fmax.c sf_fmin.c sf_lrint.c \
20 sf_lround.c sf_nearbyint.c sf_remquo.c sf_round.c \
21 sf_scalbln.c sf_trunc.c
23 libcommon_la_LDFLAGS = -Xcompiler -nostdlib
26 noinst_LTLIBRARIES = libcommon.la
27 libcommon_la_SOURCES = $(src) $(fsrc)
28 noinst_DATA = objectlist.awk.in
30 noinst_LIBRARIES = lib.a
31 lib_a_SOURCES = $(src) $(fsrc)
35 include $(srcdir)/../../Makefile.shared
37 chobj = scbrt.def scopysign.def sexpm1.def silogb.def \
38 sinfinity.def slog1p.def smatherr.def smodf.def \
39 snan.def snextafter.def sscalbn.def
43 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
46 $(CHEW) < $< > $*.def 2> $*.ref
49 TARGETDOC = ../tmp.texi
52 cat $(srcdir)/common.tex >> $(TARGETDOC)
54 CLEANFILES = $(chobj) *.ref
56 # Texinfo does not appear to support underscores in file names, so we
57 # name the .def files without underscores.
60 $(CHEW) < $(srcdir)/s_modf.c >$@ 2>/dev/null
63 scopysign.def: s_copysign.c
64 $(CHEW) < $(srcdir)/s_copysign.c >$@ 2>/dev/null
67 sscalbn.def: s_scalbn.c
68 $(CHEW) < $(srcdir)/s_scalbn.c >$@ 2>/dev/null
72 $(CHEW) < $(srcdir)/s_cbrt.c >$@ 2>/dev/null
76 $(CHEW) < $(srcdir)/s_serf.c >$@ 2>/dev/null
80 $(CHEW) < $(srcdir)/s_expn.c >$@ 2>/dev/null
84 $(CHEW) < $(srcdir)/s_expm1.c >$@ 2>/dev/null
88 $(CHEW) < $(srcdir)/s_ilogb.c >$@ 2>/dev/null
91 sinfinity.def: s_infinity.c
92 $(CHEW) < $(srcdir)/s_infinity.c >$@ 2>/dev/null
96 $(CHEW) < $(srcdir)/s_log1p.c >$@ 2>/dev/null
99 smatherr.def: s_matherr.c
100 $(CHEW) < $(srcdir)/s_matherr.c >$@ 2>/dev/null
104 $(CHEW) < $(srcdir)/s_nan.c >$@ 2>/dev/null
107 snextafter.def: s_nextafter.c
108 $(CHEW) < $(srcdir)/s_nextafter.c >$@ 2>/dev/null
111 # A partial dependency list.
113 $(lib_a_OBJECTS): $(srcdir)/../../libc/include/math.h fdlibm.h