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