newlib-cygwin/newlib/libm/complex
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
cabs.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cabsf.c
cabsl.c * libc/include/complex.h (cabsl): Add prototype. 2015-02-06 16:14:04 +00:00
cacos.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cacosf.c
cacosh.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cacoshf.c
cacoshl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
cacosl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
carg.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cargf.c * libm/complex/cargf.c: Use crealf instead of creal. 2010-11-26 08:59:22 +00:00
cargl.c newlib/libm/complex/cargl.c change imag() real() to cimagl() creall() 2017-09-19 15:36:12 -05:00
casin.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
casinf.c
casinh.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
casinhf.c
casinhl.c Importing casinhl.c from NetBSD. 2017-06-29 13:44:32 +02:00
casinl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
catan.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
catanf.c * libm/complex/catan.c, libm/complex/catanf.c, 2010-11-29 12:15:02 +00:00
catanh.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
catanhf.c
catanhl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
catanl.c Importing catanl long double complex method from NetBSD. 2017-07-28 20:36:09 +02:00
ccos.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
ccosf.c
ccosh.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
ccoshf.c
ccoshl.c ccoshl: Align formatting to upstream 2017-06-14 10:36:38 +02:00
ccosl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
cephes_subr.c
cephes_subr.h
cephes_subrf.c
cephes_subrf.h
cephes_subrl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
cephes_subrl.h newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
cexp.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cexpf.c
cexpl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
cimag.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cimagf.c
cimagl.c * libc/include/complex.h (cabsl): Add prototype. 2015-02-06 16:14:04 +00:00
clog.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
clog10.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
clog10f.c libm/complex: add clog10, clog10f 2016-02-22 14:43:41 -06:00
clogf.c
clogl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
complex.tex libm/complex: add clog10, clog10f 2016-02-22 14:43:41 -06:00
conj.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
conjf.c
conjl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
cpow.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cpowf.c
cpowl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
cproj.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
cprojf.c 2011-03-01 Aaron Landwehr <snaphat@gmail.com> 2011-03-01 21:43:15 +00:00
cprojl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
creal.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
crealf.c
creall.c * libc/include/complex.h (cabsl): Add prototype. 2015-02-06 16:14:04 +00:00
csin.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
csinf.c
csinh.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
csinhf.c
csinhl.c Importing csinhl.c from NetBSD. 2017-06-29 13:44:32 +02:00
csinl.c Importing csinl.c from NetBSD. 2017-06-29 13:54:31 +02:00
csqrt.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
csqrtf.c
csqrtl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
ctan.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
ctanf.c * libm/complex/catan.c, libm/complex/catanf.c, 2010-11-29 12:15:02 +00:00
ctanh.c complex: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
ctanhf.c
ctanhl.c newlib: fix file mode of newly added complex sources 2017-06-29 15:30:35 +02:00
ctanl.c Fixing HUGE_VALF to HUGE_VALL. 2017-07-28 20:30:30 +02:00