To build and install the tpm2.0-tools software the following software is required:
GNU Autoconf
GNU Automake
GNU Libtool
pkg-config
C compiler
C++ compiler
C Library Development Libraries and Header Files (for pthreads headers)
TPM2.0 TSS socket TCTI library and header files
TPM2.0 TSS SAPI library and header files
OpenSSL library and header files
Curl library and header files

To obtain the tpm2.0-tools sources you must clone them as below:
git clone https://github.com/01org/tpm2.0-tools

To compile tpm2.0-tools execute the following commands from the root of the
source directory:
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

All executables are generated under ./src/ directory.
