How to organize makefiles / solutions etc. in multiplatform projects?
- by Michal Czardybon
I have a project which can be compiled with Visual Studio, GCC and with some embedded compilers. Sources are shared, but each platform requires separate makefiles, project files, solutions etc. There are two ways I can organize them:
Intermixed in a single hierarchy of folders
With separate folders for platform-dependent files
The first solution creates some confusion about which file belongs to which platform, but the second causes some repetition of the folders structure (some compilers require each project to have a separate folder).
Which do you think is better?