aboutsummaryrefslogtreecommitdiffstats
path: root/channels/Makefile
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-29 04:37:02 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-29 04:37:02 +0000
commit044d2218ba972a4a4ef2d2aa9a9f80f3fad9a6b9 (patch)
treef616b0d20c15f25c5d2cbd0b408d08020b181ca7 /channels/Makefile
parentb0b24cc0fbb3952a2ed671d36c67262b7b3ad73c (diff)
Rework astersk make process to be compatable with the Open H.323 build process. Bug #3981
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5528 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/Makefile')
-rwxr-xr-xchannels/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/channels/Makefile b/channels/Makefile
index 87f126f89..b4c60bf35 100755
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -121,6 +121,10 @@ ifneq ($(wildcard .depend),)
include .depend
endif
+ifneq ($(wildcard h323/Makefile.ast),)
+include h323/Makefile.ast
+endif
+
ifeq ($(CROSS_COMPILE),)
gentone: gentone.c
$(CC) -o gentone gentone.c -lm
@@ -178,8 +182,13 @@ chan_vpb.o: chan_vpb.c
chan_vpb.so: chan_vpb.o
$(CXX) $(SOLINK) -o $@ $< -lvpb -lpthread -lm -ldl
+ifeq (${OSARCH},Linux)
+chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast
+ $(CC) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS) -lstdc++
+else
chan_h323.so: chan_h323.o h323/libchanh323.a
$(CC) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
+endif
#chan_modem.so : chan_modem.o