Newlib sys folder Makefile question.

<[email protected]> Wed, 04 Feb 2026 09:51:04 +0100
Newsgroups gmane.comp.lib.newlib
Message-ID <1770195064476.7.15670@webmail-backend-production-75cf57596c-c5lnt>
I need to add a folder to "newlib/libc/sys" that I plan to call "atarielf".
I also need to add a "Makefile.inc" to that new folder.
That in turn needs a modification to theĀ "newlib/libc/Makefile.inc" file.

Which needs a rebuild of "Makefile.in".
So I tried building "Makefile.in" on a fresh and clean repository to see if it resulted in any differences, and yes there was a lot of them.
So that is not something I would like to add in a patch.

So I thought that maybe I could hand edit "Makefile.in" to reflect the changes in "Makefile.inc".
But looking at "Makefile.in" shows that a lot of stuff is sequentially numbered, such as: "am__append_44" and "am__objects_55".
So I get a feeling that hand editing might be bad.

So my question is basically: is there a safe and easy way for me to add "newlib/libc/sys/atarielf/Makefile.in" to the build system?


/Mikael Hildenborg.