[PATCH v2 2/2] Makefile.inc, stdbit/Makefile.inc: Add stdbit

Joel Sherrill <[email protected]> Fri, 10 Apr 2026 14:21:10 -0500
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
---
 newlib/libc/Makefile.inc        |  1 +
 newlib/libc/stdbit/Makefile.inc | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 newlib/libc/stdbit/Makefile.inc

diff --git a/newlib/libc/Makefile.inc b/newlib/libc/Makefile.inc
index d07eed764..39e98338d 100644
--- a/newlib/libc/Makefile.inc
+++ b/newlib/libc/Makefile.inc
@@ -56,6 +56,7 @@ include %D%/misc/Makefile.inc
 include %D%/unix/Makefile.inc
 include %D%/posix/Makefile.inc
 include %D%/syscalls/Makefile.inc
+include %D%/stdbit/Makefile.inc
 include %D%/iconv/Makefile.inc
 include %D%/xdr/Makefile.inc
 include %D%/ssp/Makefile.inc
diff --git a/newlib/libc/stdbit/Makefile.inc b/newlib/libc/stdbit/Makefile.inc
new file mode 100644
index 000000000..0f91f6797
--- /dev/null
+++ b/newlib/libc/stdbit/Makefile.inc
@@ -0,0 +1,15 @@
+libc_a_SOURCES += \
+	%D/stdc_bit_ceil.c \
+	%D/stdc_bit_floor.c \
+	%D/stdc_bit_width.c \
+	%D/stdc_count_ones.c \
+	%D/stdc_count_zeros.c \
+	%D/stdc_first_leading_one.c \
+	%D/stdc_first_leading_zero.c \
+	%D/stdc_first_trailing_one.c \
+	%D/stdc_first_trailing_zero.c \
+	%D/stdc_has_single_bit.c \
+	%D/stdc_leading_ones.c \
+	%D/stdc_leading_zeros.c \
+	%D/stdc_trailing_ones.c \
+	%D/stdc_trailing_zeros.c
-- 
2.47.3