]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
add depend support for h323 (bug #2757)
authorRussell Bryant <russell@russellbryant.com>
Mon, 15 Nov 2004 02:35:35 +0000 (02:35 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 15 Nov 2004 02:35:35 +0000 (02:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4253 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/Makefile

index 52004c1fd75ad02651118a5524c08333a4050f2e..1ccc8a6578abe22eba7879f9d2c311443bb30035 100755 (executable)
@@ -64,7 +64,7 @@ CFLAGS += -I$(OPENH323DIR)/include
 CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations
 LIBS+= -lcrypto -lssl -lexpat
 
-all:           libchanh323.a
+all:   depend libchanh323.a
 
 samples: 
        if [ -f $(ASTETCDIR)/h323.conf ]; then \
@@ -73,11 +73,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 -fno-rtti -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)
@@ -88,6 +92,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`