This HOWTO explains the build process for a tranalyzer2 plugin.

Prerequisites:
The autotools program set.
If you have dependencies to tranalyzer2 source files (for example you include
the 'tranalyzer.h' header), make shure that the relative path of the tranalyzer2
source folder related to the plugin source folder is '../tranalyzer2/src'.
If this is not the case, you have to edit the command
'libtranalyzer_plugin_skeleton_la_CPPFLAGS' in the file 'src/Makefile.am' and
set the right path.

Set up src/Makefile.am and configure.ac:
In both files you have to change EVERY occurence of tranalyzer_plugin_skeleton
to the name of your plugin. For example libtranalyzer_plugin_skeleton.la has to be
changed to libmyPlugin.la, where myPlugin is the name of your plugin. We assume
that the source files for the main program are located in ../tranalyzer/src
relative to the source folder of your plugin. If not, you will have to change the
CPPFLAGS line in the file Makefile.am in order to build the library.

Set up autogen.sh:
In the bash script autogen.sh, you have to change the variables PLUGINNAME and
PLUGINORDER. PLUGINNAME needs to be the same name than your plugin name, without
the "lib" prefix. PLUGINORDER describes at which point your plugin functions are
executed. Make sure to include the the appropriate libraries after the CFLAGS
statement outherwise the linker cannot find the symbols.

Build:
To build the shared library, change to the plugin folder and invoke the
following command:

./autogen.sh

This builds the shared library and copies it to HOME/.tranalyzer/plugins, where
HOME is your home folder. The tranalyzer will now find your plugin.
