2000-02-18 03:39:52 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
GENERAL_SOURCES = \
|
2000-02-18 03:39:52 +08:00
|
|
|
__adjust.c \
|
2004-09-10 03:46:54 +08:00
|
|
|
__atexit.c \
|
|
|
|
__call_atexit.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
__exp10.c \
|
|
|
|
__ten_mu.c \
|
2002-06-14 07:24:03 +08:00
|
|
|
_Exit.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
abort.c \
|
|
|
|
abs.c \
|
2015-10-14 13:39:37 +08:00
|
|
|
aligned_alloc.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
assert.c \
|
|
|
|
atexit.c \
|
|
|
|
atof.c \
|
|
|
|
atoff.c \
|
|
|
|
atoi.c \
|
|
|
|
atol.c \
|
|
|
|
calloc.c \
|
|
|
|
div.c \
|
|
|
|
dtoa.c \
|
|
|
|
dtoastub.c \
|
|
|
|
environ.c \
|
|
|
|
envlock.c \
|
|
|
|
eprintf.c \
|
|
|
|
exit.c \
|
2006-06-23 01:59:52 +08:00
|
|
|
gdtoa-gethex.c \
|
|
|
|
gdtoa-hexnan.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
getenv.c \
|
|
|
|
getenv_r.c \
|
2017-07-26 03:29:48 +08:00
|
|
|
imaxabs.c \
|
2017-07-26 03:30:26 +08:00
|
|
|
imaxdiv.c \
|
2014-12-16 18:55:17 +08:00
|
|
|
itoa.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
labs.c \
|
|
|
|
ldiv.c \
|
2000-12-07 07:50:11 +08:00
|
|
|
ldtoa.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
malloc.c \
|
|
|
|
mblen.c \
|
|
|
|
mblen_r.c \
|
|
|
|
mbstowcs.c \
|
|
|
|
mbstowcs_r.c \
|
|
|
|
mbtowc.c \
|
|
|
|
mbtowc_r.c \
|
|
|
|
mlock.c \
|
|
|
|
mprec.c \
|
|
|
|
mstats.c \
|
2015-12-22 00:49:28 +08:00
|
|
|
on_exit_args.c \
|
2015-10-14 13:39:35 +08:00
|
|
|
quick_exit.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
rand.c \
|
|
|
|
rand_r.c \
|
2016-03-23 06:50:48 +08:00
|
|
|
random.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
realloc.c \
|
2017-04-04 18:06:57 +08:00
|
|
|
reallocarray.c \
|
2008-11-20 04:56:22 +08:00
|
|
|
reallocf.c \
|
2009-03-24 18:13:27 +08:00
|
|
|
sb_charsets.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strtod.c \
|
2017-08-02 11:19:39 +08:00
|
|
|
strtoimax.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strtol.c \
|
|
|
|
strtoul.c \
|
2017-08-02 11:20:05 +08:00
|
|
|
strtoumax.c \
|
2014-12-16 18:55:17 +08:00
|
|
|
utoa.c \
|
2009-02-13 07:10:01 +08:00
|
|
|
wcstod.c \
|
2017-08-02 11:20:38 +08:00
|
|
|
wcstoimax.c \
|
2007-07-07 04:03:28 +08:00
|
|
|
wcstol.c \
|
|
|
|
wcstoul.c \
|
2017-08-02 11:21:20 +08:00
|
|
|
wcstoumax.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
wcstombs.c \
|
|
|
|
wcstombs_r.c \
|
|
|
|
wctomb.c \
|
2002-08-30 03:38:25 +08:00
|
|
|
wctomb_r.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
2009-04-16 Ken Werner <ken.werner@de.ibm.com>
* libm/libm.texinfo: Add long double function support chapter.
* libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
* libc/include/stdlib.h: Include <machine/ieeefp.h>.
(strtold, wcstold): Declare.
* libc/stdlib/strtold.c: New File.
* libc/stdlib/wcstold.c: Likewise.
* libc/configure.in: Add long double check.
* libc/configure: Regenerate.
* libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
(frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
(asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
(sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
(nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
(nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
(llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
(atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
* libm/common/atanl.c: New File.
* libm/common/cosl.c: Likewise.
* libm/common/sinl.c: Likewise.
* libm/common/modfl.c: Likewise.
* libm/common/frexpl.c: Likewise.
* libm/common/tanhl.c: Likewise.
* libm/common/tanl.c: Likewise.
* libm/common/expm1l.c: Likewise.
* libm/common/log1pl.c: Likewise.
* libm/common/ceill.c: Likewise.
* libm/common/fabsl.c: Likewise.
* libm/common/floorl.c: Likewise.
* libm/common/acosl.c: Likewise.
* libm/common/asinl.c: Likewise.
* libm/common/atan2l.c: Likewise.
* libm/common/coshl.c: Likewise.
* libm/common/expl.c: Likewise.
* libm/common/fmodl.c: Likewise.
* libm/common/hypotl.c: Likewise.
* libm/common/ldexpl.c: Likewise.
* libm/common/log10l.c: Likewise.
* libm/common/logl.c: Likewise.
* libm/common/powl.c: Likewise.
* libm/common/sqrtl.c: Likewise.
* libm/common/copysignl.c: Likewise.
* libm/common/ilogbl.c: Likewise.
* libm/common/nanl.c: Likewise.
* libm/common/cbrtl.c: Likewise.
* libm/common/asinhl.c: Likewise.
* libm/common/nextafterl.c: Likewise.
* libm/common/rintl.c: Likewise.
* libm/common/scalbnl.c: Likewise.
* libm/common/exp2l.c: Likewise.
* libm/common/fdiml.c: Likewise.
* libm/common/fmal.c: Likewise.
* libm/common/fmaxl.c: Likewise.
* libm/common/fminl.c: Likewise.
* libm/common/lrintl.c: Likewise.
* libm/common/lroundl.c: Likewise.
* libm/common/nearbyintl.c: Likewise.
* libm/common/remquol.c: Likewise.
* libm/common/roundl.c: Likewise.
* libm/common/scalblnl.c: Likewise.
* libm/common/truncl.c: Likewise.
* libm/common/acoshl.c: Likewise.
* libm/common/atanhl.c: Likewise.
* libm/common/erfcl.c: Likewise.
* libm/common/erfl.c: Likewise.
* libm/common/lgammal.c: Likewise.
* libm/common/remainderl.c: Likewise.
* libm/common/tgammal.c: Likewise.
* libm/common/sinhl.c: Likewise.
* libm/common/llroundl.c: Likewise.
* libm/configure.in: Add long double check.
* libm/configure: Regenerate.
* libm/common/Makefile.am: Add new files.
* libm/common/Makefile.in: Regenerate.
2009-04-17 02:24:35 +08:00
|
|
|
if HAVE_LONG_DOUBLE
|
|
|
|
GENERAL_SOURCES += \
|
2018-10-11 00:01:22 +08:00
|
|
|
strtodg.c \
|
|
|
|
strtold.c \
|
|
|
|
strtorx.c \
|
2009-04-16 Ken Werner <ken.werner@de.ibm.com>
* libm/libm.texinfo: Add long double function support chapter.
* libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
* libc/include/stdlib.h: Include <machine/ieeefp.h>.
(strtold, wcstold): Declare.
* libc/stdlib/strtold.c: New File.
* libc/stdlib/wcstold.c: Likewise.
* libc/configure.in: Add long double check.
* libc/configure: Regenerate.
* libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
(frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
(asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
(sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
(nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
(nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
(llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
(atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
* libm/common/atanl.c: New File.
* libm/common/cosl.c: Likewise.
* libm/common/sinl.c: Likewise.
* libm/common/modfl.c: Likewise.
* libm/common/frexpl.c: Likewise.
* libm/common/tanhl.c: Likewise.
* libm/common/tanl.c: Likewise.
* libm/common/expm1l.c: Likewise.
* libm/common/log1pl.c: Likewise.
* libm/common/ceill.c: Likewise.
* libm/common/fabsl.c: Likewise.
* libm/common/floorl.c: Likewise.
* libm/common/acosl.c: Likewise.
* libm/common/asinl.c: Likewise.
* libm/common/atan2l.c: Likewise.
* libm/common/coshl.c: Likewise.
* libm/common/expl.c: Likewise.
* libm/common/fmodl.c: Likewise.
* libm/common/hypotl.c: Likewise.
* libm/common/ldexpl.c: Likewise.
* libm/common/log10l.c: Likewise.
* libm/common/logl.c: Likewise.
* libm/common/powl.c: Likewise.
* libm/common/sqrtl.c: Likewise.
* libm/common/copysignl.c: Likewise.
* libm/common/ilogbl.c: Likewise.
* libm/common/nanl.c: Likewise.
* libm/common/cbrtl.c: Likewise.
* libm/common/asinhl.c: Likewise.
* libm/common/nextafterl.c: Likewise.
* libm/common/rintl.c: Likewise.
* libm/common/scalbnl.c: Likewise.
* libm/common/exp2l.c: Likewise.
* libm/common/fdiml.c: Likewise.
* libm/common/fmal.c: Likewise.
* libm/common/fmaxl.c: Likewise.
* libm/common/fminl.c: Likewise.
* libm/common/lrintl.c: Likewise.
* libm/common/lroundl.c: Likewise.
* libm/common/nearbyintl.c: Likewise.
* libm/common/remquol.c: Likewise.
* libm/common/roundl.c: Likewise.
* libm/common/scalblnl.c: Likewise.
* libm/common/truncl.c: Likewise.
* libm/common/acoshl.c: Likewise.
* libm/common/atanhl.c: Likewise.
* libm/common/erfcl.c: Likewise.
* libm/common/erfl.c: Likewise.
* libm/common/lgammal.c: Likewise.
* libm/common/remainderl.c: Likewise.
* libm/common/tgammal.c: Likewise.
* libm/common/sinhl.c: Likewise.
* libm/common/llroundl.c: Likewise.
* libm/configure.in: Add long double check.
* libm/configure: Regenerate.
* libm/common/Makefile.am: Add new files.
* libm/common/Makefile.in: Regenerate.
2009-04-17 02:24:35 +08:00
|
|
|
wcstold.c
|
|
|
|
endif # HAVE_LONG_DOUBLE
|
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
if NEWLIB_NANO_MALLOC
|
|
|
|
MALIGNR=nano-malignr
|
|
|
|
MALLOPTR=nano-malloptr
|
|
|
|
PVALLOCR=nano-pvallocr
|
|
|
|
VALLOCR=nano-vallocr
|
|
|
|
FREER=nano-freer
|
|
|
|
REALLOCR=nano-reallocr
|
|
|
|
CALLOCR=nano-callocr
|
|
|
|
CFREER=nano-cfreer
|
|
|
|
MALLINFOR=nano-mallinfor
|
|
|
|
MALLSTATSR=nano-mallstatsr
|
|
|
|
MSIZER=nano-msizer
|
|
|
|
MALLOCR=nano-mallocr
|
|
|
|
else
|
|
|
|
MALIGNR=malignr
|
|
|
|
MALLOPTR=malloptr
|
|
|
|
PVALLOCR=pvallocr
|
|
|
|
VALLOCR=vallocr
|
|
|
|
FREER=freer
|
|
|
|
REALLOCR=reallocr
|
|
|
|
CALLOCR=callocr
|
|
|
|
CFREER=cfreer
|
|
|
|
MALLINFOR=mallinfor
|
|
|
|
MALLSTATSR=mallstatsr
|
|
|
|
MSIZER=msizer
|
|
|
|
MALLOCR=mallocr
|
|
|
|
endif
|
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
EXTENDED_SOURCES = \
|
2016-03-18 18:49:28 +08:00
|
|
|
arc4random.c \
|
|
|
|
arc4random_uniform.c \
|
2004-09-10 03:46:54 +08:00
|
|
|
cxa_atexit.c \
|
|
|
|
cxa_finalize.c \
|
2002-08-27 02:56:09 +08:00
|
|
|
drand48.c \
|
2013-05-29 20:37:59 +08:00
|
|
|
ecvtbuf.c \
|
|
|
|
efgcvt.c \
|
2002-08-27 02:56:09 +08:00
|
|
|
erand48.c \
|
|
|
|
jrand48.c \
|
|
|
|
lcong48.c \
|
|
|
|
lrand48.c \
|
|
|
|
mrand48.c \
|
|
|
|
msize.c \
|
|
|
|
mtrim.c \
|
|
|
|
nrand48.c \
|
|
|
|
rand48.c \
|
|
|
|
seed48.c \
|
|
|
|
srand48.c \
|
|
|
|
strtoll.c \
|
|
|
|
strtoll_r.c \
|
|
|
|
strtoull.c \
|
2003-11-28 03:47:19 +08:00
|
|
|
strtoull_r.c \
|
2007-07-07 04:03:28 +08:00
|
|
|
wcstoll.c \
|
|
|
|
wcstoll_r.c \
|
|
|
|
wcstoull.c \
|
|
|
|
wcstoull_r.c \
|
2003-11-28 03:47:19 +08:00
|
|
|
atoll.c \
|
|
|
|
llabs.c \
|
|
|
|
lldiv.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_2_SOURCES = \
|
|
|
|
a64l.c \
|
|
|
|
btowc.c \
|
|
|
|
getopt.c \
|
|
|
|
getsubopt.c \
|
|
|
|
l64a.c \
|
|
|
|
malign.c \
|
|
|
|
mbrlen.c \
|
|
|
|
mbrtowc.c \
|
|
|
|
mbsinit.c \
|
2009-02-19 17:19:42 +08:00
|
|
|
mbsnrtowcs.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
mbsrtowcs.c \
|
|
|
|
on_exit.c \
|
|
|
|
valloc.c \
|
|
|
|
wcrtomb.c \
|
2009-02-19 17:19:42 +08:00
|
|
|
wcsnrtombs.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
wcsrtombs.c \
|
|
|
|
wctob.c
|
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
ELIX_2_OBJS = \
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(MALIGNR).$(oext) \
|
|
|
|
$(lpfx)$(MALLOPTR).$(oext) \
|
|
|
|
$(lpfx)$(PVALLOCR).$(oext) \
|
|
|
|
$(lpfx)$(VALLOCR).$(oext)
|
2006-05-02 06:01:07 +08:00
|
|
|
|
|
|
|
ELIX_3_SOURCES = \
|
|
|
|
putenv.c \
|
|
|
|
putenv_r.c \
|
|
|
|
setenv.c \
|
|
|
|
setenv_r.c
|
|
|
|
|
|
|
|
ELIX_4_SOURCES = \
|
2015-11-18 01:53:00 +08:00
|
|
|
rpmatch.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
system.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
|
|
|
if ELIX_LEVEL_1
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES =
|
|
|
|
ELIX_OBJS =
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
|
|
|
if ELIX_LEVEL_2
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES)
|
|
|
|
ELIX_OBJS = $(ELIX_2_OBJS)
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
|
|
|
if ELIX_LEVEL_3
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES)
|
|
|
|
ELIX_OBJS = $(ELIX_2_OBJS)
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES) $(ELIX_4_SOURCES)
|
|
|
|
ELIX_OBJS = $(ELIX_2_OBJS)
|
2002-08-27 02:56:09 +08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
# Because of how libtool moves objects around, mallocr must be built last.
|
2013-05-29 20:37:59 +08:00
|
|
|
LIBADD_OBJS = $(lpfx)$(FREER).$(oext) $(lpfx)$(REALLOCR).$(oext) \
|
|
|
|
$(lpfx)$(CALLOCR).$(oext) $(lpfx)$(CFREER).$(oext) \
|
|
|
|
$(lpfx)$(MALLINFOR).$(oext) $(lpfx)$(MALLSTATSR).$(oext) \
|
|
|
|
$(lpfx)$(MSIZER).$(oext) $(lpfx)$(MALLOCR).$(oext)
|
2001-12-14 07:50:11 +08:00
|
|
|
|
|
|
|
libstdlib_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libstdlib.la
|
2006-05-02 06:01:07 +08:00
|
|
|
libstdlib_la_SOURCES = $(GENERAL_SOURCES) $(EXTENDED_SOURCES) $(ELIX_SOURCES)
|
|
|
|
libstdlib_la_LIBADD = $(LIBADD_OBJS) $(ELIX_OBJS)
|
|
|
|
libstdlib_la_DEPENDENCIES = $(LIBADD_OBJS) $(ELIX_OBJS)
|
2001-12-14 07:50:11 +08:00
|
|
|
LIB_COMPILE = $(LTCOMPILE)
|
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
2006-05-02 06:01:07 +08:00
|
|
|
lib_a_SOURCES = $(GENERAL_SOURCES) $(EXTENDED_SOURCES) $(ELIX_SOURCES)
|
|
|
|
lib_a_LIBADD = $(LIBADD_OBJS) $(ELIX_OBJS)
|
2006-04-12 03:02:16 +08:00
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2006-05-02 06:01:07 +08:00
|
|
|
lib_a_DEPENDENCIES = $(LIBADD_OBJS) $(ELIX_OBJS)
|
2001-12-18 10:22:55 +08:00
|
|
|
LIB_COMPILE = $(COMPILE)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA =
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
|
|
|
include $(srcdir)/../../Makefile.shared
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
MALLOC_COMPILE = $(LIB_COMPILE) -DINTERNAL_NEWLIB
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(MALLOCR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(FREER).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_FREE -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(REALLOCR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_REALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(CALLOCR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_CALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(CFREER).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_CFREE -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(MALIGNR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MEMALIGN -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(VALLOCR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_VALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(PVALLOCR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_PVALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(MALLINFOR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLINFO -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(MALLSTATSR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC_STATS -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(MSIZER).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC_USABLE_SIZE -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2013-05-29 20:37:59 +08:00
|
|
|
$(lpfx)$(MALLOPTR).$(oext): $(MALLOCR).c
|
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOPT -c $(srcdir)/$(MALLOCR).c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
CHEWOUT_FILES= \
|
2002-06-14 07:24:03 +08:00
|
|
|
_Exit.def \
|
2002-05-07 04:44:54 +08:00
|
|
|
a64l.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
abort.def \
|
|
|
|
abs.def \
|
|
|
|
assert.def \
|
|
|
|
atexit.def \
|
|
|
|
atof.def \
|
|
|
|
atoi.def \
|
2003-11-28 03:47:19 +08:00
|
|
|
atoll.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
calloc.def \
|
|
|
|
div.def \
|
2003-11-28 03:47:19 +08:00
|
|
|
ecvtbuf.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
efgcvt.def \
|
|
|
|
envlock.def \
|
|
|
|
exit.def \
|
|
|
|
getenv.def \
|
2014-12-16 18:55:17 +08:00
|
|
|
itoa.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
labs.def \
|
|
|
|
ldiv.def \
|
2003-11-28 03:47:19 +08:00
|
|
|
llabs.def \
|
|
|
|
lldiv.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
malloc.def \
|
|
|
|
mblen.def \
|
2009-02-26 05:33:18 +08:00
|
|
|
mbsnrtowcs.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
mbstowcs.def \
|
|
|
|
mbtowc.def \
|
|
|
|
mlock.def \
|
|
|
|
mstats.def \
|
2002-05-16 06:58:10 +08:00
|
|
|
on_exit.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
rand.def \
|
2001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/stdlib.h: Add declarations of rand48 functions and
their reentrant versions.
* libc/include/sys/reent.h: Move macros from rand48.h. Add
struct _rand48 for shared parameters of rand48 functions.
(struct _reent): Add a variable _r48 of struct _rand48.
(_REENT_INIT): Add _r48 initialization.
* libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
(CHEWOUT_FILES): Add rand48.def.
* libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
NetBSD C library.
* libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
* libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
* libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
* libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
* libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
* libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
* libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
* libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
* libc/stdlib/rand48.c (__dorand48): Ditto.
* libc/stdlib/rand48.h: Ditto, and modify declarations of global
parameters into macros referring them in the reentrant structure.
2001-02-15 10:04:55 +08:00
|
|
|
rand48.def \
|
2016-03-23 06:50:48 +08:00
|
|
|
random.def \
|
2015-11-18 01:53:00 +08:00
|
|
|
rpmatch.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
strtod.def \
|
|
|
|
strtol.def \
|
2001-10-02 02:05:11 +08:00
|
|
|
strtoll.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
strtoul.def \
|
2001-10-02 02:05:11 +08:00
|
|
|
strtoull.def \
|
2014-12-16 18:55:17 +08:00
|
|
|
utoa.def \
|
2009-02-26 05:33:18 +08:00
|
|
|
wcsnrtombs.def \
|
2009-02-13 07:10:01 +08:00
|
|
|
wcstod.def \
|
2007-07-07 04:03:28 +08:00
|
|
|
wcstol.def \
|
|
|
|
wcstoll.def \
|
|
|
|
wcstoul.def \
|
|
|
|
wcstoull.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
system.def \
|
|
|
|
wcstombs.def \
|
|
|
|
wctomb.def
|
|
|
|
|
2015-11-03 07:00:28 +08:00
|
|
|
CHAPTERS = stdlib.tex
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)dtoa.$(oext): dtoa.c mprec.h
|
|
|
|
$(lpfx)ldtoa.$(oext): ldtoa.c mprec.h
|
|
|
|
$(lpfx)ecvtbuf.$(oext): ecvtbuf.c mprec.h
|
|
|
|
$(lpfx)mbtowc_r.$(oext): mbtowc_r.c mbctype.h
|
|
|
|
$(lpfx)mprec.$(oext): mprec.c mprec.h
|
|
|
|
$(lpfx)strtod.$(oext): strtod.c mprec.h
|
2006-06-23 01:59:52 +08:00
|
|
|
$(lpfx)gdtoa-gethex.$(oext): gdtoa-gethex.c mprec.h
|
|
|
|
$(lpfx)gdtoa-hexnan.$(oext): gdtoa-hexnan.c mprec.h
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)wctomb_r.$(oext): wctomb_r.c mbctype.h
|
|
|
|
$(lpfx)drand48.$(oext): drand48.c rand48.h
|
|
|
|
$(lpfx)erand48.$(oext): erand48.c rand48.h
|
|
|
|
$(lpfx)jrand48.$(oext): jrand48.c rand48.h
|
|
|
|
$(lpfx)lcong48.$(oext): lcong48.c rand48.h
|
|
|
|
$(lpfx)lrand48.$(oext): lrand48.c rand48.h
|
|
|
|
$(lpfx)mrand48.$(oext): mrand48.c rand48.h
|
|
|
|
$(lpfx)nrand48.$(oext): nrand48.c rand48.h
|
|
|
|
$(lpfx)rand48.$(oext): rand48.c rand48.h
|
|
|
|
$(lpfx)seed48.$(oext): seed48.c rand48.h
|
|
|
|
$(lpfx)srand48.$(oext): srand48.c rand48.h
|