Instructions for building and installing the tpm2.0-tools are provided in the INSTALL file. For more details on this code and how to use it, the manual file is a good place to start.