From f95a4a932476be2ba99e2fd081e8d2bc6ea12813 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Fri, 15 Dec 2017 09:38:53 -0500 Subject: Import newlib and create makefile --- newlib/libm/Makefile.am | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 newlib/libm/Makefile.am (limited to 'newlib/libm/Makefile.am') diff --git a/newlib/libm/Makefile.am b/newlib/libm/Makefile.am new file mode 100644 index 0000000..b481b88 --- /dev/null +++ b/newlib/libm/Makefile.am @@ -0,0 +1,52 @@ +## Process this file with automake to generate Makefile.in + +AUTOMAKE_OPTIONS = cygnus + +if NEWLIB_HW_FP +SUBDIRS = mathfp common +SUBLIBS = mathfp/lib.a common/lib.a +else +SUBDIRS = math common +SUBLIBS = math/lib.a common/lib.a +endif + +noinst_LIBRARIES = libm.a + +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 + +$(SUBLIBS): all-recursive + +info_TEXINFOS = libm.texinfo + +libm.info: targetdep.tex math/stmp-def + +stmp-targetdep: force + rm -f tmp.texi + targetdoc=`pwd`/tmp.texi; \ + for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) doc) || exit 1; \ + done + $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex + touch $@ + +targetdep.tex: stmp-targetdep ; @true + +math/stmp-def: stmp-targetdep ; @true + +.PHONY: force +force: + +CLEANFILES = tmp.texi targetdep.tex stmp-targetdep + +ACLOCAL_AMFLAGS = -I .. +CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -- cgit v1.2.3