4 # Make symbols include file for Open H323 library
6 # Copyright (c) 1998-2000 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 H323 library.
20 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
22 # Contributor(s): ______________________________________.
24 # $Log: openh323u.mak.in,v $
25 # Revision 1.15 2006/05/30 11:09:24 hfriederich
26 # Allow to enable/disable H.460 in configure
28 # Revision 1.14 2005/01/03 06:25:51 csoutheren
29 # Added extensive support for disabling code modules at compile time
31 # Revision 1.13 2004/12/08 05:16:13 csoutheren
32 # Fixed OSP compilation on Linux
34 # Revision 1.12 2004/06/10 13:16:30 csoutheren
35 # Added configure option to remove ASN tracing
37 # Revision 1.11 2004/05/12 13:39:34 csoutheren
38 # Added support for --disable-video and --disable-audio
40 # Revision 1.10 2004/04/22 22:34:59 csoutheren
41 # Fixed mispelling of Guilhem Tardy - my apologies to him
43 # Revision 1.9 2004/04/22 14:22:19 csoutheren
44 # Added RFC 2190 H.263 code as created by Guilhem Tardy and AliceStreet
45 # Many thanks to them for their contributions.
47 # Revision 1.8 2004/04/14 11:40:04 csoutheren
48 # Updated to detect system GSM library
50 # Revision 1.7 2004/02/26 12:08:55 csoutheren
51 # Fixed various problems thanks to Klaus Kaempf
53 # Revision 1.6 2004/01/30 01:45:30 csoutheren
54 # Moved some compiler flags to include files
56 # Revision 1.5 2004/01/02 01:23:13 csoutheren
57 # More changes to allow correct autodetection of local Speex libraries
59 # Revision 1.4 2003/12/29 12:13:27 csoutheren
60 # configure now checks for libspeex in system libraries and compares
61 # version against version in local sources. Also use --enable-localspeex to
62 # force use of local Speex or system Speex
64 # Revision 1.3 2003/08/04 00:03:09 dereksmithies
65 # Get it to correctly handle tests for H263
67 # Revision 1.2 2003/07/26 03:55:31 dereksmithies
68 # Upates for Vic H263 codec
70 # Revision 1.1 2003/05/14 19:52:44 csoutheren
73 # Revision 1.45 2003/04/16 04:26:57 dereks
74 # Initial release of h263 codec, which utilises the ffmpeg library.
75 # Thanks to Guilhem Tardy, and to AliceStreet.
77 # Revision 1.44 2003/01/06 22:05:42 rogerh
78 # Make sure NetBSD sets HAS_OSS
80 # Revision 1.43 2003/01/06 21:21:31 rogerh
81 # Set HAS_OSS on more platforms
83 # Revision 1.42 2002/11/26 10:24:54 rogerh
84 # Move CU30 test here.
85 # Add new target 'ccflags' which prints the STDCCFLAGS used by pwlib and
86 # openh323. This is handy for 3rd party applications.
88 # Revision 1.41 2002/11/22 10:56:41 robertj
89 # Added PREFIX variable to move the include directory, required by packagers.
91 # Revision 1.40 2002/11/05 02:18:03 robertj
92 # Changed default for speex codec to be included.
94 # Revision 1.39 2002/11/04 00:37:14 dereks
95 # Disable usage of speex codec when NO_SPEEX define is set.
97 # Revision 1.38 2002/10/22 08:59:42 rogerh
98 # Use the imported Speex library
100 # Revision 1.37 2002/10/09 12:58:00 rogerh
101 # Look for Speex include file in SYSINCDIR. Submitted by Huib Kleinhout.
103 # Revision 1.36 2002/09/23 07:41:29 robertj
104 # Fixed so builds pwlib before openh323 when go make optlibs
106 # Revision 1.35 2002/08/14 04:26:00 craigs
107 # Fixed Speex library problem
109 # Revision 1.34 2002/08/14 02:41:08 robertj
110 # Fixed previous patch, missing parenthesis
112 # Revision 1.33 2002/08/14 02:28:17 robertj
113 # Added search order for pwlib directory, look in parent to openh323 directory
114 # first, then users home directory, then /usr/local.
116 # Revision 1.32 2002/08/13 14:24:51 craigs
117 # Added Speex codec detection
119 # Revision 1.31 2002/08/05 12:00:18 robertj
120 # Changed symbol for building library dependent on OpenH323 to be a more
123 # Revision 1.30 2002/08/05 07:01:25 robertj
124 # Fixed double inclusion of common.mak
126 # Revision 1.29 2002/04/18 05:14:10 robertj
127 # Changed /usr/include to SYSINCDIR helps with X-compiling, thanks Bob Lindell
129 # Revision 1.28 2002/01/14 15:38:09 rogerh
130 # Look for telephony.h in /usr/local/include/sys (which is where the
131 # FreeBSD Ports Tree copy of the ixj driver puts the header files)
133 # Revision 1.27 2001/11/27 22:48:40 robertj
134 # Changed to make system to better support non-shared library building.
136 # Revision 1.26 2001/10/09 09:05:24 robertj
137 # Added LIBDIRS variable so can go "make libs" to build openh323 & pwlib
139 # Revision 1.25 2001/10/05 03:28:18 robertj
140 # Fixed the inclusion of VPB support if can find the library somewhere.
142 # Revision 1.24 2001/09/11 08:33:05 robertj
143 # Prevented inclusion of xJack if cross compiling to Nucleus, thanks Nick Hoath
145 # Revision 1.23 2001/09/11 01:24:36 robertj
146 # Added conditional compilation to remove video and/or audio codecs.
148 # Revision 1.22 2001/05/16 07:35:10 robertj
151 # Revision 1.21 2001/05/03 01:43:55 rogerh
152 # There is no need to test for X11 as the openh323 library does not use it
154 # Revision 1.20 2001/03/15 11:29:52 rogerh
155 # use NO_XWINDOWS=1 to compile without X11 support on systems with X11 installed
157 # Revision 1.19 2001/02/10 04:01:50 robertj
158 # Fixed build system so application can be built NOTRACE to separate directory.
160 # Revision 1.18 2001/02/09 04:44:37 craigs
161 # Added ability create a NOTRACE version of an exectuable with seperate
164 # Revision 1.17 2000/10/30 00:23:56 robertj
165 # Added auto inclusion of ptlib make rules
168 PWLIBDIR = @PWLIBDIR@
169 OPENH323DIR = @OPENH323DIR@
170 STDCCFLAGS += @STDCCFLAGS@
173 ENDLDLIBS := @ENDLDLIBS@ $(ENDLDLIBS)
175 H323_AVCODEC = @H323_AVCODEC@
176 H323_VICH263 = @H323_VICH263@
177 H323_RFC2190_AVCODEC = @H323_RFC2190_AVCODEC@
178 NOAUDIOCODECS = @NOAUDIOCODECS@
181 H323_TRANSNEXUS_OSP = @H323_TRANSNEXUS_OSP@
182 H323_T38 = @H323_T38@
183 H323_T120 = @H323_T120@
184 H323_H248 = @H323_H248@
185 H323_H450 = @H323_H450@
186 H323_H460 = @H323_H460@
187 H323_H501 = @H323_H501@
188 H323_IXJ = @H323_IXJ@
190 ifdef LIBRARY_MAKEFILE
191 include $(PWLIBDIR)/make/unix.mak
196 include $(PWLIBDIR)/make/ptlib.mak
197 endif # LIBRARY_MAKEFILE
199 LIBDIRS += $(OPENH323DIR)
201 #OH323_SUPPRESS_H235 = 1
203 OH323_SRCDIR = $(OPENH323DIR)/src
205 OH323_INCDIR = $(PREFIX)/include/openh323
207 OH323_INCDIR = $(OPENH323DIR)/include
211 OH323_LIBDIR = $(OPENH323DIR)/lib
215 STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
218 STDCCFLAGS += -DPTRACING
219 RCFLAGS += -DPTRACING
220 OH323_SUFFIX = $(OBJ_SUFFIX)
223 OH323_BASE = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE)
224 OH323_FILE = lib$(OH323_BASE).$(LIB_SUFFIX)
226 LDFLAGS += -L$(OH323_LIBDIR)
227 LDLIBS := -l$(OH323_BASE) $(LDLIBS)
229 STDCCFLAGS += -I$(OH323_INCDIR)
231 ifeq ($(H323_SYSTEM_SPEEX),1)
232 ENDLDLIBS := -lspeex $(ENDLDLIBS)
235 ifdef OH323_SUPPRESS_H235
236 STDCCFLAGS += -DOH323_SUPPRESS_H235
239 #Allow disabling of speex codec
241 STDCCFLAGS += -DNO_SPEEX
245 ifneq (,$(wildcard $(SYSLIBDIR)/lib$(VPB_LIB).a))
246 VPB_LIB_PATH=$(SYSLIBDIR)
248 ifneq (,$(wildcard /usr/local/lib/lib$(VPB_LIB).a))
249 VPB_LIB_PATH=/usr/local/lib
251 ifeq ($(OSTYPE),linux)
252 ifneq (,$(wildcard $(OH323_SRCDIR)/lib$(VPB_LIB).a))
253 VPB_LIB_PATH=$(OH323_SRCDIR)
255 ifneq (,$(wildcard ./lib$(VPB_LIB).a))
257 endif # current directory
260 endif # /usr/local/lib
265 STDCCFLAGS += -DHAS_VPB
266 LDFLAGS += -L$(VPB_LIB_PATH)
267 LDLIBS += -l$(VPB_LIB)
272 LDFLAGS += -L/usr/local/lib
276 $(TARGET) : $(OH323_LIBDIR)/$(OH323_FILE)
278 ifndef LIBRARY_MAKEFILE
280 $(OH323_LIBDIR)/$(OH323_FILE):
281 $(MAKE) -C $(OH323_SRCDIR) debug
283 $(OH323_LIBDIR)/$(OH323_FILE):
284 $(MAKE) -C $(OH323_SRCDIR) opt
286 endif # LIBRARY_MAKEFILE