]> sourceware.org Git - newlib-cygwin.git/commit
newlib: libc: move stdlib multiplex logic from build to source files
authorMike Frysinger <vapier@gentoo.org>
Sat, 26 Feb 2022 04:47:03 +0000 (23:47 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 9 Mar 2022 21:58:46 +0000 (16:58 -0500)
commit4ad6b4d4dfed22777a8e7adb97c803bef0553fb0
tree9d3d365a098b5e1e21b4ccc18cad38bf6252bd56
parent332df71d3491f4f1024b14e2999cec4db13d4b39
newlib: libc: move stdlib multiplex logic from build to source files

Rather than define per-object rules in the Makefile, have small files
that define & include the right content.  This simplifies the build
rules, and makes understanding the source a little easier (imo) as it
makes all the subdirs behave the same: you have 1 source file and it
produces 1 object.  It's also about the same amount of boiler plate,
without having to define custom build rules that can fall out of sync.

This will also be important as we merge the libc.a build into the top
dir since it relies on a single flat list of objects for overrides.

Also take the opportunity to clean up the unnecessary header deps in
here.  Automake provides dependency generation for free now.
14 files changed:
newlib/libc/stdlib/Makefile.am
newlib/libc/stdlib/Makefile.in
newlib/libc/stdlib/callocr.c [new file with mode: 0644]
newlib/libc/stdlib/cfreer.c [new file with mode: 0644]
newlib/libc/stdlib/freer.c [new file with mode: 0644]
newlib/libc/stdlib/malignr.c [new file with mode: 0644]
newlib/libc/stdlib/mallinfor.c [new file with mode: 0644]
newlib/libc/stdlib/mallocr.c [new file with mode: 0644]
newlib/libc/stdlib/malloptr.c [new file with mode: 0644]
newlib/libc/stdlib/mallstatsr.c [new file with mode: 0644]
newlib/libc/stdlib/msizer.c [new file with mode: 0644]
newlib/libc/stdlib/pvallocr.c [new file with mode: 0644]
newlib/libc/stdlib/reallocr.c [new file with mode: 0644]
newlib/libc/stdlib/vallocr.c [new file with mode: 0644]
This page took 0.043532 seconds and 5 git commands to generate.