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