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
18 # The Original Code is Open Phone Abstraction library.
20 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
22 # Contributor(s): ______________________________________.
25 # Revision 1.15 2007/06/14 13:07:47 csoutheren
26 # Fix problem with linking system Speex statically
28 # Revision 1.14 2007/06/02 13:38:37 dsandras
29 # Fixed build on linux which was broken due to partial commit of the RFC4175
32 # Revision 1.13 2006/10/10 07:18:18 csoutheren
33 # Allow compilation with and without various options
35 # Revision 1.12 2006/10/04 06:19:08 csoutheren
36 # Fixed SRTP configuration for Linux
38 # Revision 1.11 2006/06/27 13:50:23 csoutheren
39 # Patch 1375137 - Voicetronix patches and lid enhancements
40 # Thanks to Frederich Heem
42 # Revision 1.10 2006/05/30 12:04:09 hfriederich
43 # Enabling to build H.460
45 # Revision 1.9 2006/04/20 16:56:41 hfriederich
46 # Changes to allow compilation of H.224/H.281 code as well as to disable H.224 entirely
48 # Revision 1.8 2006/04/17 00:06:27 csoutheren
49 # Allow ILBC codec to be disabled and detect if not present
51 # Revision 1.7 2006/01/30 02:23:16 csoutheren
52 # First cut at fixing problem with speex libraries
54 # Revision 1.6 2005/12/06 06:34:10 csoutheren
55 # Added configure support for Sangoma and empty LID source and header files
57 # Revision 1.5 2005/07/30 07:39:26 csoutheren
58 # Added support for compiling new IAX2 code
60 # Revision 1.4 2005/01/15 09:19:39 csoutheren
61 # Fixed compile problems and IXJ link problems
63 # Revision 1.3 2004/12/05 18:14:20 dsandras
66 # Revision 1.2 2004/04/25 08:33:42 rjongbloed
67 # Removed detection of various LIDs as now in configure
69 # Revision 1.1 2004/03/16 04:27:18 csoutheren
72 # Revision 2.4 2002/09/11 05:55:40 robertj
73 # Fixed double inclusion of common.mak
74 # Added more directories to search to find pwlib
76 # Revision 2.3 2002/04/19 01:24:30 robertj
77 # Changed /usr/include to SYSINCDIR helps with X-compiling, thanks Bob Lindell
79 # Revision 2.2 2002/03/15 10:51:53 robertj
80 # Fixed problem with recursive inclusion on make files.
82 # Revision 2.1 2002/02/06 09:39:37 rogerh
83 # Look for telephony.h in the place where the FreeBSD port puts it
85 # Revision 2.0 2001/07/27 15:48:24 robertj
86 # Conversion of OpenH323 to Open Phone Abstraction Library (OPAL)
94 ifdef LIBRARY_MAKEFILE
95 include $(PWLIBDIR
)/make
/unix.mak
100 include $(PWLIBDIR
)/make
/ptlib.mak
103 OPAL_SRCDIR
= $(OPALDIR
)/src
104 OPAL_INCDIR
= $(OPALDIR
)/include
105 OPAL_LIBDIR
= $(OPALDIR
)/lib
107 OPAL_SIP
= @OPAL_SIP@
108 OPAL_H323
= @OPAL_H323@
109 OPAL_IAX2
= @OPAL_IAX2@
110 OPAL_LID
= @OPAL_LID@
111 OPAL_IVR
= @OPAL_IVR@
112 OPAL_H224
= @OPAL_H224@
113 OPAL_SYSTEM_SPEEX
= @OPAL_SYSTEM_SPEEX@
114 OPAL_SRTP
= @OPAL_SRTP@
115 OPAL_RFC4175
= @OPAL_RFC4175@
116 HAS_LIBSRTP
= @HAS_LIBSRTP@
118 H323_H460
= @H323_H460@
121 STDCCFLAGS
+= -DPASN_NOPRINTON
-DPASN_LEANANDMEAN
124 STDCCFLAGS
+= -DPTRACING
125 RCFLAGS
+= -DPTRACING
126 OPAL_SUFFIX
= $(OBJ_SUFFIX
)
130 OPAL_BASE
= opal_
$(PLATFORM_TYPE
)_
$(OPAL_SUFFIX
)
131 OPAL_FILE
= lib
$(OPAL_BASE
)$(LIB_TYPE
).
$(LIB_SUFFIX
)
133 LDFLAGS
+= -L
$(OPAL_LIBDIR
)
134 LDLIBS
:= -l
$(OPAL_BASE
)$(LIB_TYPE
) $(LDLIBS
)
136 STDCCFLAGS
+= -I
$(OPAL_INCDIR
)
138 ifeq ($(HAS_LIBSRTP
), 1)
139 ENDLDLIBS
:= -lsrtp
$(ENDLDLIBS
)
142 ifeq ($(OPAL_SYSTEM_SPEEX
), 1)
143 ENDLDLIBS
:= -lspeex
$(ENDLDLIBS
)
146 $(TARGET
) : $(OPAL_LIBDIR
)/$(OPAL_FILE
)
148 ifndef LIBRARY_MAKEFILE
151 $(OPAL_LIBDIR
)/$(OPAL_FILE
):
152 $(MAKE
) -C
$(OPALDIR
) debug
154 $(OPAL_LIBDIR
)/$(OPAL_FILE
):
155 $(MAKE
) -C
$(OPALDIR
) opt
158 libs
:: $(OPAL_LIBDIR
)/$(OPAL_FILE
)