272 lines
5.6 KiB
Makefile
272 lines
5.6 KiB
Makefile
## Process this file with automake to generate Makefile.in
|
|
|
|
AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
GENERAL_SOURCES = \
|
|
__adjust.c \
|
|
__atexit.c \
|
|
__call_atexit.c \
|
|
__exp10.c \
|
|
__ten_mu.c \
|
|
_Exit.c \
|
|
abort.c \
|
|
abs.c \
|
|
aligned_alloc.c \
|
|
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 \
|
|
gdtoa-gethex.c \
|
|
gdtoa-hexnan.c \
|
|
getenv.c \
|
|
getenv_r.c \
|
|
imaxabs.c \
|
|
imaxdiv.c \
|
|
itoa.c \
|
|
labs.c \
|
|
ldiv.c \
|
|
ldtoa.c \
|
|
gdtoa-ldtoa.c \
|
|
gdtoa-gdtoa.c \
|
|
gdtoa-dmisc.c \
|
|
gdtoa-gmisc.c \
|
|
malloc.c \
|
|
mblen.c \
|
|
mblen_r.c \
|
|
mbstowcs.c \
|
|
mbstowcs_r.c \
|
|
mbtowc.c \
|
|
mbtowc_r.c \
|
|
mlock.c \
|
|
mprec.c \
|
|
mstats.c \
|
|
on_exit_args.c \
|
|
quick_exit.c \
|
|
rand.c \
|
|
rand_r.c \
|
|
random.c \
|
|
realloc.c \
|
|
reallocarray.c \
|
|
reallocf.c \
|
|
sb_charsets.c \
|
|
strtod.c \
|
|
strtoimax.c \
|
|
strtol.c \
|
|
strtoul.c \
|
|
strtoumax.c \
|
|
utoa.c \
|
|
wcstod.c \
|
|
wcstoimax.c \
|
|
wcstol.c \
|
|
wcstoul.c \
|
|
wcstoumax.c \
|
|
wcstombs.c \
|
|
wcstombs_r.c \
|
|
wctomb.c \
|
|
wctomb_r.c
|
|
|
|
if HAVE_LONG_DOUBLE
|
|
GENERAL_SOURCES += \
|
|
strtodg.c \
|
|
strtold.c \
|
|
strtorx.c \
|
|
wcstold.c
|
|
endif # HAVE_LONG_DOUBLE
|
|
|
|
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
|
|
|
|
EXTENDED_SOURCES = \
|
|
arc4random.c \
|
|
arc4random_uniform.c \
|
|
cxa_atexit.c \
|
|
cxa_finalize.c \
|
|
drand48.c \
|
|
ecvtbuf.c \
|
|
efgcvt.c \
|
|
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 \
|
|
strtoull_r.c \
|
|
wcstoll.c \
|
|
wcstoll_r.c \
|
|
wcstoull.c \
|
|
wcstoull_r.c \
|
|
atoll.c \
|
|
llabs.c \
|
|
lldiv.c
|
|
|
|
ELIX_2_SOURCES = \
|
|
a64l.c \
|
|
btowc.c \
|
|
getopt.c \
|
|
getsubopt.c \
|
|
l64a.c \
|
|
malign.c \
|
|
mbrlen.c \
|
|
mbrtowc.c \
|
|
mbsinit.c \
|
|
mbsnrtowcs.c \
|
|
mbsrtowcs.c \
|
|
on_exit.c \
|
|
valloc.c \
|
|
wcrtomb.c \
|
|
wcsnrtombs.c \
|
|
wcsrtombs.c \
|
|
wctob.c
|
|
|
|
ELIX_2_OBJS = \
|
|
$(lpfx)$(MALIGNR).o \
|
|
$(lpfx)$(MALLOPTR).o \
|
|
$(lpfx)$(PVALLOCR).o \
|
|
$(lpfx)$(VALLOCR).o
|
|
|
|
ELIX_3_SOURCES = \
|
|
putenv.c \
|
|
putenv_r.c \
|
|
setenv.c \
|
|
setenv_r.c
|
|
|
|
ELIX_4_SOURCES = \
|
|
rpmatch.c \
|
|
system.c
|
|
|
|
if ELIX_LEVEL_1
|
|
ELIX_SOURCES =
|
|
ELIX_OBJS =
|
|
else
|
|
if ELIX_LEVEL_2
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES)
|
|
ELIX_OBJS = $(ELIX_2_OBJS)
|
|
else
|
|
if ELIX_LEVEL_3
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES)
|
|
ELIX_OBJS = $(ELIX_2_OBJS)
|
|
else
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES) $(ELIX_4_SOURCES)
|
|
ELIX_OBJS = $(ELIX_2_OBJS)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
# Because of how libtool moves objects around, mallocr must be built last.
|
|
LIBADD_OBJS = $(lpfx)$(FREER).o $(lpfx)$(REALLOCR).o \
|
|
$(lpfx)$(CALLOCR).o $(lpfx)$(CFREER).o \
|
|
$(lpfx)$(MALLINFOR).o $(lpfx)$(MALLSTATSR).o \
|
|
$(lpfx)$(MSIZER).o $(lpfx)$(MALLOCR).o
|
|
|
|
noinst_LIBRARIES = lib.a
|
|
lib_a_SOURCES = $(GENERAL_SOURCES) $(EXTENDED_SOURCES) $(ELIX_SOURCES)
|
|
lib_a_LIBADD = $(LIBADD_OBJS) $(ELIX_OBJS)
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
|
lib_a_DEPENDENCIES = $(LIBADD_OBJS) $(ELIX_OBJS)
|
|
LIB_COMPILE = $(AM_V_CC)$(COMPILE)
|
|
|
|
MALLOC_COMPILE = $(LIB_COMPILE) -DINTERNAL_NEWLIB
|
|
|
|
$(lpfx)$(MALLOCR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(FREER).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_FREE -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(REALLOCR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_REALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(CALLOCR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_CALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(CFREER).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_CFREE -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(MALIGNR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_MEMALIGN -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(VALLOCR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_VALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(PVALLOCR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_PVALLOC -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(MALLINFOR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLINFO -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(MALLSTATSR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC_STATS -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(MSIZER).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC_USABLE_SIZE -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)$(MALLOPTR).o: $(MALLOCR).c
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOPT -c $(srcdir)/$(MALLOCR).c -o $@
|
|
|
|
$(lpfx)dtoa.o: dtoa.c mprec.h
|
|
$(lpfx)ldtoa.o: ldtoa.c mprec.h gdtoa.h
|
|
$(lpfx)gdtoa-ldtoa.o: gdtoa-ldtoa.c mprec.h gdtoaimp.h gdtoa.h
|
|
$(lpfx)gdtoa-gdtoa.o: gdtoa-gdtoa.c mprec.h gdtoaimp.h gdtoa.h
|
|
$(lpfx)gdtoa-dmisc.o: gdtoa-dmisc.c mprec.h gdtoaimp.h gdtoa.h
|
|
$(lpfx)gdtoa-gmisc.o: gdtoa-gmisc.c mprec.h gdtoaimp.h gdtoa.h
|
|
$(lpfx)ecvtbuf.o: ecvtbuf.c mprec.h
|
|
$(lpfx)mbtowc_r.o: mbtowc_r.c mbctype.h
|
|
$(lpfx)mprec.o: mprec.c mprec.h
|
|
$(lpfx)strtod.o: strtod.c mprec.h
|
|
$(lpfx)gdtoa-gethex.o: gdtoa-gethex.c mprec.h
|
|
$(lpfx)gdtoa-hexnan.o: gdtoa-hexnan.c mprec.h
|
|
$(lpfx)wctomb_r.o: wctomb_r.c mbctype.h
|
|
$(lpfx)drand48.o: drand48.c rand48.h
|
|
$(lpfx)erand48.o: erand48.c rand48.h
|
|
$(lpfx)jrand48.o: jrand48.c rand48.h
|
|
$(lpfx)lcong48.o: lcong48.c rand48.h
|
|
$(lpfx)lrand48.o: lrand48.c rand48.h
|
|
$(lpfx)mrand48.o: mrand48.c rand48.h
|
|
$(lpfx)nrand48.o: nrand48.c rand48.h
|
|
$(lpfx)rand48.o: rand48.c rand48.h
|
|
$(lpfx)seed48.o: seed48.c rand48.h
|
|
$(lpfx)srand48.o: srand48.c rand48.h
|