update mappings to reflect recent changes
[AROS.git] / compiler / mlib / mmakefile.src
blob8eba9d797933e243b319b835b7bd756342343aca
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_isinf s_isinff \
115     s_isnan \
116     s_isnormal \
117     s_llrint \
118     s_llrintf \
119     s_llround \
120     s_llroundf \
121     s_llroundl \
122     s_log1p \
123     s_log1pf \
124     s_logb \
125     s_logbf \
126     s_lrint \
127     s_lrintf \
128     s_lround \
129     s_lroundf \
130     s_lroundl \
131     s_modf \
132     s_modff \
133     s_modfl \
134     s_nearbyint \
135     s_nextafter \
136     s_nextafterf \
137     s_nexttowardf \
138     s_remquo \
139     s_remquof \
140     s_rint \
141     s_rintf \
142     s_round \
143     s_roundf \
144     s_roundl \
145     s_scalbln \
146     s_scalbn \
147     s_scalbnf \
148     s_signbit \
149     s_signgam \
150     s_significand \
151     s_significandf \
152     s_sin \
153     s_sinf \
154     s_tan \
155     s_tanf \
156     s_tanh \
157     s_tanhf \
158     s_trunc \
159     s_truncf \
160     s_truncl \
161     w_cabs \
162     w_cabsf \
163     w_drem \
164     w_dremf \
165     infinity \
166     fenv \
167     nan \
168     sincos \
169     sincosf \
170     sincosl
172 # If long double != double use these; otherwise, we alias the double versions
173 # These are architectures that have LDBL_MANT_DIG == 53 in float.h
174 # XXX use configure to determine this
175 ifneq ($(AROS_TARGET_CPU), ppc)
176 ifneq ($(AROS_TARGET_CPU), arm)
177 ifneq ($(AROS_TARGET_CPU), m68k)
178 FILES += s_fmal s_frexpl s_nextafterl s_nexttoward s_scalbnl
179 endif
180 endif
181 endif
183 #MM- includes-copy : includes-copy-mlib
185 #MM includes-copy-mlib: setup-includes
186 includes-copy-mlib : $(AROS_INCLUDES)/math.h $(AROS_INCLUDES)/complex.h
188 %rule_copy from=$(SRCDIR)/$(CURDIR)/%.h to=$(AROS_INCLUDES)/%.h
190 #MM- core-linklibs : linklibs-mlib
191 #MM- linklibs : linklibs-mlib
192 #MM- linklibs-mlib : linklibs-arosm-$(CPU) arosm-setup-link
193 #MM linklibs-arosm-hasfpu : includes
194 #MM linklibs-arosm-nofpu : includes
196 # Define lint to get rid of the warnings about rcsid[]
198 USER_CFLAGS := -D_IEEE_LIBM -Dlint '-D__FBSDID(x)=' -msoft-float \
199     -Wno-uninitialized -Wno-parentheses
200 %build_linklib mmake=linklibs-arosm-nofpu libname=arosm files=$(FILES)
202 USER_CFLAGS     := -D_IEEE_LIBM -Dlint '-D__FBSDID(x)=' \
203     -Wno-uninitialized -Wno-parentheses
204 %build_linklib mmake=linklibs-arosm-hasfpu libname=arosm files=$(FILES)
207 arosm-setup-link :
208         @$(RM) $(AROS_LIB)/libm.a
209         @cd $(AROS_LIB); ln -s $(if $(filter aros, $(AROS_HOST_ARCH)),$(AROS_LIB)/libarosm.a,libarosm.a) libm.a
211 %common