[asterisk-users] How do you recompile individual source modules?
Bart Fisher
bhfisher at icpage.com
Sat Jul 29 12:09:38 MST 2006
If I understand, I cd to asterisk source folder and run make - it take
card of rest?
Also, when/why should you use astxs?
Bart
Russell Bryant wrote:
> ----- Bart Fisher <bhfisher at icpage.com> wrote:
>
>> I need to make a small change (addition) to chan_zap.c. I read
>> somewhere
>> you can recompile individual module source without the need to
>> recompile
>> the entire asterisk sources each time at change is made. Can someone
>> tell this 'C' noob how to do this?
>>
>
> If you're working in the same Asterisk source tree that you compiled and installed on the machine, then when you run "make" again, only the files you have modified will be recompiled. That is just a feature of the build system.
>
> There is also a utility called "astxs" in the contrib/scripts/ directory of the source tree that allows you to directly compile a single module.
>
> $ cd /usr/src/asterisk
> $ contrib/scripts/astxs channels/chan_zap.c
>
>
>
More information about the asterisk-users
mailing list