1SubDir HAIKU_TOP src system libroot posix glibc arch arm ; 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 13UsePrivateHeaders libroot ; 14 15if $(OPTIM) = -O0 { 16 OPTIM = -O ; 17} 18 19# don't compile with debugging 20DEBUG = 0 ; 21 22SubDirCcFlags -D_GNU_SOURCE -D_IEEE_LIBM ; 23 24local genericSources = 25 lshift.c rshift.c submul_1.c 26 s_finite.c s_finitef.c 27 add_n.c sub_n.c 28 addmul_1.c mul_1.c 29 30 cmp.c dbl2mpn.c divrem.c 31 mpn2dbl.c mpn2flt.c mpn2ldbl.c 32 mul.c mul_n.c 33 s_isinf.c s_isinff.c 34 s_isnan.c s_isnanf.c 35 s_signbit.c s_signbitf.c s_signbitl.c 36 37 s_nan.c s_nanf.c s_nanl.c 38 e_hypot.c e_hypotf.c e_hypotl.c 39 w_hypot.c w_hypotf.c w_hypotl.c 40 s_fpclassify.c s_fpclassifyf.c 41 s_clog.c s_clogf.c s_clogl.c 42 s_log1p.c s_log1pf.c s_log1pl.c 43 s_csqrt.c s_csqrtf.c s_csqrtl.c 44 s_floor.c s_floorf.c 45 s_ceil.c s_ceilf.c 46 s_modf.c 47 w_powf.c e_powf.c 48 w_pow.c e_pow.c slowpow.c 49 w_exp.c e_exp.c slowexp.c 50 s_frexp.c s_expm1.c 51 dosincos.c 52 doasin.c 53 sincos32.c 54 branred.c 55 halfulp.c 56 mpa.c mplog.c mpexp.c 57 s_sin.c 58 s_atan.c s_atanf.c s_atanl.c 59 s_tan.c 60 e_asin.c e_asinl.c 61 w_asin.c w_asinl.c 62 e_log10.c w_log10.c 63 e_logf.c e_logl.c 64 e_acos.c w_acos.c 65 e_atan2.c e_atan2l.c 66 w_atan2.c w_atan2l.c mpatan2.c mpatan.c mptan.c mpsqrt.c w_sqrt.c w_sqrtf.c 67 e_sqrtl.c 68 e_fmod.c w_fmod.c 69 e_log.c w_log.c 70 e_cosh.c w_cosh.c 71 e_sinh.c w_sinh.c 72 s_cosf.c k_cosf.c 73 s_sinf.c k_sinf.c 74 s_ldexp.c s_ldexpf.c 75 s_scalbnf.c s_scalbn.c 76 s_copysign.c s_copysignf.c s_copysignl.c 77 s_tanh.c s_tanf.c k_tanf.c 78 s_lround.c s_lroundf.c s_round.c s_roundf.c 79 s_rint.c s_rintf.c s_lrintf.c 80 e_fmodf.c w_fmodf.c 81 e_atan2f.c w_atan2f.c 82 e_rem_pio2f.c k_rem_pio2f.c 83 84 memrchr.c 85 ; 86 87local architectureObject ; 88for architectureObject in [ MultiArchSubDirSetup arm ] { 89 on $(architectureObject) { 90 local architecture = $(TARGET_PACKAGING_ARCH) ; 91 92 MergeObject <$(architecture)>posix_gnu_arch_$(TARGET_ARCH)_generic.o : 93 $(genericSources) 94 ; 95 96 MergeObject <$(architecture)>posix_gnu_arch_$(TARGET_ARCH)_others.o : 97 e_sqrt.c 98 e_sqrtf.c 99 ; 100 101 MergeObjectFromObjects <$(architecture)>posix_gnu_arch_$(TARGET_ARCH).o 102 : : 103 <$(architecture)>posix_gnu_arch_$(TARGET_ARCH)_generic.o 104 <$(architecture)>posix_gnu_arch_$(TARGET_ARCH)_others.o 105 ; 106 107 SEARCH on [ FGristFiles $(genericSources) ] 108 = [ FDirName $(HAIKU_TOP) src system libroot posix glibc arch 109 generic ] ; 110 } 111} 112