Private headers should be listed in `_SOURCE` variables, so they are
packaged by `make dist`. Private headers for testcases are added in
`EXTRA_DIST`.

Signed-off-by: LIU Hao <[email protected]>
---
 mingw-w64-crt/Makefile.am           | 5 +++++
 mingw-w64-crt/testcases/Makefile.am | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index d0e1047a8..db468d981 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -78,6 +78,7 @@ src_libm=_libm_dummy.c
  if ENABLE_DFP
 src_dfp_math = \
+math/DFP/dfp_internal.h \
 math/DFP/__fpclassifyd32.c math/DFP/__fpclassifyd64.c 
math/DFP/__fpclassifyd128.c \
 math/DFP/__isnand32.c math/DFP/__isnand64.c math/DFP/__isnand128.c \
 math/DFP/__signbitd32.c math/DFP/__signbitd64.c math/DFP/__signbitd128.c \
@@ -167,6 +168,9 @@ src_libws2_32=libsrc/ws2_32.c \
  # Files included in all libmsvcr*.a
 src_msvcrt_common=\
+  include/msvcrt.h \
+  include/msvcrt_or_emu_glue.h \
+  include/mingw-wchar.h \
   misc/__mingw_mbrtowc_cp.c \
   misc/__mingw_wcrtomb_cp.c \
   misc/_onexit.c \
@@ -983,6 +987,7 @@ src_crtdll=\
   $(src_pre_msvcr100) \
   $(src_pre_msvcr110) \
   $(src_pre_msvcr120) \
+  misc/crtdll_stat.h \
   misc/crtdll__getmainargs.c \
   misc/crtdll_fstat.c \
   misc/crtdll_stat.c \
diff --git a/mingw-w64-crt/testcases/Makefile.am 
b/mingw-w64-crt/testcases/Makefile.am
index a3ac412ee..889439141 100644
--- a/mingw-w64-crt/testcases/Makefile.am
+++ b/mingw-w64-crt/testcases/Makefile.am
@@ -70,6 +70,12 @@ testcase_progs = \
   t_wreaddir \
   t_fseeko64
 +EXTRA_DIST = \
+  t_snprintf_tmpl.h \
+  t_snwprintf_tmpl.h \
+  t_stprintf_tmpl.h \
+  t_swprintf_tmpl.h
+
 tstmaincpp_SOURCES = tstmaincpp.cpp
 t_trycatch_SOURCES = t_trycatch.cpp
 t_trycatch_LDFLAGS = -static
--
2.51.0

From a7878bd58a42c6a527f19f498983b100295d342a Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Thu, 16 Oct 2025 18:05:16 +0800
Subject: [PATCH 3/3] crt: Add headers for distribution

Private headers should be listed in `_SOURCE` variables, so they are
packaged by `make dist`. Private headers for testcases are added in
`EXTRA_DIST`.

Signed-off-by: LIU Hao <[email protected]>
---
 mingw-w64-crt/Makefile.am           | 5 +++++
 mingw-w64-crt/testcases/Makefile.am | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index d0e1047a8..db468d981 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -78,6 +78,7 @@ src_libm=_libm_dummy.c
 
 if ENABLE_DFP
 src_dfp_math = \
+math/DFP/dfp_internal.h \
 math/DFP/__fpclassifyd32.c math/DFP/__fpclassifyd64.c 
math/DFP/__fpclassifyd128.c \
 math/DFP/__isnand32.c math/DFP/__isnand64.c math/DFP/__isnand128.c \
 math/DFP/__signbitd32.c math/DFP/__signbitd64.c math/DFP/__signbitd128.c \
@@ -167,6 +168,9 @@ src_libws2_32=libsrc/ws2_32.c \
 
 # Files included in all libmsvcr*.a
 src_msvcrt_common=\
+  include/msvcrt.h \
+  include/msvcrt_or_emu_glue.h \
+  include/mingw-wchar.h \
   misc/__mingw_mbrtowc_cp.c \
   misc/__mingw_wcrtomb_cp.c \
   misc/_onexit.c \
@@ -983,6 +987,7 @@ src_crtdll=\
   $(src_pre_msvcr100) \
   $(src_pre_msvcr110) \
   $(src_pre_msvcr120) \
+  misc/crtdll_stat.h \
   misc/crtdll__getmainargs.c \
   misc/crtdll_fstat.c \
   misc/crtdll_stat.c \
diff --git a/mingw-w64-crt/testcases/Makefile.am 
b/mingw-w64-crt/testcases/Makefile.am
index a3ac412ee..889439141 100644
--- a/mingw-w64-crt/testcases/Makefile.am
+++ b/mingw-w64-crt/testcases/Makefile.am
@@ -70,6 +70,12 @@ testcase_progs = \
   t_wreaddir \
   t_fseeko64
 
+EXTRA_DIST = \
+  t_snprintf_tmpl.h \
+  t_snwprintf_tmpl.h \
+  t_stprintf_tmpl.h \
+  t_swprintf_tmpl.h
+
 tstmaincpp_SOURCES = tstmaincpp.cpp
 t_trycatch_SOURCES = t_trycatch.cpp
 t_trycatch_LDFLAGS = -static
-- 
2.51.0

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to