Fixed inverted test that led to everything below the refresh box being
[AROS.git] / compiler / mlib / mmakefile.src
blob405abcee41d404356bab2ae343b3d936c66187c9
1 # $Id$
3 include $(TOP)/config/make.cfg
5 FILES := \
6     e_acos \
7     e_acosf \
8     e_acosh \
9     e_acoshf \
10     e_asin \
11     e_asinf \
12     e_atan2 \
13     e_atan2f \
14     e_atanh \
15     e_atanhf \
16     e_cosh \
17     e_coshf \
18     e_exp \
19     e_expf \
20     e_fmod \
21     e_fmodf \
22     e_gamma \
23     e_gammaf \
24     e_gammaf_r \
25     e_gamma_r \
26     e_hypot \
27     e_hypotf \
28     e_j0 \
29     e_j0f \
30     e_j1 \
31     e_j1f \
32     e_jn \
33     e_jnf \
34     e_lgamma \
35     e_lgammaf \
36     e_lgammaf_r \
37     e_lgamma_r \
38     e_log10 \
39     e_log10f \
40     e_log \
41     e_logf \
42     e_pow \
43     e_powf \
44     e_remainder \
45     e_remainderf \
46     e_rem_pio2 \
47     e_rem_pio2f \
48     e_scalb \
49     e_scalbf \
50     e_sinh \
51     e_sinhf \
52     e_sqrt \
53     e_sqrtf \
54     k_cos \
55     k_cosf \
56     k_rem_pio2 \
57     k_rem_pio2f \
58     k_sin \
59     k_sinf \
60     k_tan \
61     k_tanf \
62     s_asinh \
63     s_asinhf \
64     s_atan \
65     s_atanf \
66     s_cbrt \
67     s_cbrtf \
68     s_ceil \
69     s_ceilf \
70     s_ceill \
71     s_cimag \
72     s_cimagf \
73     s_cimagl \
74     s_conj \
75     s_conjf \
76     s_conjl \
77     s_copysign \
78     s_copysignf \
79     s_copysignl \
80     s_cos \
81     s_cosf \
82     s_creal \
83     s_crealf \
84     s_creall \
85     s_erf \
86     s_erff \
87     s_exp2 \
88     s_exp2f \
89     s_expm1 \
90     s_expm1f \
91     s_fabs \
92     s_fabsf \
93     s_fabsl \
94     s_fdim \
95     s_finite \
96     s_finitef \
97     s_floor \
98     s_floorf \
99     s_floorl \
100     s_fma \
101     s_fmaf \
102     s_fmax \
103     s_fmaxf \
104     s_fmaxl \
105     s_fmin \
106     s_fminf \
107     s_fminl \
108     s_frexp \
109     s_frexpf \
110     s_ilogb \
111     s_ilogbf \
112     s_ilogbl \
113     s_isfinite \
114     s_isnan \
115     s_isnormal \
116     s_llrint \
117     s_llrintf \
118     s_llround \
119     s_llroundf \
120     s_llroundl \
121     s_log1p \
122     s_log1pf \
123     s_logb \
124     s_logbf \
125     s_lrint \
126     s_lrintf \
127     s_lround \
128     s_lroundf \
129     s_lroundl \
130     s_modf \
131     s_modff \
132     s_modfl \
133     s_nearbyint \
134     s_nextafter \
135     s_nextafterf \
136     s_nexttowardf \
137     s_remquo \
138     s_remquof \
139     s_rint \
140     s_rintf \
141     s_round \
142     s_roundf \
143     s_roundl \
144     s_scalbln \
145     s_scalbn \
146     s_scalbnf \
147     s_signbit \
148     s_signgam \
149     s_significand \
150     s_significandf \
151     s_sin \
152     s_sinf \
153     s_tan \
154     s_tanf \
155     s_tanh \
156     s_tanhf \
157     s_trunc \
158     s_truncf \
159     s_truncl \
160     w_cabs \
161     w_cabsf \
162     w_drem \
163     w_dremf \
164     infinity \
165     fenv \
166     nan \
167     sincos \
168     sincosf \
169     sincosl
171 # If long double != double use these; otherwise, we alias the double versions
172 # These are architectures that have LDBL_MANT_DIG == 53 in float.h
173 # XXX use configure to determine this
174 ifneq ($(AROS_TARGET_CPU), ppc)
175 ifneq ($(AROS_TARGET_CPU), arm)
176 ifneq ($(AROS_TARGET_CPU), m68k)
177 FILES += s_fmal s_frexpl s_nextafterl s_nexttoward s_scalbnl
178 endif
179 endif
180 endif
182 #MM- includes-copy : includes-copy-mlib
184 #MM includes-copy-mlib: setup-includes
185 includes-copy-mlib : $(AROS_INCLUDES)/math.h $(AROS_INCLUDES)/complex.h
187 %rule_copy from=$(SRCDIR)/$(CURDIR)/%.h to=$(AROS_INCLUDES)/%.h
189 #MM- core-linklibs : linklibs-mlib
190 #MM- linklibs : linklibs-mlib
191 #MM- linklibs-mlib : linklibs-arosm-$(CPU) arosm-setup-link
192 #MM linklibs-arosm-hasfpu : includes
193 #MM linklibs-arosm-nofpu : includes
195 # Define lint to get rid of the warnings about rcsid[]
197 USER_CFLAGS := -D_IEEE_LIBM -Dlint '-D__FBSDID(x)=' -msoft-float \
198     -Wno-uninitialized -Wno-parentheses
199 %build_linklib mmake=linklibs-arosm-nofpu libname=arosm files=$(FILES)
201 USER_CFLAGS     := -D_IEEE_LIBM -Dlint '-D__FBSDID(x)=' \
202     -Wno-uninitialized -Wno-parentheses
203 %build_linklib mmake=linklibs-arosm-hasfpu libname=arosm files=$(FILES)
206 arosm-setup-link :
207         @$(RM) $(AROS_LIB)/libm.a
208         @cd $(AROS_LIB); ln -s $(if $(filter aros, $(AROS_HOST_ARCH)),$(AROS_LIB)/libarosm.a,libarosm.a) libm.a
210 %common