Use ctcwrap for makefiles

With the small example from the basic tutorial, we describe a convenient way how to use Testwell CTC++ with makefiles and ctcwrap.

Assume we are using a makefile and we normally do the program building with nmake. Building an instrumented program can be done as simply as
ctcwrap -i m nmake

Whenever the makefile emits cl and link commands, they are executed as if they were ctc -i m cl and ctc -i m link commands. Hence the program source files get instrumented, compiled and linked with Testwell CTC++ using the given instrumentation options. This special treatment on cl and link commands is in effect only during the execution of the ctcwrap argument command.

This arrangement does not require that the makefile is written in some special way, for example that the compile and link commands can be redefined. The makefile may also call inner makefiles.

Also other build processes can be wrapped in this way, for example
ctcwrap -i d -v mybuildscript.bat

As a prerequisite to use ctcwrap, all compile and link commands emitted by the build system must rely on the environment variable PATH.

Note: On Windows, ctclaunch can be used instead of ctcwrap, in the same way described here. We recommend ctclaunch to be the first choice on Windows.