xref: /haiku/src/system/libroot/posix/glibc/arch/arm/Jamfile (revision fc7456e9b1ec38c941134ed6d01c438cf289381e)
1SubDir HAIKU_TOP src system libroot posix glibc arch arm ;
2
3SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch arm ;
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
19SubDirCcFlags -D_GNU_SOURCE -D_IEEE_LIBM -DPIC ;
20SubDirAsFlags -DPIC ;
21
22local genericSources =
23	cmp.c dbl2mpn.c divrem.c
24	mpn2dbl.c mpn2flt.c mpn2ldbl.c
25	mul.c mul_n.c
26
27	add_n.c	addmul_1.c ldbl2mpn.c
28	mul_1.c
29	lshift.c rshift.c
30	sub_n.c submul_1.c
31
32	s_isnan.c s_isnanf.c
33	s_finite.c s_finitef.c
34	s_isinf.c s_isinff.c
35
36	s_clog.c s_clogf.c
37	s_csqrt.c s_csqrtf.c
38	s_cacos.c s_cacosf.c
39	s_cacosh.c s_cacoshf.c
40	s_casin.c s_casinf.c
41	s_casinh.c s_casinhf.c
42	s_catan.c s_catanf.c
43	s_catanh.c s_catanhf.c
44	s_csin.c s_csinf.c
45	s_csinh.c s_csinhf.c
46	s_ctan.c s_ctanf.c
47	s_ctanh.c s_ctanhf.c
48	s_ccos.c s_ccosf.c
49	s_ccosh.c s_ccoshf.c
50	s_cexp.c s_cexpf.c
51	s_clog10.c s_clog10f.c
52	s_cpow.c s_cpowf.c
53	s_cproj.c s_cprojf.c
54	;
55
56local architectureObject ;
57for architectureObject in [ MultiArchSubDirSetup arm ] {
58	on $(architectureObject) {
59		local architecture = $(TARGET_PACKAGING_ARCH) ;
60
61		MergeObject <$(architecture)>posix_gnu_arch_$(TARGET_ARCH).o :
62			$(genericSources)
63			;
64
65		SEARCH on [ FGristFiles $(genericSources) ]
66			= [ FDirName $(HAIKU_TOP) src system libroot posix glibc arch
67				generic ] ;
68	}
69}
70