xref: /haiku/src/system/libroot/posix/glibc/arch/m68k/Jamfile (revision d0c195171329ed1c9897389d215ad9e6e5973284)
1cc9ad8e8SFrançois RevolSubDir HAIKU_TOP src system libroot posix glibc arch m68k ;
2cc9ad8e8SFrançois Revol
3850456edSJérôme DuvalSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc arch $(TARGET_ARCH) ;
4cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch
5cc9ad8e8SFrançois Revol	$(TARGET_ARCH) ;
6cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch generic ;
7cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include ;
8cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc stdlib ;
9cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc math ;
10cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc libio ;
11cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc ;
12cc9ad8e8SFrançois Revol
13cc9ad8e8SFrançois RevolSubDirHdrs $(HAIKU_TOP) src system libroot posix glibc arch generic ;
14cc9ad8e8SFrançois Revol
15cc9ad8e8SFrançois Revol
16cc9ad8e8SFrançois Revolif $(OPTIM) = -O0 {
17cc9ad8e8SFrançois Revol	OPTIM = -O ;
18cc9ad8e8SFrançois Revol}
19cc9ad8e8SFrançois Revol
20cc9ad8e8SFrançois Revol# don't compile with debugging
21cc9ad8e8SFrançois RevolDEBUG = 0 ;
22cc9ad8e8SFrançois Revol
23cc9ad8e8SFrançois RevolSubDirCcFlags -D_GNU_SOURCE -D_IEEE_LIBM ;
24dd68e9e8SFrançois RevolSubDirAsFlags -DMOTOROLA_SYNTAX ;
25cc9ad8e8SFrançois Revol
26cc9ad8e8SFrançois Revol# Note: There is no *l() support yet. Our compiler says sizeof(long double) = 8,
27cc9ad8e8SFrançois Revol# while there are only 96 and 128 bit implementation in glibc.
28cc9ad8e8SFrançois Revollocal genericSources =
29cc9ad8e8SFrançois Revol	branred.c
30cc9ad8e8SFrançois Revol	cmp.c dbl2mpn.c divrem.c
31850456edSJérôme Duval	dosincos.c
32cc9ad8e8SFrançois Revol	halfulp.c
33e65c298cSFrançois Revol	memrchr.c
34cc9ad8e8SFrançois Revol	mpa.c mpatan.c mpatan2.c mpexp.c mplog.c mpn2dbl.c
35cc9ad8e8SFrançois Revol	mpn2flt.c mpn2ldbl.c mpsqrt.c mptan.c
36cc9ad8e8SFrançois Revol	mul.c mul_n.c
37cc9ad8e8SFrançois Revol	sincos32.c
38cc9ad8e8SFrançois Revol	slowexp.c
39cc9ad8e8SFrançois Revol	slowpow.c
40cc9ad8e8SFrançois Revol
41cc9ad8e8SFrançois Revol	e_acosh.c e_acoshf.c # e_acoshl.c
42cc9ad8e8SFrançois Revol	e_atan2.c e_atan2f.c # e_atan2l.c
43cc9ad8e8SFrançois Revol	e_atanh.c e_atanhf.c # e_atanhl.c
44cc9ad8e8SFrançois Revol	e_cosh.c e_coshf.c # e_coshl.c
45cc9ad8e8SFrançois Revol	e_exp.c e_expf.c
46cc9ad8e8SFrançois Revol	e_fmod.c e_fmodf.c # e_fmodl.c
47cc9ad8e8SFrançois Revol	e_gamma_r.c e_gammaf_r.c
48cc9ad8e8SFrançois Revol	e_hypot.c e_hypotf.c # e_hypotl.c
49cc9ad8e8SFrançois Revol	e_j0.c e_j0f.c
50cc9ad8e8SFrançois Revol	e_j1.c e_j1f.c
51cc9ad8e8SFrançois Revol	e_jn.c e_jnf.c
52cc9ad8e8SFrançois Revol	e_lgamma_r.c e_lgammaf_r.c
53cc9ad8e8SFrançois Revol	e_log.c e_logf.c
54cc9ad8e8SFrançois Revol	e_log10.c e_log10f.c
55cc9ad8e8SFrançois Revol	e_pow.c e_powf.c # e_powl.c
56cc9ad8e8SFrançois Revol	e_rem_pio2f.c
57cc9ad8e8SFrançois Revol	e_remainder.c e_remainderf.c # e_remainderl.c
58cc9ad8e8SFrançois Revol	e_scalb.c e_scalbf.c # e_scalbl.c
59cc9ad8e8SFrançois Revol	e_sinh.c e_sinhf.c # e_sinhl.c
60cc9ad8e8SFrançois Revol	k_cos.c k_cosf.c
61cc9ad8e8SFrançois Revol	k_sin.c k_sinf.c
62cc9ad8e8SFrançois Revol	k_rem_pio2.c k_rem_pio2f.c # k_rem_pio2l.c
63cc9ad8e8SFrançois Revol	k_tan.c k_tanf.c
64cc9ad8e8SFrançois Revol	s_asinh.c s_asinhf.c # s_asinhl.c
65cc9ad8e8SFrançois Revol	s_atan.c s_atanf.c # s_atanl.c
66cc9ad8e8SFrançois Revol	s_cbrt.c s_cbrtf.c # s_cbrtl.c
67cc9ad8e8SFrançois Revol	s_ceil.c s_ceilf.c # s_ceill.c
68850456edSJérôme Duval	s_copysign.c s_copysignf.c # s_copysignl.c
69cc9ad8e8SFrançois Revol	s_cos.c s_cosf.c
70cc9ad8e8SFrançois Revol	s_erf.c s_erff.c # s_erfl.c
71cc9ad8e8SFrançois Revol	s_expm1f.c s_expm1.c
72ee679412SFrançois Revol	s_fabs.c s_fabsf.c # s_fabsl.S
73cc9ad8e8SFrançois Revol	s_finite.c s_finitef.c # s_finitel.c
74cc9ad8e8SFrançois Revol	s_floor.c s_floorf.c # s_floorl.c
75*d0c19517SJérôme Duval	s_fma.c s_fmaf.c # s_fmal.c
76*d0c19517SJérôme Duval	s_fmax.c s_fmaxf.c # s_fmaxl.c
77*d0c19517SJérôme Duval	s_fmin.c s_fminf.c # s_fminl.c
78cc9ad8e8SFrançois Revol	s_fpclassify.c s_fpclassifyf.c # s_fpclassifyl.c
79cc9ad8e8SFrançois Revol	s_frexp.c s_frexpf.c # s_frexpl.c
80cc9ad8e8SFrançois Revol	s_ilogb.c s_ilogbf.c
81cc9ad8e8SFrançois Revol	s_isinf.c s_isinff.c # s_isinfl.c
82cc9ad8e8SFrançois Revol	s_ldexp.c s_ldexpf.c # s_ldexpl.c
8359d67522SJérôme Duval	s_llrint.c s_llrintf.c # s_llrintl.c
84cc9ad8e8SFrançois Revol	s_log1p.c s_log1pf.c
85cc9ad8e8SFrançois Revol	s_logb.c s_logbf.c # s_logbl.c
8659d67522SJérôme Duval	s_lrint.c s_lrintf.c # s_lrintl.c
87cc9ad8e8SFrançois Revol	s_lround.c s_lroundf.c
88cc9ad8e8SFrançois Revol	s_modf.c s_modff.c # s_modfl.c
89cc9ad8e8SFrançois Revol	s_nan.c s_nanf.c # s_nanl.c
90bb971482SJérôme Duval	s_nextafter.c s_nextafterf.c # s_nextafterl.c
91ab2b993dSJérôme Duval	s_nexttoward.c # s_nexttowardf.c s_nexttowardl.c
92cc9ad8e8SFrançois Revol	s_round.c s_roundf.c # s_roundl.c
93cc9ad8e8SFrançois Revol	s_scalbn.c s_scalbnf.c # s_scalbnl.c
94cc9ad8e8SFrançois Revol	s_signbit.c s_signbitf.c # s_signbitl.c
95cc9ad8e8SFrançois Revol	s_significand.c s_significandf.c
96cc9ad8e8SFrançois Revol	s_signgam.c
97cc9ad8e8SFrançois Revol	s_sin.c s_sinf.c # s_sinl.c
98cc9ad8e8SFrançois Revol	s_sincos.c s_sincosf.c
99cc9ad8e8SFrançois Revol	s_tan.c s_tanf.c
100cc9ad8e8SFrançois Revol	s_tanh.c s_tanhf.c
101cc9ad8e8SFrançois Revol	s_trunc.c s_truncf.c
102cc9ad8e8SFrançois Revol	t_exp.c
103cc9ad8e8SFrançois Revol	w_acos.c w_acosf.c # w_acosl.c
104cc9ad8e8SFrançois Revol	w_acosh.c w_acoshf.c # w_acoshl.c
105cc9ad8e8SFrançois Revol	w_atan2.c w_atan2f.c # w_atan2l.c
106cc9ad8e8SFrançois Revol	w_asin.c w_asinf.c # w_asinl.c
107cc9ad8e8SFrançois Revol	w_atanh.c w_atanhf.c # w_atanhl.c
108cc9ad8e8SFrançois Revol	w_cosh.c w_coshf.c # w_coshl.c
109cc9ad8e8SFrançois Revol	w_drem.c w_dremf.c # w_dreml.c
110cc9ad8e8SFrançois Revol	w_exp.c w_expf.c # w_expl.c
111cc9ad8e8SFrançois Revol	w_fmod.c w_fmodf.c # w_fmodl.c
112cc9ad8e8SFrançois Revol	w_hypot.c w_hypotf.c # w_hypotl.c
113cc9ad8e8SFrançois Revol	w_j0.c w_j0f.c
114cc9ad8e8SFrançois Revol	w_j1.c w_j1f.c
115cc9ad8e8SFrançois Revol	w_jn.c w_jnf.c
116cc9ad8e8SFrançois Revol	w_lgamma.c w_lgammaf.c
117cc9ad8e8SFrançois Revol	w_lgamma_r.c w_lgammaf_r.c
118cc9ad8e8SFrançois Revol	w_log.c w_logf.c # w_logl.c
119cc9ad8e8SFrançois Revol	w_log10.c w_log10f.c # w_log10l.c
120cc9ad8e8SFrançois Revol	w_pow.c w_powf.c # w_powl.c
121cc9ad8e8SFrançois Revol	w_remainder.c w_remainderf.c # w_remainderl.c
122cc9ad8e8SFrançois Revol	w_scalb.c w_scalbf.c # w_scalbl.c
123cc9ad8e8SFrançois Revol	w_sinh.c w_sinhf.c # w_sinhl.c
124dd68e9e8SFrançois Revol	# no asm for m68k in glibc
125dd68e9e8SFrançois Revol	strlen.c
126dd68e9e8SFrançois Revol	w_sqrt.c w_sqrtf.c # w_sqrtl.c
127cc9ad8e8SFrançois Revol;
128cc9ad8e8SFrançois Revol
129cc9ad8e8SFrançois RevolMergeObject posix_gnu_arch_$(TARGET_ARCH)_generic.o :
130cc9ad8e8SFrançois Revol	$(genericSources)
131cc9ad8e8SFrançois Revol;
132cc9ad8e8SFrançois Revol
133cc9ad8e8SFrançois RevolMergeObject posix_gnu_arch_$(TARGET_ARCH)_other.o :
134cc9ad8e8SFrançois Revol
135dd68e9e8SFrançois Revol	add_n.S
136dd68e9e8SFrançois Revol	addmul_1.S
137850456edSJérôme Duval	doasin.c
138cc9ad8e8SFrançois Revol	feholdexcpt.c fraiseexcpt.c fesetenv.c fesetround.c ftestexcept.c
139cc9ad8e8SFrançois Revol#	ldbl2mpn.c
140dd68e9e8SFrançois Revol	lshift.S rshift.S
141dd68e9e8SFrançois Revol	mul_1.S
142cc9ad8e8SFrançois Revol#	strlen.S
143dd68e9e8SFrançois Revol	sub_n.S
144dd68e9e8SFrançois Revol	submul_1.S
145850456edSJérôme Duval
146850456edSJérôme Duval	e_acos.c e_acosf.c # e_acosl.c
147850456edSJérôme Duval	e_asin.c e_asinf.c # e_asinl.c
148850456edSJérôme Duval	e_sqrt.c e_sqrtf.c # e_sqrtl.c
149cc9ad8e8SFrançois Revol#	s_fdim.c s_fdimf.c # s_fdiml.S
150cc9ad8e8SFrançois Revol#	s_fabs.S s_fabsf.S # s_fabsl.S
15104e088c3SJérôme Duval	# s_fpclassifyl.c
152cc9ad8e8SFrançois Revol#	s_isnan.c s_isnanf.S
153bb971482SJérôme Duval	s_nearbyint.c s_nearbyintf.c # s_nearbyintl.c
154bb971482SJérôme Duval	s_remquo.c s_remquof.c # s_remquol.c
155d8fe1829SFrançois Revol	s_rint.c s_rintf.c # s_rintl.c
156bb971482SJérôme Duval	s_scalbln.c s_scalblnf.c # s_scalblnl.c
157cc9ad8e8SFrançois Revol#	t_sqrt.c
158cc9ad8e8SFrançois Revol#	w_sqrt.c w_sqrtf.c # w_sqrtl.c
159cc9ad8e8SFrançois Revol;
160cc9ad8e8SFrançois Revol
161cc9ad8e8SFrançois RevolMergeObjectFromObjects posix_gnu_arch_$(TARGET_ARCH).o : :
162cc9ad8e8SFrançois Revol	posix_gnu_arch_$(TARGET_ARCH)_generic.o
163cc9ad8e8SFrançois Revol	posix_gnu_arch_$(TARGET_ARCH)_other.o
164cc9ad8e8SFrançois Revol;
165cc9ad8e8SFrançois Revol
166cc9ad8e8SFrançois RevolSEARCH on [ FGristFiles $(genericSources) ]
167cc9ad8e8SFrançois Revol	= [ FDirName $(HAIKU_TOP) src system libroot posix glibc arch generic ] ;
168