Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/Makefile.am')
-rw-r--r--newlib/libm/Makefile.am19
1 files changed, 14 insertions, 5 deletions
diff --git a/newlib/libm/Makefile.am b/newlib/libm/Makefile.am
index fc0c10b76..3b8d9a586 100644
--- a/newlib/libm/Makefile.am
+++ b/newlib/libm/Makefile.am
@@ -3,15 +3,23 @@
AUTOMAKE_OPTIONS = cygnus
if NEWLIB_HW_FP
-SUBDIRS = mathfp common .
-SUBLIBS = mathfp/lib.a common/lib.a
+MATHDIR = mathfp
else
-SUBDIRS = math common .
-SUBLIBS = math/lib.a common/lib.a
+MATHDIR = math
endif
-noinst_LIBRARIES = libm.a
+SUBDIRS = $(MATHDIR) common machine
+
+libm_la_LDFLAGS = -Xcompiler -nostdlib
+if USE_LIBTOOL
+SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) $(LIBM_MACHINE_LIB)
+noinst_LTLIBRARIES = libm.la
+libm_la_SOURCES =
+libm_la_LIBADD = $(SUBLIBS)
+else
+SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) $(LIBM_MACHINE_LIB)
+noinst_LIBRARIES = libm.a
libm.a: $(SUBLIBS)
rm -f $@
rm -rf tmp
@@ -23,6 +31,7 @@ libm.a: $(SUBLIBS)
$(AR) $(AR_FLAGS) ../$@ *.o
$(RANLIB) $@
rm -rf tmp
+endif
$(SUBLIBS):