View Single Post
Malak101
Member
Join Date: May 2009
Old 06-16-2015 , 06:08   Re: Compile Extension step by step
Reply With Quote #3

Quote:
Originally Posted by keygens View Post
Hello guys. I need some help for compilation of extensions. I have flashtools extension source code, and i want to compile it for other engine, for l4d2 (for example). I have been installed ubuntu, gcc, and ide code::blocks. Also sourcemod-central and hl2sdk-l4d2. Well, what i need to do now? I mean, i dont understand, how to setting code::blocks for compile? Someone compile by code:blocks and can help me with settings? How alliedmodders always compile extensions for linux? Thanks in advance
1. Open Makefile in your favourite text editor (borrow one if missing it).

2. Set the pathways to your hl2sdk, metamod & sourcemod etc.

Example:
I replace
Code:
 HL2SDK_CSGO = ../../hl2sdk-csgo
with
Code:
HL2SDK_CSGO = /home/malak/sdks/hl2sdk-csgo
3. Just below the pathways you set, you need to add this:
Code:
ENGINE=csgo
Replace csgo with your engine of choice.

4. In your terminal CD the directory containing your Makfile then type/enter this:
Code:
make
5. Compiled bin should be in the root of your directory.

Last edited by Malak101; 06-16-2015 at 06:20.
Malak101 is offline