Makefile in MS Visual Studio 2008
Hi,
I am new to C/C++ and MS Visual Studio 2008. I have a program written in c that I would like to compile. The program comes with many header files and other c scripts but also a MakeFile. I would like to run the MakeFile to just compile the program and then begin modifying the main script to go from there. How do I compile or run a MakeFile using MS Visual Studio 2008.
Thanks
Lefti
Re: Makefile in MS Visual Studio 2008
You can open the makefile and VC will create a project out of it.
Re: Makefile in MS Visual Studio 2008
Quote:
Originally Posted by
lefti
... and other c scripts
There is no such a thing like C script. There is a C code.
Re: Makefile in MS Visual Studio 2008
Quote:
How do I compile or run a MakeFile using MS Visual Studio 2008.
Building on the Command Line
Ultimately NMAKE is what you look for.
Re: Makefile in MS Visual Studio 2008
If I have a MakeFile can I load it through the IDE? It would be nice to view all files that are part of the MakeFile or part of the project. This way I could edit files, test, debug. I suppose I can do this command line but I am more used to IDE's in general. Just see what you guys think about this.
Lefti
Re: Makefile in MS Visual Studio 2008
Quote:
Originally Posted by
lefti
If I have a MakeFile can I load it through the IDE? It would be nice to view all files that are part of the MakeFile or part of the project. This way I could edit files, test, debug. I suppose I can do this command line but I am more used to IDE's in general. Just see what you guys think about this.
Lefti
See post #2...
Viggy
Re: Makefile in MS Visual Studio 2008
Ok I opened the MakeFile in VS now what do I do. I do not see a way to run/compile the MakeFile? Thanks
Re: Makefile in MS Visual Studio 2008
Use "File"->"Open Project/Solution"
Viggy
Re: Makefile in MS Visual Studio 2008
When I do File->Open->Project/Solution it looks for certain file extensions and I do not have any of those. When I loaded the MakeFile it did not create a project or anything like that. Am I missing something here. Thanks
Lefti
Re: Makefile in MS Visual Studio 2008
Quote:
Originally Posted by
lefti
When I do File->Open->Project/Solution it looks for certain file extensions and I do not have any of those. When I loaded the MakeFile it did not create a project or anything like that. Am I missing something here. Thanks
Lefti
I did it with a makefile and it asked me if I want to create a project.
Re: Makefile in MS Visual Studio 2008
Does your MakeFile have a special extension.
Re: Makefile in MS Visual Studio 2008
Just a .mak file I got from one of our old C programs.