The code is basically the sample code from Intel SGX SDK, but striped of the "payload". This can be used as a template for applications based on Intel SGX SDK.
To build and run, use the following command
make && ./app
This project has been tested with Intel SGX SDK 2.2 on Ubuntu 16.04.