Don't do reinvite if both parties talk diffrent codecs
[asterisk/asterisk.git] / channels / h323 / Makefile
1 # include the Makefile of OpenH323 
2
3 ifndef OPENH323DIR
4 OPENH323DIR=$(HOME)/openh323
5 endif
6
7 ifndef PWLIBDIR
8 PWLIBDIR=$(HOME)/pwlib
9 endif
10
11 ifndef ASTERISKDIR
12 ASTERISKDIR= /usr/lib/asterisk/modules
13 endif
14
15 ifndef ASTETCDIR
16 ASTETCDIR=/etc/asterisk
17 endif
18
19 # Uncomment if u want to attempt to include the G.729 stuff
20 # This is a quick fix to work around the missing H323Capability
21 # in Open H.323. As of Open H.323 1.12.0 the H323Capability for
22 # G.729 was removed due to legal reasons, use Open H.323 v1.11.7
23 #
24 #CFLAGS += -DWANT_G729
25 #
26 # This needs to be updated to deal with more than just little endian machines
27 #
28 CFLAGS += -march=$(shell uname -m) -DPBYTE_ORDER=PLITTLE_ENDIAN
29
30
31 #############################################
32 #
33 # Only change below if you know WTF your doing
34 #
35 CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS
36 CFLAGS += -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations 
37 CFLAGS += -DP_LINUX  -D_REENTRANT -D_GNU_SOURCE
38 CFLAGS += -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
39 CFLAGS += -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA
40 CFLAGS += -I../../include
41 CFLAGS += -I$(PWLIBDIR)/include/ptlib/unix -I$(PWLIBDIR)/include 
42 CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes -Wno-missing-declarations
43
44
45 all:    libchanh323.a
46
47
48 install: all
49         install -m 755 chan_h323.so $(ASTERISKDIR)
50         @echo " + ---- chan_h323 Installation Complete ----- +"
51         @echo " +                                            +"
52         @echo " + chan_h323 has successfully been installed. +"
53         @echo " + If you would like to install the sample    +"
54         @echo " + configuration file (overwriting existing   +"
55         @echo " + config file), run:                         +"
56         @echo " +                                            +"
57         @echo " +               $(MAKE) samples                 +"
58         @echo " +                                            +"
59         @echo " + ------------------------------------------ +"
60         @echo " "
61  
62
63 samples: 
64         if [ -f $(ASTETCDIR)/h323.conf ]; then \
65                 mv -f $(ASTETCDIR)/h323.conf $(ASTETCDIR)/h323.conf.old ; \
66         fi ; 
67         install h323.conf.sample $(ASTETCDIR)/h323.conf
68  
69
70 ast_h323.o:     ast_h323.cpp
71         g++ -g -c -o $@ $(CFLAGS) $<
72
73 libchanh323.a:  ast_h323.o
74         ar cr libchanh323.a ast_h323.o
75
76 chan_h323.so:   
77         g++  -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 -lpthread -ldl -lcrypto -lssl -lexpat
78
79 chan_h323_d.so: chan_h323.o ast_h323.o
80         g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_d -L$(OPENH323DIR)/lib -lh323_linux_x86_d -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
81
82 chan_h323_s.so: chan_h323.o ast_h323.o
83         g++  -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 -lpthread -ldl -lcrypto -lssl -lexpat
84 clean:
85         rm -f *.o *.so core.* libchanh323.a
86
87