Major rework of how SIP utilises sockets, using new "socket bundling" subsystem.
[opal/cbnco.git] / opal_inc.mak.in
blob86cb4d9ae439dc3b34651e813f8fc4a889ca9c3a
2 # opal_inc.mak
4 # Make symbols include file for Open Phone Abstraction library
6 # Copyright (c) 2001 Equivalence Pty. Ltd.
8 # The contents of this file are subject to the Mozilla Public License
9 # Version 1.0 (the "License"); you may not use this file except in
10 # compliance with the License. You may obtain a copy of the License at
11 # http://www.mozilla.org/MPL/
13 # Software distributed under the License is distributed on an "AS IS"
14 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15 # the License for the specific language governing rights and limitations
16 # under the License.
18 # The Original Code is Open Phone Abstraction library.
20 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
22 # Contributor(s): ______________________________________.
24 # $Log$
25 # Revision 1.14 2007/06/02 13:38:37 dsandras
26 # Fixed build on linux which was broken due to partial commit of the RFC4175
27 # code.
29 # Revision 1.13 2006/10/10 07:18:18 csoutheren
30 # Allow compilation with and without various options
32 # Revision 1.12 2006/10/04 06:19:08 csoutheren
33 # Fixed SRTP configuration for Linux
35 # Revision 1.11 2006/06/27 13:50:23 csoutheren
36 # Patch 1375137 - Voicetronix patches and lid enhancements
37 # Thanks to Frederich Heem
39 # Revision 1.10 2006/05/30 12:04:09 hfriederich
40 # Enabling to build H.460
42 # Revision 1.9 2006/04/20 16:56:41 hfriederich
43 # Changes to allow compilation of H.224/H.281 code as well as to disable H.224 entirely
45 # Revision 1.8 2006/04/17 00:06:27 csoutheren
46 # Allow ILBC codec to be disabled and detect if not present
48 # Revision 1.7 2006/01/30 02:23:16 csoutheren
49 # First cut at fixing problem with speex libraries
51 # Revision 1.6 2005/12/06 06:34:10 csoutheren
52 # Added configure support for Sangoma and empty LID source and header files
54 # Revision 1.5 2005/07/30 07:39:26 csoutheren
55 # Added support for compiling new IAX2 code
57 # Revision 1.4 2005/01/15 09:19:39 csoutheren
58 # Fixed compile problems and IXJ link problems
60 # Revision 1.3 2004/12/05 18:14:20 dsandras
61 # Cleanups.
63 # Revision 1.2 2004/04/25 08:33:42 rjongbloed
64 # Removed detection of various LIDs as now in configure
66 # Revision 1.1 2004/03/16 04:27:18 csoutheren
67 # Initial version
69 # Revision 2.4 2002/09/11 05:55:40 robertj
70 # Fixed double inclusion of common.mak
71 # Added more directories to search to find pwlib
73 # Revision 2.3 2002/04/19 01:24:30 robertj
74 # Changed /usr/include to SYSINCDIR helps with X-compiling, thanks Bob Lindell
76 # Revision 2.2 2002/03/15 10:51:53 robertj
77 # Fixed problem with recursive inclusion on make files.
79 # Revision 2.1 2002/02/06 09:39:37 rogerh
80 # Look for telephony.h in the place where the FreeBSD port puts it
82 # Revision 2.0 2001/07/27 15:48:24 robertj
83 # Conversion of OpenH323 to Open Phone Abstraction Library (OPAL)
86 OPALDIR=@OPALDIR@
87 PWLIBDIR=@PWLIBDIR@
89 LIBDIRS += $(OPALDIR)
91 ifdef LIBRARY_MAKEFILE
92 include $(PWLIBDIR)/make/unix.mak
93 else
94 ifdef NOTRACE
95 OBJDIR_SUFFIX := n
96 endif
97 include $(PWLIBDIR)/make/ptlib.mak
98 endif
100 OPAL_SRCDIR = $(OPALDIR)/src
101 OPAL_INCDIR = $(OPALDIR)/include
102 OPAL_LIBDIR = $(OPALDIR)/lib
104 OPAL_SIP = @OPAL_SIP@
105 OPAL_H323 = @OPAL_H323@
106 OPAL_IAX2 = @OPAL_IAX2@
107 OPAL_LID = @OPAL_LID@
108 OPAL_IVR = @OPAL_IVR@
109 OPAL_H224 = @OPAL_H224@
110 OPAL_SYSTEM_SPEEX = @OPAL_SYSTEM_SPEEX@
111 OPAL_SRTP = @OPAL_SRTP@
112 OPAL_RFC4175 = @OPAL_RFC4175@
113 HAS_LIBSRTP = @HAS_LIBSRTP@
115 H323_H460 = @H323_H460@
117 ifdef NOTRACE
118 STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
119 OPAL_SUFFIX = n
120 else
121 STDCCFLAGS += -DPTRACING
122 RCFLAGS += -DPTRACING
123 OPAL_SUFFIX = $(OBJ_SUFFIX)
124 endif
127 OPAL_BASE = opal_$(PLATFORM_TYPE)_$(OPAL_SUFFIX)
128 OPAL_FILE = lib$(OPAL_BASE)$(LIB_TYPE).$(LIB_SUFFIX)
130 LDFLAGS += -L$(OPAL_LIBDIR)
131 LDLIBS := -l$(OPAL_BASE)$(LIB_TYPE) $(LDLIBS)
133 STDCCFLAGS += -I$(OPAL_INCDIR)
135 ifeq ($(HAS_LIBSRTP), 1)
136 ENDLDLIBS += -lsrtp
137 endif
139 $(TARGET) : $(OPAL_LIBDIR)/$(OPAL_FILE)
141 ifndef LIBRARY_MAKEFILE
143 ifdef DEBUG
144 $(OPAL_LIBDIR)/$(OPAL_FILE):
145 $(MAKE) -C $(OPALDIR) debug
146 else
147 $(OPAL_LIBDIR)/$(OPAL_FILE):
148 $(MAKE) -C $(OPALDIR) opt
149 endif
151 libs :: $(OPAL_LIBDIR)/$(OPAL_FILE)
153 endif
156 # End of file