Building Libtorch from source

Hello all,
I am attempting to rebuild pytorch from source to get the standalone libtorch libraries(c++)
I have checked out v1.3.0 and compiled with gcc 4.8. How do i link the libs/ and includes/ for a makefile without using cmake? Also which version of Pytorch would have a better libtorch build for gcc 4.8.5?
This is my requirement for compiler.

Also, have noticed that when building libtorch using build_libtorch script on the newest version, the TorchVersion file indicates it builds Torch 1.1. However if i build pytorch using the setup.py build command, the libtorch version will match the checked out version. Whats going on here?