views:

37

answers:

0

I have a fairly large project which uses make for its build infrastructure. When we perform a build, we take advantage of cl.exe's /showInclude option to find source dependencies. Is there a similar capability for rc.exe?

The basic problem is this:

A makefile specifies a resource to be compiled (say, resources.rc). The resource file includes a few header files and a few .rc2 files. Resources.rc builds and generates a resources.res file as its output.

When one of the included .rc2 files changes, how can I detect that and rebuild the resources.res output?

NOTE: I'd like this to be done automatically (I don't want to have to manually specify dependencies).