1SubDir HAIKU_TOP src system libroot posix musl math arm64 ; 2 3# std=c11 so __FLT_EVAL_METHOD__ is 0 and not 16: 4# https://gcc.gnu.org/bugzilla//show_bug.cgi?id=100854 5SubDirCcFlags -Wno-unused-but-set-variable -std=c11 ; 6 7SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ; 8UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ; 9UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ; 10 11local generics = 12 acos.c acosf.c acosl.c 13 acosh.c acoshf.c acoshl.c 14 asin.c asinf.c asinl.c 15 asinh.c asinhf.c asinhl.c 16 atan2.c atan2f.c atan2l.c 17 atan.c atanf.c atanl.c 18 atanh.c atanhf.c atanhl.c 19 cbrt.c cbrtf.c cbrtl.c 20 ceill.c 21 copysign.c copysignf.c copysignl.c 22 cos.c cosf.c cosl.c __cosl.c __cos.c __cosdf.c 23 cosh.c coshf.c coshl.c 24 erf.c erff.c erfl.c 25 exp10.c exp10f.c exp10l.c 26 exp2.c exp2f.c exp2f_data.c exp2l.c 27 exp.c exp_data.c expf.c expl.c 28 expm1.c expm1f.c expm1l.c 29 __expo2.c __expo2f.c 30 fabsl.c 31 fdim.c fdimf.c fdiml.c 32 finite.c finitef.c 33 floorl.c 34 fmal.c 35 fmaxl.c 36 fminl.c 37 fmod.c fmodf.c fmodl.c 38 frexp.c frexpf.c frexpl.c 39 hypot.c hypotf.c hypotl.c 40 ilogb.c ilogbf.c ilogbl.c 41 __invtrigl.c 42 j0.c j0f.c j1.c j1f.c jn.c jnf.c 43 ldexp.c ldexpf.c ldexpl.c 44 lgamma.c lgammaf.c lgammaf_r.c lgammal.c lgamma_r.c 45 llrintl.c 46 llroundl.c 47 log10.c log10f.c log10l.c 48 log1p.c log1pf.c log1pl.c 49 log2.c log2_data.c log2f.c log2f_data.c log2l.c 50 logb.c logbf.c logbl.c 51 log.c log_data.c logf.c logf_data.c logl.c 52 lrintl.c 53 lroundl.c 54 __math_divzero.c __math_divzerof.c __math_invalid.c __math_invalidf.c 55 __math_oflow.c __math_oflowf.c __math_uflow.c __math_uflowf.c 56 __math_xflow.c __math_xflowf.c 57 modf.c modff.c modfl.c 58 nan.c nanf.c nanl.c 59 nearbyintl.c 60 nextafter.c nextafterf.c nextafterl.c 61 nexttoward.c nexttowardf.c nexttowardl.c 62 __polevll.c pow.c pow_data.c powf.c powf_data.c powl.c 63 remainder.c remainderf.c remainderl.c 64 __rem_pio2.c __rem_pio2f.c __rem_pio2_large.c __rem_pio2l.c 65 remquo.c remquof.c remquol.c 66 rintl.c 67 roundl.c 68 scalb.c scalbf.c scalbln.c scalblnf.c scalblnl.c scalbn.c scalbnf.c scalbnl.c 69 signgam.c 70 significand.c significandf.c 71 __sin.c sin.c __sinl.c sinl.c 72 sincos.c sincosf.c sincosl.c 73 __sindf.c sinf.c 74 sinh.c sinhf.c sinhl.c 75 sqrtl.c 76 __tan.c tan.c __tandf.c tanf.c __tanl.c tanl.c 77 tanh.c tanhf.c tanhl.c 78 tgamma.c tgammaf.c tgammal.c 79 truncl.c 80 ; 81 82local architectureObject ; 83for architectureObject in [ MultiArchSubDirSetup arm64 ] { 84 on $(architectureObject) { 85 local architecture = $(TARGET_PACKAGING_ARCH) ; 86 87 UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ; 88 89 MergeObject <$(architecture)>posix_musl_math.o : 90 ceil.c ceilf.c 91 fabs.c fabsf.c 92 floor.c floorf.c 93 fma.c fmaf.c 94 fmax.c fmaxf.c 95 fmin.c fminf.c 96 llrint.c llrintf.c 97 llround.c llroundf.c 98 lrint.c lrintf.c 99 lround.c lroundf.c 100 nearbyint.c nearbyintf.c 101 rint.c rintf.c 102 round.c roundf.c 103 sqrt.c sqrtf.c 104 trunc.c truncf.c 105 106 $(generics) 107 ; 108 109 SEARCH on [ FGristFiles $(generics) ] = [ FDirName $(SUBDIR) .. ] ; 110 } 111} 112