Compile vanitygen source How do I compile this source or get vanitygen for linux?

Open source link:
https://github.com/samr7/vanitygen
I would suggest you use Bitaddress.org

its open source and secure without the need to install anything. 

or you could do that using bitcoin-php library on PHP.

vanitygen is too old and never updated almost since 7 years.

UPDATE

Sorry for the previous suggestion, I thought bitaddress.org has that function.

vanitygen library that you mentioned is too old, you better use 
vanitygen-plus, it's up-to-date and supports bitcoin and alt-coins.