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