[asterisk-users] How do you recompile individual source modules?
Russell Bryant
russell at digium.com
Sat Jul 29 10:44:31 MST 2006
----- 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
--
Russell Bryant
Software Developer
Digium, Inc.
More information about the asterisk-users
mailing list