Utilise new MergeSym feature to no longer overwrite the source .DEF file when buildin...
[openh323.git] / openh323u.mak.in
blob5f43e0304d73a5e9cce7b23424a380f0a76d6389
2 # openh323u.mak
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
16 # under the License.
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$
25 # Revision 1.17 2006/06/23 07:06:03 csoutheren
26 # Fixed linux compile
28 # Revision 1.16 2006/06/23 03:18:22 shorne
29 # Backport FECC (H.224) from Opal
31 # Revision 1.15 2006/05/30 11:09:24 hfriederich
32 # Allow to enable/disable H.460 in configure
34 # Revision 1.14 2005/01/03 06:25:51 csoutheren
35 # Added extensive support for disabling code modules at compile time
37 # Revision 1.13 2004/12/08 05:16:13 csoutheren
38 # Fixed OSP compilation on Linux
40 # Revision 1.12 2004/06/10 13:16:30 csoutheren
41 # Added configure option to remove ASN tracing
43 # Revision 1.11 2004/05/12 13:39:34 csoutheren
44 # Added support for --disable-video and --disable-audio
46 # Revision 1.10 2004/04/22 22:34:59 csoutheren
47 # Fixed mispelling of Guilhem Tardy - my apologies to him
49 # Revision 1.9 2004/04/22 14:22:19 csoutheren
50 # Added RFC 2190 H.263 code as created by Guilhem Tardy and AliceStreet
51 # Many thanks to them for their contributions.
53 # Revision 1.8 2004/04/14 11:40:04 csoutheren
54 # Updated to detect system GSM library
56 # Revision 1.7 2004/02/26 12:08:55 csoutheren
57 # Fixed various problems thanks to Klaus Kaempf
59 # Revision 1.6 2004/01/30 01:45:30 csoutheren
60 # Moved some compiler flags to include files
62 # Revision 1.5 2004/01/02 01:23:13 csoutheren
63 # More changes to allow correct autodetection of local Speex libraries
65 # Revision 1.4 2003/12/29 12:13:27 csoutheren
66 # configure now checks for libspeex in system libraries and compares
67 # version against version in local sources. Also use --enable-localspeex to
68 # force use of local Speex or system Speex
70 # Revision 1.3 2003/08/04 00:03:09 dereksmithies
71 # Get it to correctly handle tests for H263
73 # Revision 1.2 2003/07/26 03:55:31 dereksmithies
74 # Upates for Vic H263 codec
76 # Revision 1.1 2003/05/14 19:52:44 csoutheren
77 # Initial version
79 # Revision 1.45 2003/04/16 04:26:57 dereks
80 # Initial release of h263 codec, which utilises the ffmpeg library.
81 # Thanks to Guilhem Tardy, and to AliceStreet.
83 # Revision 1.44 2003/01/06 22:05:42 rogerh
84 # Make sure NetBSD sets HAS_OSS
86 # Revision 1.43 2003/01/06 21:21:31 rogerh
87 # Set HAS_OSS on more platforms
89 # Revision 1.42 2002/11/26 10:24:54 rogerh
90 # Move CU30 test here.
91 # Add new target 'ccflags' which prints the STDCCFLAGS used by pwlib and
92 # openh323. This is handy for 3rd party applications.
94 # Revision 1.41 2002/11/22 10:56:41 robertj
95 # Added PREFIX variable to move the include directory, required by packagers.
97 # Revision 1.40 2002/11/05 02:18:03 robertj
98 # Changed default for speex codec to be included.
100 # Revision 1.39 2002/11/04 00:37:14 dereks
101 # Disable usage of speex codec when NO_SPEEX define is set.
103 # Revision 1.38 2002/10/22 08:59:42 rogerh
104 # Use the imported Speex library
106 # Revision 1.37 2002/10/09 12:58:00 rogerh
107 # Look for Speex include file in SYSINCDIR. Submitted by Huib Kleinhout.
109 # Revision 1.36 2002/09/23 07:41:29 robertj
110 # Fixed so builds pwlib before openh323 when go make optlibs
112 # Revision 1.35 2002/08/14 04:26:00 craigs
113 # Fixed Speex library problem
115 # Revision 1.34 2002/08/14 02:41:08 robertj
116 # Fixed previous patch, missing parenthesis
118 # Revision 1.33 2002/08/14 02:28:17 robertj
119 # Added search order for pwlib directory, look in parent to openh323 directory
120 # first, then users home directory, then /usr/local.
122 # Revision 1.32 2002/08/13 14:24:51 craigs
123 # Added Speex codec detection
125 # Revision 1.31 2002/08/05 12:00:18 robertj
126 # Changed symbol for building library dependent on OpenH323 to be a more
127 # a general name.
129 # Revision 1.30 2002/08/05 07:01:25 robertj
130 # Fixed double inclusion of common.mak
132 # Revision 1.29 2002/04/18 05:14:10 robertj
133 # Changed /usr/include to SYSINCDIR helps with X-compiling, thanks Bob Lindell
135 # Revision 1.28 2002/01/14 15:38:09 rogerh
136 # Look for telephony.h in /usr/local/include/sys (which is where the
137 # FreeBSD Ports Tree copy of the ixj driver puts the header files)
139 # Revision 1.27 2001/11/27 22:48:40 robertj
140 # Changed to make system to better support non-shared library building.
142 # Revision 1.26 2001/10/09 09:05:24 robertj
143 # Added LIBDIRS variable so can go "make libs" to build openh323 & pwlib
145 # Revision 1.25 2001/10/05 03:28:18 robertj
146 # Fixed the inclusion of VPB support if can find the library somewhere.
148 # Revision 1.24 2001/09/11 08:33:05 robertj
149 # Prevented inclusion of xJack if cross compiling to Nucleus, thanks Nick Hoath
151 # Revision 1.23 2001/09/11 01:24:36 robertj
152 # Added conditional compilation to remove video and/or audio codecs.
154 # Revision 1.22 2001/05/16 07:35:10 robertj
155 # New minor version
157 # Revision 1.21 2001/05/03 01:43:55 rogerh
158 # There is no need to test for X11 as the openh323 library does not use it
160 # Revision 1.20 2001/03/15 11:29:52 rogerh
161 # use NO_XWINDOWS=1 to compile without X11 support on systems with X11 installed
163 # Revision 1.19 2001/02/10 04:01:50 robertj
164 # Fixed build system so application can be built NOTRACE to separate directory.
166 # Revision 1.18 2001/02/09 04:44:37 craigs
167 # Added ability create a NOTRACE version of an exectuable with seperate
168 # libraries
170 # Revision 1.17 2000/10/30 00:23:56 robertj
171 # Added auto inclusion of ptlib make rules
174 PWLIBDIR = @PWLIBDIR@
175 OPENH323DIR = @OPENH323DIR@
176 STDCCFLAGS += @STDCCFLAGS@
177 LDFLAGS += @LDFLAGS@
178 LDLIBS += @LDLIBS@
179 ENDLDLIBS := @ENDLDLIBS@ $(ENDLDLIBS)
181 H323_AVCODEC = @H323_AVCODEC@
182 H323_VICH263 = @H323_VICH263@
183 H323_RFC2190_AVCODEC = @H323_RFC2190_AVCODEC@
184 NOAUDIOCODECS = @NOAUDIOCODECS@
185 NOVIDEO = @NOVIDEO@
186 NOTRACE = @NOTRACE@
187 H323_TRANSNEXUS_OSP = @H323_TRANSNEXUS_OSP@
188 H323_T38 = @H323_T38@
189 H323_T120 = @H323_T120@
190 H323_H248 = @H323_H248@
191 H323_H450 = @H323_H450@
192 H323_H460 = @H323_H460@
193 H323_H501 = @H323_H501@
194 H323_IXJ = @H323_IXJ@
195 H323_VPB = @H323_VPB@
196 OPAL_H224 = @OPAL_H224@
198 ifdef LIBRARY_MAKEFILE
199 include $(PWLIBDIR)/make/unix.mak
200 else
201 ifeq ($(NOTRACE), 1)
202 OBJDIR_SUFFIX := n
203 endif # NOTRACE
204 include $(PWLIBDIR)/make/ptlib.mak
205 endif # LIBRARY_MAKEFILE
207 LIBDIRS += $(OPENH323DIR)
209 #OH323_SUPPRESS_H235 = 1
211 OH323_SRCDIR = $(OPENH323DIR)/src
212 ifdef PREFIX
213 OH323_INCDIR = $(PREFIX)/include/openh323
214 else
215 OH323_INCDIR = $(OPENH323DIR)/include
216 endif # PREFIX
218 ifndef OH323_LIBDIR
219 OH323_LIBDIR = $(OPENH323DIR)/lib
220 endif # OH323_LIBDIR
222 ifeq ($(NOTRACE), 1)
223 STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
224 OH323_SUFFIX = n
225 else
226 STDCCFLAGS += -DPTRACING
227 RCFLAGS += -DPTRACING
228 OH323_SUFFIX = $(OBJ_SUFFIX)
229 endif # NOTRACE
231 OH323_BASE = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE)
232 OH323_FILE = lib$(OH323_BASE).$(LIB_SUFFIX)
234 LDFLAGS += -L$(OH323_LIBDIR)
235 LDLIBS := -l$(OH323_BASE) $(LDLIBS)
237 STDCCFLAGS += -I$(OH323_INCDIR)
239 ifeq ($(H323_SYSTEM_SPEEX),1)
240 ENDLDLIBS := -lspeex $(ENDLDLIBS)
241 endif
243 ifdef OH323_SUPPRESS_H235
244 STDCCFLAGS += -DOH323_SUPPRESS_H235
245 endif
247 #Allow disabling of speex codec
248 ifdef NO_SPEEX
249 STDCCFLAGS += -DNO_SPEEX
250 endif
252 ifeq ($(H323_VPB),1)
253 LDLIBS += -lvpb
254 endif
256 ifdef H323_VICH263
257 LDFLAGS += -L/usr/local/lib
258 LDLIBS += -lvich263
259 endif # H323_VICH263
261 $(TARGET) : $(OH323_LIBDIR)/$(OH323_FILE)
263 ifndef LIBRARY_MAKEFILE
264 ifdef DEBUG
265 $(OH323_LIBDIR)/$(OH323_FILE):
266 $(MAKE) -C $(OH323_SRCDIR) debug
267 else
268 $(OH323_LIBDIR)/$(OH323_FILE):
269 $(MAKE) -C $(OH323_SRCDIR) opt
270 endif # DEBUG
271 endif # LIBRARY_MAKEFILE
273 # End of file