mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Add depend support for H.323 (bug #2757)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -43,7 +43,7 @@ CFLAGS += -I../../include
|
|||||||
CFLAGS += -I$(PWLIBDIR)/include
|
CFLAGS += -I$(PWLIBDIR)/include
|
||||||
CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes -Wno-missing-declarations
|
CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes -Wno-missing-declarations
|
||||||
|
|
||||||
all: libchanh323.a
|
all: depend libchanh323.a
|
||||||
|
|
||||||
samples:
|
samples:
|
||||||
if [ -f $(ASTETCDIR)/h323.conf ]; then \
|
if [ -f $(ASTETCDIR)/h323.conf ]; then \
|
||||||
@@ -52,11 +52,15 @@ samples:
|
|||||||
install h323.conf.sample $(ASTETCDIR)/h323.conf
|
install h323.conf.sample $(ASTETCDIR)/h323.conf
|
||||||
|
|
||||||
|
|
||||||
|
libchanh323.a: ast_h323.o
|
||||||
|
ar cr libchanh323.a ast_h323.o
|
||||||
|
|
||||||
ast_h323.o: ast_h323.cpp
|
ast_h323.o: ast_h323.cpp
|
||||||
$(CXX) -g -c -o $@ $(CFLAGS) $<
|
$(CXX) -g -c -o $@ $(CFLAGS) $<
|
||||||
|
|
||||||
libchanh323.a: ast_h323.o
|
ifneq ($(wildcard .depend),)
|
||||||
ar cr libchanh323.a ast_h323.o
|
include .depend
|
||||||
|
endif
|
||||||
|
|
||||||
chan_h323.so:
|
chan_h323.so:
|
||||||
$(CXX) -g -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_linux_x86_r -L$(OPENH323DIR)/lib -lh323_linux_x86_r -L/usr/lib $(CHANH323LIB)
|
$(CXX) -g -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_linux_x86_r -L$(OPENH323DIR)/lib -lh323_linux_x86_r -L/usr/lib $(CHANH323LIB)
|
||||||
@@ -67,6 +71,11 @@ chan_h323_d.so: chan_h323.o ast_h323.o
|
|||||||
chan_h323_s.so: chan_h323.o ast_h323.o
|
chan_h323_s.so: chan_h323.o ast_h323.o
|
||||||
$(CXX) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_linux_x86_r_s -L$(OPENH323DIR)/lib -lh323_linux_x86_r_s -L/usr/lib $(CHANH323LIB)
|
$(CXX) -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib -lpt_linux_x86_r_s -L$(OPENH323DIR)/lib -lh323_linux_x86_r_s -L/usr/lib $(CHANH323LIB)
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.so core.* libchanh323.a
|
rm -f *.o *.so core.* libchanh323.a .depend
|
||||||
|
|
||||||
|
depend: .depend
|
||||||
|
|
||||||
|
.depend:
|
||||||
|
../../mkdep $(CFLAGS) `ls *.cpp`
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user