aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323/Makefile.in
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-19 19:04:13 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-19 19:04:13 +0000
commit50aeb9f02b319c34e8af79b1ae2d26ab40603d19 (patch)
tree75ea77c6fe1fbe2d4177be8c07a21213364d6d2e /channels/h323/Makefile.in
parentf1fa61d95bed4773b096ea544fddebb89386ef99 (diff)
Work!!!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43287 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/Makefile.in')
-rw-r--r--channels/h323/Makefile.in58
1 files changed, 58 insertions, 0 deletions
diff --git a/channels/h323/Makefile.in b/channels/h323/Makefile.in
new file mode 100644
index 000000000..357313d0b
--- /dev/null
+++ b/channels/h323/Makefile.in
@@ -0,0 +1,58 @@
+#
+# Makefile
+#
+# Make file for OpenH323 support layer
+#
+
+.PHONY: Makefile.ast clean
+
+default:: @OPENH323_BUILD@
+
+# Verify those options with main Makefile
+STDCCFLAGS = -DNDEBUG
+STDCCFLAGS += -I../../include -include ../../include/asterisk/autoconfig.h
+STDCCFLAGS += -fPIC
+#OPTCCFLAGS +=
+CFLAGS = -pipe
+TARGET = libchanh323.a
+TARGET += Makefile.ast
+SOURCES = ast_h323.cxx compat_h323.cxx cisco-h225.cxx
+OBJDIR = .
+OBJS =
+
+ifndef OPENH323DIR
+OPENH323DIR=@OPENH323DIR@
+endif
+
+include $(OPENH323DIR)/openh323u.mak
+
+notrace::
+ $(MAKE) NOTRACE=1 opt
+
+define module_cxx_template
+$(1):: $(2)
+ ln -f $(2) $(1)
+endef
+
+$(foreach mod,$(SOURCES),$(eval $(call module_cxx_template,$(mod),$(mod:.cxx=.cpp))))
+#$(SOURCES):: $(SOURCES:.cxx=.cpp)
+# ln -f $(patsubst %.cxx, %.cpp, $@) $@
+
+$(SOURCES):: Makefile ../../Makefile
+ touch $@
+
+libchanh323.a: $(OBJS)
+ ar crv $@ $(OBJS)
+
+cisco-h225.cpp:: cisco-h225.asn
+ asnparser -m CISCO_H225 -c $<
+ mv -f cisco-h225.cxx cisco-h225.cpp
+
+Makefile.ast:
+ @echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
+ @echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
+ @echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
+ @if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi
+
+clean::
+ rm -f $(SOURCES) $(TARGET) $(OBJS) Makefile.ast *.dep