Just wondering if there is a 'makedepends' equivalent that ships with visual studio that I can use with nmake. Does anyone know?
相关问题
- the application was unable to start correctly 0xc0
- how to call a C++ dll from C# windows application
- efficiently calling unmanaged method taking unmana
- CMakeList file to generate LLVM bitcode file from
- Why is my COM factory never released during the pr
相关文章
- How to add external file to application files ( cl
- C++: Callback typedefs with __stdcall in MSVC
- Is it possible to check whether you are building f
- Which VC++ redistributable package to choose (x86
- How to arrange a Makefile to compile a kernel modu
- Makefile and use of $$
- Makefile: all vs default targets
- How to convert Byte Array to hex string in visual
You can use the
/showIncludes
switch tocl.exe
to list the headers#include
d by your source files. Nested includes are indicated by indentation with spaces. You can also turn on syntax-checking mode with the/Zs
switch, to increase speed and avoid creation of .obj files.If you have Perl and a version of
uniq
(e.g. from GnuWin32) installed, the following one-liner will dump the list of unique headers used bymyfile.cpp
:It should not be too difficult to pipe this through another script that creates the relevant
nmake
rules.I assume you use NMAKE to build project like me. I'm in need of makedepend-like tool in Windows, too. So, I use MinGW to generate header dependencies. First create Makefile to generate dependencies, which I named it Makedepends, like this:
In your Makefile that will be used by NMAKE, add this line at bottom:
When you want to create dependencies, run GMAKE like this:
And then, you can build your project with NMAKE as usual:
PS: Sorry for poor language, I'm suck at writing. -_-