I have found a nice tool called cmake which can create a makefile for you given the source code directory of your project. It seems to be quite configurable. So if you were always troubled about how are you going to create the makefile for linux, you don’t have to worry any more.
This tool can also go the other way around. Given the source code it can create the solution project (*.sln) for your visual studio .net environment.
I will try it on some of my projects and see how it goes.
Keep coding 🙂