Experimental Code
Code Written To Experiment With Various Techniques And Otherwise Not Very Useful...
|
This page documents how we use the following tools:
Make is configured to work from each diretory with source code, such as src, examples and test.
Common information is in Makefile.config.incl including compiler flags, where to include header files, how to build dependencies, the actual library built, and how to use the library within the GNU Make environment of the project.
The top-level Makefile delegates the targets all, clean, cleaner and cleanest to the subdirectories in proper dependency order and adds some additional tasks.
The src/ Makefile builds the library.
The test/ Makefile builds a unit-test command.
The examples/ Makefile compiles each example file to help ensure they remain syntaticly valid.
Common GNU Make Targets:
Top-Level Only GNU Make Targets:
We put doxygen comments in the header for ease of maintenance. Causing extraneous building for documentaiton changes is not a significant concern on a project this small.
We have a directory of .dox files, named dox/, to provide all of the documentation for the project as a trial of the facility and its usefulness. It started because the usual documentation files obviously could not be linked to from the doxygen generated files neatly.
We have a directory of examples, named examples, to provide compiled (thus syntatically valid, examples.
We build a unit-test with googletest using a main function from a googletest library.