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