fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / common / Makefile.am
blob685219dd05a1a8c12a4f98bcc430d9198db7a19b
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 \
13         s_signbit.c s_trunc.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 \
18         sf_rint.c sf_logb.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
25 if USE_LIBTOOL
26 noinst_LTLIBRARIES = libcommon.la
27 libcommon_la_SOURCES = $(src) $(fsrc)
28 noinst_DATA = objectlist.awk.in
29 else
30 noinst_LIBRARIES = lib.a
31 lib_a_SOURCES = $(src) $(fsrc)
32 noinst_DATA =
33 endif # USE_LIBTOOL
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
41 SUFFIXES = .def
43 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
45 .c.def:
46         $(CHEW) < $< > $*.def 2> $*.ref
47         touch stmp-def
49 TARGETDOC = ../tmp.texi
51 doc: $(chobj)
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.
59 smodf.def: s_modf.c
60         $(CHEW) < $(srcdir)/s_modf.c >$@ 2>/dev/null
61         touch stmp-def
63 scopysign.def: s_copysign.c
64         $(CHEW) < $(srcdir)/s_copysign.c >$@ 2>/dev/null
65         touch stmp-def
67 sscalbn.def: s_scalbn.c
68         $(CHEW) < $(srcdir)/s_scalbn.c >$@ 2>/dev/null
69         touch stmp-def
71 scbrt.def: s_cbrt.c
72         $(CHEW) < $(srcdir)/s_cbrt.c >$@ 2>/dev/null
73         touch stmp-def
75 serf.def: s_erf.c
76         $(CHEW) < $(srcdir)/s_serf.c >$@ 2>/dev/null
77         touch stmp-def
79 sexpn.def: s_expm.c
80         $(CHEW) < $(srcdir)/s_expn.c >$@ 2>/dev/null
81         touch stmp-def
83 sexpm1.def: s_expm1.c
84         $(CHEW) < $(srcdir)/s_expm1.c >$@ 2>/dev/null
85         touch stmp-def
87 silogb.def: s_ilogb.c
88         $(CHEW) < $(srcdir)/s_ilogb.c >$@ 2>/dev/null
89         touch stmp-def
91 sinfinity.def: s_infinity.c
92         $(CHEW) < $(srcdir)/s_infinity.c >$@ 2>/dev/null
93         touch stmp-def
95 slog1p.def: s_log1p.c
96         $(CHEW) < $(srcdir)/s_log1p.c >$@ 2>/dev/null
97         touch stmp-def
99 smatherr.def: s_matherr.c
100         $(CHEW) < $(srcdir)/s_matherr.c >$@ 2>/dev/null
101         touch stmp-def
103 snan.def: s_nan.c
104         $(CHEW) < $(srcdir)/s_nan.c >$@ 2>/dev/null
105         touch stmp-def
107 snextafter.def: s_nextafter.c
108         $(CHEW) < $(srcdir)/s_nextafter.c >$@ 2>/dev/null
109         touch stmp-def
111 # A partial dependency list.
113 $(lib_a_OBJECTS): $(srcdir)/../../libc/include/math.h fdlibm.h