writing a makefile for windows

bigoh5

n00b
Joined
Mar 19, 2009
Messages
12
Hi,

I was wondering if writing a makefile (to be run on nmake, I suppose) is very different from writing a makefile for GNU. I was not able to find a lot of detail online. There are specific DLL's that are needed for my project and I wasn't sure how to incorporate that into the makefile.

A better solution would be if any tool converted a VS2008 C++ project into a makefile.

Thanks
 
Are you asking because you need to use nmake, or because you want to build your projects from a command line?

If you have vcproj/sln files, you can build the associated projects from the command line using msbuild or devenv.
 
Ah! Okay. I wish that information was detailed elsewhere more.

Thank you.
 
If you look in your Visual Studio, at the project properties, you should be able to see a few places that give you the actual compile command line. Also, I'm sure there's some build logging that will tell you exactly what it's doing.
 
Back
Top