how to

how to compile smart source code

In order to compile the smart source code you have to:

  • download the source package from the download page. This is a compressed archive containing all source C codes and text corpus.
  • copy the archive in a local directory, where you want to install smart, and unpack the archive.
This will create the new directory, named smart/, and containing the following files and sub directories:
  • docs/ is the directory containing the documentation files;
  • source/ is the directory containing the C source code of all string matching algorithms and utilities;
  • results/ is the directory which will contain the files with experimental data;
  • data/ is the directory containing the corpus which are used for testing the string matching algorithms;
  • copyright.txt contains the copyright disclaimer;
  • gpl-3.0.txt contains the GNU general public license;
  • makefile is the bash file used for compiling the C source files of the tool.
Run the command ./makefile in order to compile the smart tool. The code of each string matching algorithm is compiled an tested separately. The resulting binary code is store in the directory source/bin.