newlib-cygwin/newlib/libm/machine/i386
Mike Frysinger ac9f8c46b1 newlib: libm: merge build up a directory
Convert all the libm/ subdir makes into the top-level Makefile.  This
allows us to build all of libm from the top Makefile without using any
recursive make calls.  This is faster and avoids the funky lib.a logic
where we unpack subdir archives to repack into a single libm.a.  The
machine override logic is maintained though by way of Makefile include
ordering, and source file accumulation in libm_a_SOURCES.

One thing to note is that this will require GNU Make because of:
	libm_a_CFLAGS = ... $(libm_a_CFLAGS_$(subst /,_,$(@D)))
This was the only way I could find to supporting per-dir compiler
settings, and I couldn't find a POSIX compatible way of transforming
the variable content.  I don't think this is a big deal as other
Makefiles in the tree are using GNU Make-specific syntax, but I call
this out as it's the only one so far in the new automake code that
I've been writing.

Automake doesn't provide precise control over the output object names
(by design).  This is fine by default as we get consistent names in all
the subdirs: libm_a-<source>.o.  But this relies on using the same set
of compiler flags for all objects.  We currently compile libm/common/
with different optimizations than the rest.

If we want to compile objects differently, we can create an intermediate
archive with the subset of objects with unique flags, and then add those
objects to the main archive.  But Automake will use a different prefix
for the objects, and thus we can't rely on ordering to override.

But if we leverage $@, we can turn Automake's CFLAGS into a multiplex
on a per-dir (and even per-file if we wanted) basis.  Unfortunately,
since $@ contains /, Automake complains it's an invalid name.  While
GNU Make supports this, it's a POSIX extension, so Automake flags it.
Using $(subst) avoids the Automake warning to get a POSIX compliant
name, albeit with a GNU Make extension.
2022-02-17 20:56:32 -05:00
..
Makefile.inc newlib: libm: merge build up a directory 2022-02-17 20:56:32 -05:00
f_atan2.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_atan2f.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_exp.c 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_expf.c 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_frexp.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_frexpf.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_ldexp.S ldexp/ldexpf: avoid assembler warning 2021-09-03 12:52:47 +02:00
f_ldexpf.S ldexp/ldexpf: avoid assembler warning 2021-09-03 12:52:47 +02:00
f_llrint.c libm/machine: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
f_llrintf.c 2009-05-11 Craig Howland <howland@LGSInnovations.com> 2009-05-11 21:58:05 +00:00
f_llrintl.c 2007-12-19 Dave Korn <dave.korn@artimi.com> 2007-12-19 22:20:25 +00:00
f_log.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_log10.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_log10f.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_logf.S 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:31:20 +00:00
f_lrint.c libm/machine: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
f_lrintf.c 2007-12-19 Dave Korn <dave.korn@artimi.com> 2007-12-19 22:20:25 +00:00
f_lrintl.c 2007-12-19 Dave Korn <dave.korn@artimi.com> 2007-12-19 22:20:25 +00:00
f_math.h ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
f_pow.c 2009-08-31 Takaki Makino <t@snowelm.com> 2009-08-31 22:12:41 +00:00
f_powf.c 2009-08-31 Takaki Makino <t@snowelm.com> 2009-08-31 22:12:41 +00:00
f_rint.c libm/machine: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
f_rintf.c 2007-12-19 Dave Korn <dave.korn@artimi.com> 2007-12-19 22:20:25 +00:00
f_rintl.c 2007-12-19 Dave Korn <dave.korn@artimi.com> 2007-12-19 22:20:25 +00:00
f_tan.S 2009-11-18 Dave Korn <dave.korn.cygwin@googlemail.com> 2009-11-18 17:50:20 +00:00
f_tanf.S 2009-11-18 Dave Korn <dave.korn.cygwin@googlemail.com> 2009-11-18 17:50:20 +00:00
feclearexcept.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fegetenv.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fegetexceptflag.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fegetround.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
feholdexcept.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fenv.c fenv: move shared x86 fenv.c to libm/machine/shared_x86 2021-04-13 12:55:33 +02:00
feraiseexcept.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fesetenv.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fesetexceptflag.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fesetround.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
fetestexcept.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
feupdateenv.c x86_64/i386 fenv: Replace symlink with include fenv_stub.c 2020-02-25 16:42:19 +01:00
i386mach.h Enable HW interrupt setup on x86/x86_64 systems by default 2016-02-26 18:52:46 +01:00