mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
Add make samples to the main Makefile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -10,7 +10,7 @@ Here are some basic instructions how to download and compile the code from openh
|
|||||||
> ldconfig
|
> ldconfig
|
||||||
> cd /usr/src/asterisk/channels/h323
|
> cd /usr/src/asterisk/channels/h323
|
||||||
> make install
|
> make install
|
||||||
> cp h323.sample.conf /etc/asterisk/h323.conf
|
> make samples
|
||||||
|
|
||||||
Now you have to edit the /etc/asterisk/h323.conf config file.
|
Now you have to edit the /etc/asterisk/h323.conf config file.
|
||||||
|
|
||||||
|
@@ -12,6 +12,9 @@ ifndef ASTERISKDIR
|
|||||||
ASTERISKDIR= /usr/lib/asterisk/modules
|
ASTERISKDIR= /usr/lib/asterisk/modules
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef ASTETCDIR
|
||||||
|
ASTETCDIR=/etc/asterisk
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS
|
CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS
|
||||||
CFLAGS = -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations
|
CFLAGS = -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations
|
||||||
@@ -33,6 +36,24 @@ debug: chan_h323_d.so
|
|||||||
|
|
||||||
install: all
|
install: all
|
||||||
install -m 755 chan_h323.so $(ASTERISKDIR)
|
install -m 755 chan_h323.so $(ASTERISKDIR)
|
||||||
|
@echo " +----- chan_h323 Installation Complete ----- +"
|
||||||
|
@echo " + +"
|
||||||
|
@echo " + chan_h323 has successfully been installed. +"
|
||||||
|
@echo " + If you would like to install the sample +"
|
||||||
|
@echo " + configuration file (overwriting existing +"
|
||||||
|
@echo " + config file), run: +"
|
||||||
|
@echo " + +"
|
||||||
|
@echo " + make samples +"
|
||||||
|
@echo " + +"
|
||||||
|
@echo " + +"
|
||||||
|
|
||||||
|
|
||||||
|
samples:
|
||||||
|
if [ -f $(ASTETCDIR)/h323.conf ]; then \
|
||||||
|
mv -f $(ASTETCDIR)/h323.conf $(ASTETCDIR)/h323.conf.old ; \
|
||||||
|
fi ;
|
||||||
|
install h323.conf.sample $(ASTETCDIR)/h323.conf
|
||||||
|
|
||||||
|
|
||||||
chan_h323.o: chan_h323.c
|
chan_h323.o: chan_h323.c
|
||||||
$(CC) -g -c -o $@ $(CFLAGS) $<
|
$(CC) -g -c -o $@ $(CFLAGS) $<
|
||||||
|
Reference in New Issue
Block a user