clarify the purpose of this project
[nyanglibc.git] / make / math.sh
blob68237709cecd41037d22b6cd259809c5d494b31a
1 printf "\
2 MATH**************************************************************************\n"
3 fns="\
4 s_isinfl \
5 s_isnanl \
6 s_modfl \
7 s_frexpl \
8 s_signbitl \
9 s_isinf \
10 s_isnan \
11 s_finite \
12 s_ldexpl \
13 s_modf \
14 s_scalbn \
15 s_frexp \
16 s_ldexp \
17 s_isinff \
18 s_isnanf \
19 s_finitef \
20 s_modff \
21 s_scalbnf \
22 s_frexpf \
23 s_ldexpf \
24 s_isinff128 \
25 s_isnanf128 \
26 s_finitef128 \
27 s_copysignf128 \
28 s_modff128 \
29 s_scalbnf128 \
30 s_frexpf128 \
31 s_signbitf128 \
32 s_ldexpf128 \
33 setfpucw \
34 fpu_control \
36 s_finitel \
37 s_copysignl \
38 s_scalbnl \
39 s_copysign \
40 s_signbit \
41 s_copysignf \
42 s_signbitf \
44 mkdir -p $build_dir/math
45 for fn in $fns
47 printf "ASSEMBLING PIE $fn\n"
48 $as $src_dir/math/$fn.s -o $build_dir/math/$fn.o
49 printf "ASSEMBLING SHARED $fn\n"
50 $as $src_dir/math/$fn.shared.s -o $build_dir/math/$fn.os
51 done
52 printf 'CREATING STAMPS FILES\n'
53 printf 'math/s_isinfl.o math/s_isnanl.o math/s_finitel.o math/s_copysignl.o math/s_modfl.o math/s_scalbnl.o math/s_frexpl.o math/s_signbitl.o math/s_ldexpl.o math/s_isinf.o math/s_isnan.o math/s_finite.o math/s_copysign.o math/s_modf.o math/s_scalbn.o math/s_frexp.o math/s_signbit.o math/s_ldexp.o math/s_isinff.o math/s_isnanf.o math/s_finitef.o math/s_copysignf.o math/s_modff.o math/s_scalbnf.o math/s_frexpf.o math/s_signbitf.o math/s_ldexpf.o math/s_isinff128.o math/s_isnanf128.o math/s_finitef128.o math/s_copysignf128.o math/s_modff128.o math/s_scalbnf128.o math/s_frexpf128.o math/s_signbitf128.o math/s_ldexpf128.o math/setfpucw.o math/fpu_control.o\n' >$build_dir/math/stamp.o
54 printf 'math/s_isinfl.os math/s_isnanl.os math/s_finitel.os math/s_copysignl.os math/s_modfl.os math/s_scalbnl.os math/s_frexpl.os math/s_signbitl.os math/s_ldexpl.os math/s_isinf.os math/s_isnan.os math/s_finite.os math/s_copysign.os math/s_modf.os math/s_scalbn.os math/s_frexp.os math/s_signbit.os math/s_ldexp.os math/s_isinff.os math/s_isnanf.os math/s_finitef.os math/s_copysignf.os math/s_modff.os math/s_scalbnf.os math/s_frexpf.os math/s_signbitf.os math/s_ldexpf.os math/s_isinff128.os math/s_isnanf128.os math/s_finitef128.os math/s_copysignf128.os math/s_modff128.os math/s_scalbnf128.os math/s_frexpf128.os math/s_signbitf128.os math/s_ldexpf128.os math/setfpucw.os math/fpu_control.os\n' >$build_dir/math/stamp.os
55 printf '' >$build_dir/math/stamp.oS