diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-15 00:41:25 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-15 00:41:25 +0000 |
commit | 962ab104482c4e7f2000ba7c535ff973a70f527e (patch) | |
tree | c0598fc56a997749e9d843e0c82063101471145b /channels/h323 | |
parent | e8df90dfd93b1389df302ca2c9458b48cc886b4c (diff) |
Add depend support for H.323 (bug #2757)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4247 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323')
-rwxr-xr-x | channels/h323/Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/channels/h323/Makefile b/channels/h323/Makefile index 48e4c4e43..1c6f1f4e4 100755 --- a/channels/h323/Makefile +++ b/channels/h323/Makefile @@ -43,7 +43,7 @@ CFLAGS += -I../../include CFLAGS += -I$(PWLIBDIR)/include CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes -Wno-missing-declarations -all: libchanh323.a +all: depend libchanh323.a samples: if [ -f $(ASTETCDIR)/h323.conf ]; then \ @@ -52,11 +52,15 @@ samples: 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 $(CXX) -g -c -o $@ $(CFLAGS) $< -libchanh323.a: ast_h323.o - ar cr libchanh323.a ast_h323.o +ifneq ($(wildcard .depend),) +include .depend +endif 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) @@ -67,6 +71,11 @@ chan_h323_d.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) clean: - rm -f *.o *.so core.* libchanh323.a + rm -f *.o *.so core.* libchanh323.a .depend + +depend: .depend + +.depend: + ../../mkdep $(CFLAGS) `ls *.cpp` |