in reply to Generate dep file from CPP file- to use with nmake

Noame:

If you're wanting to write it to learn more perl and C++, then have fun. But if you're just interested in having a tool to do the job, you might want to download gcc--it already has a command-line option to generate dependency files (the -M series, IIRC). If your format constraints are particular enough you could follow it with a perl script to clean it up.

...roboticus

  • Comment on Re: Generate dep file from CPP file- to use with nmake

my Question is more complicated.I've wrote Perl script to build my applications using 'nmake' command and base on 'MAK' and 'DEP' files that were generated from Visual C++ based on 'DSP' files. Today, I'm generating 'MAK' and 'DEP' files from Visual C++ to my project and then using them to build my application with 'nmake' command from Unix The 'MAK' is product of 'DSP' files and I don't have problem to generate from Visual C++ to my requirement.I found that Visual C++ can generated 'DEP' file as well, but it generate it just if the project was compiled and already has 'vc60.idb' file.'vc60.idb' file is an internal DB file of Visual C++ that include information about the project like the dependency relations...I don't want to compile each time my project via Visual C++ and then generate the DEP file - I would like to avoid from my dependence in that tool...Therefore, I would like to write or use any tool to generate 'DEP' files independently that 'nmake' command can use/read them.I Hope that my explanations are clear enough and you can help me or give me any idea...Thanks
Replies are listed 'Best First'.
Re^2: Generate dep file from CPP file- to use with nmake
by Noame (Beadle) on Apr 14, 2008 at 05:41 UTC