SubDir HAIKU_TOP src system libroot posix glibc arch arm ; SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch arm ; SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch generic ; SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include ; SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc libio ; SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc stdlib ; SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc math ; SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc ; SubDirHdrs $(HAIKU_TOP) src system libroot posix glibc arch generic ; UsePrivateHeaders libroot ; if $(OPTIM) = -O0 { OPTIM = -O ; } SubDirCcFlags -D_GNU_SOURCE -D_IEEE_LIBM -DPIC ; SubDirAsFlags -DPIC ; local genericSources = cmp.c dbl2mpn.c divrem.c mpn2dbl.c mpn2flt.c mpn2ldbl.c mul.c mul_n.c add_n.c addmul_1.c ldbl2mpn.c mul_1.c lshift.c rshift.c sub_n.c submul_1.c s_clog.c s_clogf.c s_csqrt.c s_csqrtf.c s_cacos.c s_cacosf.c s_cacosh.c s_cacoshf.c s_casin.c s_casinf.c s_casinh.c s_casinhf.c s_catan.c s_catanf.c s_catanh.c s_catanhf.c s_csin.c s_csinf.c s_csinh.c s_csinhf.c s_ctan.c s_ctanf.c s_ctanh.c s_ctanhf.c s_ccos.c s_ccosf.c s_ccosh.c s_ccoshf.c s_cexp.c s_cexpf.c s_clog10.c s_clog10f.c s_cpow.c s_cpowf.c s_cproj.c s_cprojf.c ; local architectureObject ; for architectureObject in [ MultiArchSubDirSetup arm ] { on $(architectureObject) { local architecture = $(TARGET_PACKAGING_ARCH) ; MergeObject <$(architecture)>posix_gnu_arch_$(TARGET_ARCH).o : $(genericSources) ; SEARCH on [ FGristFiles $(genericSources) ] = [ FDirName $(HAIKU_TOP) src system libroot posix glibc arch generic ] ; } }