A complete example (from the test suite) is installed under:
prefix/share/hackt/doc/examples/chpsim-function/
The files contained therein are README, hello.cc, hello-test.hac, and Makefile.in.
It is very similar to the example described earlier in this chapter. To run this example (VPATH make using remote source directory), do the following:
For example, ‘mkdir play && cd play’.
prefix/share/hackt/doc/examples/chpsim-function.
If you run make, it will perform all the necessary compilation steps and dump a short run of the simulation to an output file hello-test.chpsimrc-out.
Another output file confirm-exec is produced to confirm that all the necessary toolchain executables are found in your PATH. Some additional clean targets are also provided.
If you want to modify the examples, the (non-VPATH) alternative is to copy the whole example directory and dispense with setting srcdir and VPATH.