Rev 3065 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3065 | Rev 3362 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | LIBC_INCLUDES = $(LIBC_TOPDIR)/include |
7 | LIBC_INCLUDES = $(LIBC_TOPDIR)/include |
8 | 8 | ||
Line 9... | Line 9... | ||
9 | NAME:= libc |
9 | NAME:= libc |
Line 10... | Line 10... | ||
10 | 10 | ||
Line 11... | Line 11... | ||
11 | DEFINES:= |
11 | DEFINES:= -D_IEEE_LIBM |
Line 12... | Line 12... | ||
12 | 12 | ||
13 | INCLUDES:= -I $(LIBC_INCLUDES) |
13 | INCLUDES:= -I $(LIBC_INCLUDES) |
Line 251... | Line 251... | ||
251 | sprintf.c \ |
251 | sprintf.c \ |
252 | sscanf.c |
252 | sscanf.c |
253 | 253 | ||
Line 254... | Line 254... | ||
254 | 254 | ||
255 | MATH_SRCS = acosf.c acosh.c acoshf.c acoshl.c acosl.c asinf.c asinh.c asinhf.c asinhl.c \ |
255 | MATH_SRCS = e_acos.c e_acosh.c e_asin.c e_atan2.c e_atanh.c e_cosh.c e_exp.c e_fmod.c \ |
- | 256 | e_hypot.c e_j0.c e_j1.c e_jn.c e_log.c e_log10.c e_pow.c e_rem_pio2.c \ |
|
256 | asinl.c atan2f.c atan2l.c atanf.c atanh.c atanhf.c atanhl.c atanl.c cbrt.c \ |
257 | e_remainder.c e_scalb.c e_sinh.c e_sqrt.c ef_acos.c ef_acosh.c ef_asin.c \ |
- | 258 | ef_atan2.c ef_atanh.c ef_cosh.c ef_exp.c ef_fmod.c ef_hypot.c ef_j0.c ef_j1.c \ |
|
257 | cbrtf.c cbrtl.c coshf.c coshl.c erfl.c expf.c expl.c expm1.c expm1f.c expm1l.c\ |
259 | ef_jn.c ef_log.c ef_log10.c ef_pow.c ef_rem_pio2.c ef_remainder.c ef_scalb.c \ |
258 | fabs.c fabsf.c fabsl.c fdim.c fdimf.c fdiml.c fmal.c fmax.c fmaxf.c fmaxl.c\ |
260 | ef_sinh.c ef_sqrt.c er_gamma.c er_lgamma.c erf_gamma.c erf_lgamma.c f_exp.c \ |
259 | fmin.c fminf.c fminl.c fmodf.c fmodl.c fp_consts.c fp_constsf.c fp_constsl.c\ |
261 | f_expf.c f_llrint.c f_llrintf.c f_llrintl.c f_lrint.c f_lrintf.c f_lrintl.c \ |
260 | fpclassify.c fpclassifyf.c fpclassifyl.c frexpf.c fucom.c hypotf.c isnan.c \ |
262 | f_pow.c f_powf.c f_rint.c f_rintf.c f_rintl.c k_cos.c k_rem_pio2.c k_sin.c \ |
- | 263 | k_standard.c k_tan.c kf_cos.c kf_rem_pio2.c kf_sin.c kf_tan.c s_asinh.c \ |
|
261 | isnanf.c isnanl.c ldexp.c ldexpf.c ldexpl.c lgamma.c lgammaf.c lgammal.c \ |
264 | s_atan.c s_cbrt.c s_ceil.c s_copysign.c s_cos.c s_erf.c s_exp10.c s_expm1.c \ |
- | 265 | s_fabs.c s_fdim.c s_finite.c s_floor.c s_fma.c s_fmax.c s_fmin.c s_fpclassify.c \ |
|
- | 266 | s_frexp.c s_ilogb.c s_infconst.c s_infinity.c s_isinf.c s_isinfd.c s_isnan.c \ |
|
262 | llrint.c llrintf.c llrintl.c logb.c logbf.c logbl.c lrint.c lrintf.c lrintl.c\ |
267 | s_isnand.c s_ldexp.c s_lib_ver.c s_llrint.c s_llround.c s_log1p.c s_log2.c \ |
263 | lround_generic.c modff.c modfl.c nextafterf.c nextafterl.c nexttoward.c \ |
268 | s_logb.c s_lrint.c s_lround.c s_matherr.c s_modf.c s_nan.c s_nearbyint.c \ |
264 | nexttowardf.c pow.c powf.c powi.c powif.c powil.c powl.c rint.c rintf.c \ |
269 | s_nextafter.c s_pow10.c s_remquo.c s_rint.c s_round.c s_scalbln.c s_scalbn.c \ |
265 | rintl.c round_generic.c s_erf.c sf_erf.c signbit.c signbitf.c signbitl.c \ |
270 | s_signbit.c s_signif.c s_sin.c s_tan.c s_tanh.c s_trunc.c scalblnl.c scalbnl.c \ |
- | 271 | sf_asinh.c sf_atan.c sf_cbrt.c sf_ceil.c sf_copysign.c sf_cos.c sf_erf.c \ |
|
- | 272 | sf_exp10.c sf_expm1.c sf_fabs.c sf_fdim.c sf_finite.c sf_floor.c sf_fma.c \ |
|
- | 273 | sf_fmax.c sf_fmin.c sf_fpclassify.c sf_frexp.c sf_ilogb.c sf_infinity.c \ |
|
- | 274 | sf_isinf.c sf_isinff.c sf_isnan.c sf_isnanf.c sf_ldexp.c sf_llrint.c \ |
|
266 | sinhf.c sinhl.c sqrtf.c sqrtl.c tanhf.c tanhl.c tgamma.c tgammaf.c tgammal.c \ |
275 | sf_llround.c sf_log1p.c sf_log2.c sf_logb.c sf_lrint.c sf_lround.c sf_modf.c \ |
267 | trunc.c truncf.c truncl.c e_sqrt.c e_sinh.c e_cosh.c e_hypot.c s_tanh.c \ |
276 | sf_nan.c sf_nearbyint.c sf_nextafter.c sf_pow10.c sf_remquo.c sf_rint.c \ |
268 | s_roundf.c s_fpclassify.c s_isnand.c w_hypot.c s_modf.c e_atan2.c w_atan2.c\ |
277 | sf_round.c sf_scalbln.c sf_scalbn.c sf_signif.c sf_sin.c sf_tan.c sf_tanh.c \ |
269 | ceil.S ceilf.S ceill.S copysign.S copysignf.S copysignl.S cos.S cosf.S cosl.S exp.S exp2.S \ |
278 | sf_trunc.c w_acos.c w_acosh.c w_asin.c w_atan2.c w_atanh.c w_cosh.c w_drem.c \ |
270 | exp2f.S exp2l.S floor.S floorf.S floorl.S fma.S fmaf.S frexp.S frexpl.S ilogb.S ilogbf.S \ |
279 | w_exp.c w_exp2.c w_fmod.c w_gamma.c w_hypot.c w_j0.c w_j1.c w_jn.c w_lgamma.c \ |
- | 280 | w_log.c w_log10.c w_pow.c w_remainder.c w_scalb.c w_sincos.c w_sinh.c w_sqrt.c \ |
|
- | 281 | w_tgamma.c wf_acos.c wf_acosh.c wf_asin.c wf_atan2.c wf_atanh.c wf_cosh.c \ |
|
271 | ilogbl.S log10.S log10f.S log10l.S log1p.S log1pf.S log1pl.S log2.S log2f.S log2l.S \ |
282 | wf_drem.c wf_exp.c wf_exp2.c wf_fmod.c wf_gamma.c wf_hypot.c wf_j0.c wf_j1.c \ |
- | 283 | wf_jn.c wf_lgamma.c wf_log.c wf_log10.c wf_pow.c wf_remainder.c wf_scalb.c \ |
|
- | 284 | wf_sincos.c wf_sinh.c wf_sqrt.c wf_tgamma.c wr_gamma.c wr_lgamma.c wrf_gamma.c \ |
|
272 | log.S logf.S logl.S nearbyint.S nearbyintf.S nearbyintl.S remainder.S remainderf.S \ |
285 | wrf_lgamma.c \ |
273 | remainderl.S remquo.S remquof.S remquol.S scalbn.S scalbnf.S scalbnl.S sin.S \ |
286 | f_atan2.S f_atan2f.S f_frexp.S f_frexpf.S f_ldexp.S f_ldexpf.S f_log.S \ |
Line 274... | Line 287... | ||
274 | sinf.S sinl.S tan.S tanf.S tanl.S s_expm1.S |
287 | f_log10.S f_log10f.S f_logf.S f_tan.S f_tanf.S |
Line 275... | Line 288... | ||
275 | 288 | ||
Line 383... | Line 396... | ||
383 | 396 | ||
Line 384... | Line 397... | ||
384 | 397 | ||
385 | 398 | ||
Line 386... | Line 399... | ||
386 | %.obj : %.asm Makefile |
399 | %.obj : %.asm Makefile |
387 | fasm $< $@ |
400 | fasm $< $ |
Line 388... | Line 401... | ||
388 | 401 | ||
389 | %.o : %.c Makefile |
402 | %.o : %.c Makefile |
Line -... | Line 403... | ||
- | 403 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
|
- | 404 |