1SubDir HAIKU_TOP src system libroot posix glibc arch x86 ; 2 3SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch $(TARGET_ARCH) ; 4SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch generic ; 5SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include ; 6SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc libio ; 7SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc stdlib ; 8SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc math ; 9SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc ; 10 11SubDirHdrs $(HAIKU_TOP) src system libroot posix glibc arch generic ; 12 13if $(OPTIM) = -O0 { 14 OPTIM = -O ; 15} 16 17# don't compile with debugging 18DEBUG = 0 ; 19 20SubDirCcFlags -D_GNU_SOURCE -D_IEEE_LIBM ; 21 22local genericSources = 23 cmp.c dbl2mpn.c divrem.c 24 memrchr.c 25 mpn2dbl.c mpn2flt.c mpn2ldbl.c 26 mul.c mul_n.c 27 e_cosh.c e_coshf.c e_coshl.c 28 e_sinh.c e_sinhf.c e_sinhl.c 29 e_asinl.c 30 e_gamma_r.c e_gammaf_r.c e_gammal_r.c 31 e_j0.c e_j0f.c 32 e_j1.c e_j1f.c 33 e_jn.c e_jnf.c 34 e_hypotl.c 35 e_lgamma_r.c e_lgammaf_r.c e_lgammal_r.c 36 k_cos.c k_cosf.c 37 k_sin.c k_sinf.c 38 k_tan.c k_tanf.c 39 s_cacos.c s_cacosf.c 40 s_cacosh.c s_cacoshf.c 41 s_casin.c s_casinf.c 42 s_casinh.c s_casinhf.c 43 s_catan.c s_catanf.c 44 s_catanh.c s_catanhf.c 45 s_ccos.c s_ccosf.c #s_ccosl.c 46 s_ccosh.c s_ccoshf.c #s_ccoshl.c 47 s_clog.c s_clogf.c #s_clogl.c 48 s_clog10.c s_clog10f.c #s_clog10l.c 49 s_cpow.c s_cpowf.c #s_cpowl.c 50 s_cproj.c s_cprojf.c #s_cprojl.c 51 s_csin.c s_csinf.c #s_csinl.c 52 s_csinh.c s_csinhf.c #s_csinhl.c 53 s_csqrt.c s_csqrtf.c #s_csqrtl.c 54 s_ctan.c s_ctanf.c #s_ctanl.c 55 s_ctanh.c s_ctanhf.c #s_ctanhl.c 56 s_erf.c s_erff.c # s_erfl.c 57 s_fpclassify.c s_fpclassifyf.c # s_fpclassifyl.c 58 s_isinf.c s_isinff.c 59 s_isnan.c s_isnanf.c 60 s_ldexp.c s_ldexpf.c #s_ldexpl.c 61 s_lround.c s_lroundf.c s_lroundl.c 62 s_matherr.c 63 s_modf.c s_modff.c # s_modfl.c 64 s_nan.c s_nanf.c 65 s_nextafter.c s_nextafterf.c 66 s_nexttowardl.c 67 s_signbit.c s_signbitf.c s_signbitl.c 68 s_round.c s_roundf.c s_roundl.c 69 s_signgam.c 70 s_tanh.c s_tanhf.c 71 72 w_acos.c w_acosf.c w_acosl.c 73 w_acosh.c w_acoshf.c w_acoshl.c 74 w_asin.c w_asinf.c w_asinl.c 75 w_atan2.c w_atan2f.c w_atan2l.c 76 w_atanh.c w_atanhf.c w_atanhl.c 77 w_cosh.c w_coshf.c w_coshl.c 78 w_drem.c w_dremf.c w_dreml.c 79 w_exp.c w_expf.c w_expl.c 80 w_exp10.c w_exp10f.c w_exp10l.c 81 w_exp2.c w_exp2f.c w_exp2l.c 82 w_fmod.c w_fmodf.c w_fmodl.c 83 w_hypot.c w_hypotf.c w_hypotl.c 84 w_j0.c w_j0f.c 85 w_j1.c w_j1f.c 86 w_jn.c w_jnf.c 87 w_lgamma.c w_lgammaf.c 88 w_lgamma_r.c w_lgammaf_r.c 89 w_log.c w_logf.c w_logl.c 90 w_log10.c w_log10f.c w_log10l.c 91 w_log2.c w_log2f.c w_log2l.c 92 w_pow.c w_powf.c w_powl.c 93 w_remainder.c w_remainderf.c w_remainderl.c 94 w_scalb.c w_scalbf.c w_scalbl.c 95 w_sinh.c w_sinhf.c w_sinhl.c 96 w_sqrt.c w_sqrtf.c w_sqrtl.c 97 w_tgamma.c w_tgammaf.c w_tgammal.c 98; 99 100MergeObject posix_gnu_arch_$(TARGET_ARCH)_other.o : 101 add_n.S 102 addmul_1.S 103 fegetround.c 104 fesetround.c 105 fraiseexcpt.c 106 ldbl2mpn.c 107 mpa.c mpatan.c mpatan2.c mptan.c 108 109 mplog.c 110 mul_1.S 111 lshift.S rshift.S 112 strlen.S 113 sub_n.S 114 submul_1.S 115; 116 117 118MergeObject posix_gnu_arch_$(TARGET_ARCH)_e.o : 119 e_acos.S e_acosf.S e_acosl.c 120 e_acosh.S e_acoshf.S e_acoshl.S 121 e_asin.S e_asinf.S 122 e_atan2.S e_atan2f.S e_atan2l.c 123 e_atanh.S e_atanhf.S e_atanhl.S 124 e_exp.S e_expf.S e_expl.c 125 e_exp2.S e_exp2f.S e_exp2l.S 126 e_exp10.S e_exp10f.S e_exp10l.S 127 e_fmod.S e_fmodf.S e_fmodl.c 128 e_hypot.S e_hypotf.S 129 e_log.S e_logf.S e_logl.S 130 e_log2.S e_log2f.S e_log2l.S 131 e_log10.S e_log10f.S e_log10l.S 132 e_pow.S e_powf.S e_powl.S 133 e_remainder.S e_remainderf.S e_remainderl.S 134 e_scalb.S e_scalbf.S e_scalbl.S 135 e_sqrt.S e_sqrtf.S e_sqrtl.c 136; 137 138MergeObject posix_gnu_arch_$(TARGET_ARCH)_s.o : 139 s_asinh.S s_asinhf.S s_asinhl.S 140 s_atan.S s_atanf.S s_atanl.c 141 s_cbrt.S s_cbrtf.S s_cbrtl.S 142 s_ceil.S s_ceilf.S s_ceill.S 143 s_cexp.S s_cexpf.S s_cexpl.S 144 s_copysign.S s_copysignf.S s_copysignl.S 145 s_cos.S s_cosf.S s_cosl.S 146 s_expm1.S s_expm1f.S s_expm1l.S 147 s_fdim.S s_fdimf.S s_fdiml.S 148 s_fabs.S s_fabsf.S s_fabsl.S 149 s_finite.S s_finitef.S s_finitel.S 150 s_floor.S s_floorf.S s_floorl.S 151 s_fpclassifyl.c 152 s_frexp.S s_frexpf.S s_frexpl.S 153 s_ilogb.S s_ilogbf.S 154 s_isinfl.c 155 s_isnanl.c 156 s_llrint.S s_llrintf.S s_llrintl.S 157 s_log1p.S s_log1pf.S s_log1pl.S 158 s_logb.S s_logbf.S s_logbl.c 159 s_lrint.S s_lrintf.S s_lrintl.S 160 s_nearbyint.S s_nearbyintf.S s_nearbyintl.S 161 s_nextafterl.c 162 s_nexttoward.c s_nexttowardf.c 163 s_remquo.S s_remquof.S s_remquol.S 164 s_rint.S s_rintf.S s_rintl.c 165 s_scalbln.c s_scalblnf.c s_scalblnl.c 166 s_scalbn.S s_scalbnf.S s_scalbnl.S 167 s_significand.S s_significandf.S 168 s_sin.S s_sinf.S s_sinl.S 169 s_sincos.S s_sincosf.S s_sincosl.S 170 s_tan.S s_tanf.S s_tanl.S 171 s_trunc.S s_truncf.S s_truncl.S 172; 173 174MergeObject posix_gnu_arch_$(TARGET_ARCH)_generic.o : 175 $(genericSources) 176; 177 178MergeObjectFromObjects posix_gnu_arch_$(TARGET_ARCH).o : : 179 posix_gnu_arch_$(TARGET_ARCH)_e.o 180 posix_gnu_arch_$(TARGET_ARCH)_generic.o 181 posix_gnu_arch_$(TARGET_ARCH)_other.o 182 posix_gnu_arch_$(TARGET_ARCH)_s.o 183; 184 185SEARCH on [ FGristFiles $(genericSources) ] 186 = [ FDirName $(HAIKU_TOP) src system libroot posix glibc arch generic ] ; 187