Compilation and Installation
From OpenSSLWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Get source code
http://www.openssl.org/source/
Compilation
once you untarred source ( or got it from a source control ) best is to look at README provided in it.
cat README
where you will understand that you have to read another file INSTALL :
cat INSTALL
Quick
./config make make test make install