Installation
The top level directory structure of
the adevs library looks like this
adevs-x.y.z
|->docs
|->examples
|->include
|->src
|->test
|->util
The short form of
the build instructions is as
follows (this works, at least, with the GCC compiler):
-
Everything except the random number generators are implemented as template classes, and so are contained entirely in the header files. If you do not want to use the random number generators, its sufficient to include "adevs.h" in your source code, and make sure your compiler can find the adevs include directory. No need to compile anything.
- If you do want to use the random number generators, go the the src directy and run 'make'. This will build the library libadevs.a that can be linked with your executable.
-
If you want to run the test suite, first build the adevs library. Then go the the test directory and run 'make test'. This will automatically execute all of the test cases (note that this only works, for now, if your compiler produce an executable a.out by default). If the test suite is run to completion, then everything works fine. If something goes wrong, make will exit and report an error. Use 'make clean' to cleanup afterwards.