Fix build error when chan_h323 is not being built.
[asterisk/asterisk.git] / channels / h323 / Makefile.in
index 82e297e..5f949ca 100644 (file)
@@ -16,7 +16,7 @@ STDCCFLAGS    += -fPIC
 CFLAGS         = -pipe
 TARGET         = libchanh323.a
 TARGET         += Makefile.ast
-SOURCES                = ast_h323.cxx compat_h323.cxx cisco-h225.cxx
+SOURCES                = ast_h323.cxx compat_h323.cxx cisco-h225.cxx caps_h323.cxx
 OBJDIR         = .
 OBJS           =
 
@@ -24,7 +24,9 @@ ifndef OPENH323DIR
 OPENH323DIR=@OPENH323DIR@
 endif
 
+ifneq ($(wildcard $(OPENH323DIR)/openh323u.mak),)
 include $(OPENH323DIR)/openh323u.mak
+endif
 
 notrace::
        $(MAKE) NOTRACE=1 opt