How to organize makefiles / solutions etc. in multiplatform projects?

Posted by Michal Czardybon on Stack Overflow See other posts from Stack Overflow or by Michal Czardybon
Published on 2010-06-17T12:37:28Z Indexed on 2010/06/17 12:43 UTC
Read the original article Hit count: 280

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:

  1. Intermixed in a single hierarchy of folders
  2. 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?

© Stack Overflow or respective owner

Related posts about makefile

Related posts about projects-and-solutions