That won't always work, because often there are OS specific files. E.g. different implementations of "mmap" for Unix and Windows or strlcmp and snprintf implementations for platforms that don't provide them their self.
Also often certain headers need to be generated by the build system ("config.h.in" for version information, "export.h.in" for export macros).
Comments
That won't always work, because often there are OS specific files. E.g. different implementations of "mmap" for Unix and Windows or strlcmp and snprintf implementations for platforms that don't provide them their self.
Also often certain headers need to be generated by the build system ("config.h.in" for version information, "export.h.in" for export macros).