If you are using one of the latest Visual Studio for compiling, i believe you can just target linux in project settings. I wish i could say more, but i never tried to make mod myself. I am just assuming that this is how others do linux compilation of hl.dll. Since Visual Studio 2015 you can target linux.
Xandros_Darkstorm
Xandros joined
Programmer