From 28724b2f6257ef982efc17ed288ca1ee4b734111 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 25 Feb 2022 23:17:42 -0500 Subject: newlib: libc: move stdio 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. Some of these rules were already unnecessary as they were compiling a single source file into the same named object w/out custom flags, and Automake handles that for us completely. 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. --- newlib/libc/stdio/svfiwprintf.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 newlib/libc/stdio/svfiwprintf.c (limited to 'newlib/libc/stdio/svfiwprintf.c') diff --git a/newlib/libc/stdio/svfiwprintf.c b/newlib/libc/stdio/svfiwprintf.c new file mode 100644 index 0000000..a9df2ca --- /dev/null +++ b/newlib/libc/stdio/svfiwprintf.c @@ -0,0 +1,3 @@ +#define INTEGER_ONLY +#define STRING_ONLY +#include "vfwprintf.c" -- cgit v1.1