2000-02-17 19:39:52 +00:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
if NEWLIB_HW_FP
|
2001-12-13 23:50:11 +00:00
|
|
|
MATHDIR = mathfp
|
2000-02-17 19:39:52 +00:00
|
|
|
else
|
2001-12-13 23:50:11 +00:00
|
|
|
MATHDIR = math
|
2000-02-17 19:39:52 +00:00
|
|
|
endif
|
|
|
|
|
2022-01-22 19:54:54 -05:00
|
|
|
SUBDIRS = $(MATHDIR) common complex fenv
|
|
|
|
if HAVE_LIBM_MACHINE_DIR
|
|
|
|
SUBDIRS += $(LIBM_MACHINE_DIR)
|
|
|
|
endif
|
2001-12-13 23:50:11 +00:00
|
|
|
|
|
|
|
libm_la_LDFLAGS = -Xcompiler -nostdlib
|
2000-02-17 19:39:52 +00:00
|
|
|
|
2001-12-13 23:50:11 +00:00
|
|
|
if USE_LIBTOOL
|
2019-08-08 11:27:06 -05:00
|
|
|
SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) complex/libcomplex.$(aext) fenv/libfenv.$(aext) $(LIBM_MACHINE_LIB)
|
2001-12-13 23:50:11 +00:00
|
|
|
noinst_LTLIBRARIES = libm.la
|
|
|
|
libm_la_SOURCES =
|
|
|
|
libm_la_LIBADD = $(SUBLIBS)
|
|
|
|
else
|
2019-08-08 11:27:06 -05:00
|
|
|
SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) complex/lib.$(aext) fenv/lib.$(aext) $(LIBM_MACHINE_LIB)
|
2001-12-13 23:50:11 +00:00
|
|
|
noinst_LIBRARIES = libm.a
|
2000-02-17 19:39:52 +00:00
|
|
|
libm.a: $(SUBLIBS)
|
|
|
|
rm -f $@
|
|
|
|
rm -rf tmp
|
|
|
|
mkdir tmp
|
|
|
|
cd tmp; \
|
|
|
|
for i in $(SUBLIBS); do \
|
|
|
|
$(AR) x ../$$i; \
|
|
|
|
done; \
|
|
|
|
$(AR) $(AR_FLAGS) ../$@ *.o
|
|
|
|
$(RANLIB) $@
|
|
|
|
rm -rf tmp
|
2001-12-13 23:50:11 +00:00
|
|
|
endif
|
2000-02-17 19:39:52 +00:00
|
|
|
|
|
|
|
$(SUBLIBS):
|
|
|
|
|
2021-12-30 13:29:02 -05:00
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../.. -I ../../config
|
2000-02-17 19:39:52 +00:00
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|