-
January 10th, 2012, 12:53 PM
#1
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
-
January 10th, 2012, 01:00 PM
#2
Re: Makefile in MS Visual Studio 2008
You can open the makefile and VC will create a project out of it.
-
January 10th, 2012, 01:41 PM
#3
Re: Makefile in MS Visual Studio 2008
Originally Posted by lefti
... and other c scripts
There is no such a thing like C script. There is a C code.
Victor Nijegorodov
-
January 10th, 2012, 02:18 PM
#4
Re: Makefile in MS Visual Studio 2008
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.
Best regards,
Igor
-
January 10th, 2012, 02:22 PM
#5
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
-
January 10th, 2012, 02:49 PM
#6
Re: Makefile in MS Visual Studio 2008
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
-
January 10th, 2012, 04:52 PM
#7
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
-
January 10th, 2012, 04:57 PM
#8
Re: Makefile in MS Visual Studio 2008
Use "File"->"Open Project/Solution"
Viggy
-
January 10th, 2012, 05:04 PM
#9
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
-
January 10th, 2012, 06:46 PM
#10
Re: Makefile in MS Visual Studio 2008
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.
-
January 10th, 2012, 07:24 PM
#11
Re: Makefile in MS Visual Studio 2008
Does your MakeFile have a special extension.
-
January 11th, 2012, 08:42 AM
#12
Re: Makefile in MS Visual Studio 2008
Just a .mak file I got from one of our old C programs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|