[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1587
  • Last Modified:

DSP -> Makefile

Is there a utility that will convert a .dsp (project file)file to a makefile. I'm trying to automate the build process but dont want to export a makefile from the IDE as inconsitancies creeep in. A pointer to an app .. remember prj2mak.exe) is there a dsp2mak.exe?
0
dr_funfrock
Asked:
dr_funfrock
1 Solution
 
chensuCommented:
Visual C++ comes with this function. Open your project, select the menu Project\Export Makefile..., it will generate a makefile (.mak).
0
 
chensuCommented:
Oops, I am sorry, I didn't read your question carefully. Just reject it.
0
 
dr_funfrockAuthor Commented:
:)


0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
dr_funfrockAuthor Commented:

 Turns out you can either:

1) Write some VBScript to run msdev with the project on the command line and compile it
2) Use an Addin sample shipped with VC called AutoBuild.

 100 points to anyone who has done this and give me some feedback

Doc

0
 
mikeblasCommented:
What "feedback" do you want?

AUTOBUILD works, and does what you want. But it causes the whole MSDEV.EXE shell to load, run, and quit each time you invoke it. It's terribly expensive. But it's the only way to do what you want.

I think you'd be better off exporting a makefile. You can flip an option in devstudio to do it automatically whenver the project files change.

.B ekiM
0
 
gelbertCommented:
You can find how to write VB macros in VC++ 5.0 help in "developer products\Visual C++\developer studio enviroment user guide\automating tasks in developer studio". Also some samples can be found at www.codeguru.com in "macros" section
0
 
dr_funfrockAuthor Commented:
Thanks Mike for pointing out the Export Always Option (Doh missed that one). Now if there was only some way to automatically have makefiles be checked in and out of sourcesafe.

Thanks To Gelbert for the links, he gets da points since Mike has a boatload already ;)

Doc
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now