newlib-cygwin/newlib/libm/machine/arm
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
_fenv.h arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
e_sqrt.c ARM: Fix IEEE-754 sqrt implementation 2017-03-22 10:01:50 +01:00
ef_sqrt.c ARM: Fix IEEE-754 sqrt implementation 2017-03-22 10:01:50 +01:00
fe_dfl_env.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
feclearexcept.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fedisableexcept.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
feenableexcept.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fegetenv.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fegetexcept.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fegetexceptflag.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fegetround.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
feholdexcept.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
feraiseexcept.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fesetenv.c arm: Fix include to avoid undefined reference 2020-07-29 16:24:13 +02:00
fesetexceptflag.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fesetround.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
fetestexcept.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
feupdateenv.c arm: Split fenv.c into multiple files 2020-07-29 06:58:17 +02:00
s_ceil.c Check for 64 FP instructions availability in libm before using them 2015-12-09 10:30:31 +01:00
s_floor.c Check for 64 FP instructions availability in libm before using them 2015-12-09 10:30:31 +01:00
s_fma_arm.c libm/machine/arm: Rename s*_fma.c -> s*_fma_arm.c 2020-09-02 10:04:30 +02:00
s_nearbyint.c Check for 64 FP instructions availability in libm before using them 2015-12-09 10:30:31 +01:00
s_rint.c Check for 64 FP instructions availability in libm before using them 2015-12-09 10:30:31 +01:00
s_round.c Check for 64 FP instructions availability in libm before using them 2015-12-09 10:30:31 +01:00
s_trunc.c Check for 64 FP instructions availability in libm before using them 2015-12-09 10:30:31 +01:00
sf_ceil.c fix some Arm FP routines not checking if floating point is enabled 2021-04-21 16:18:09 +01:00
sf_floor.c fix some Arm FP routines not checking if floating point is enabled 2021-04-21 16:18:09 +01:00
sf_fma_arm.c libm/machine/arm: Rename s*_fma.c -> s*_fma_arm.c 2020-09-02 10:04:30 +02:00
sf_nearbyint.c fix some Arm FP routines not checking if floating point is enabled 2021-04-21 16:18:09 +01:00
sf_rint.c fix some Arm FP routines not checking if floating point is enabled 2021-04-21 16:18:09 +01:00
sf_round.c fix some Arm FP routines not checking if floating point is enabled 2021-04-21 16:18:09 +01:00
sf_trunc.c fix some Arm FP routines not checking if floating point is enabled 2021-04-21 16:18:09 +01:00