OSDN Git Service

Add MS7619SE
[uclinux-h8/uClinux-dist.git] / lib / libopenh323 / openh323u.mak.in
1 #
2 # openh323u.mak
3 #
4 # Make symbols include file for Open H323 library
5 #
6 # Copyright (c) 1998-2000 Equivalence Pty. Ltd.
7 #
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/
12 #
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.
17 #
18 # The Original Code is Open H323 library.
19 #
20 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
21 #
22 # Contributor(s): ______________________________________.
23 #
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
27 #
28 # Revision 1.14  2005/01/03 06:25:51  csoutheren
29 # Added extensive support for disabling code modules at compile time
30 #
31 # Revision 1.13  2004/12/08 05:16:13  csoutheren
32 # Fixed OSP compilation on Linux
33 #
34 # Revision 1.12  2004/06/10 13:16:30  csoutheren
35 # Added configure option to remove ASN tracing
36 #
37 # Revision 1.11  2004/05/12 13:39:34  csoutheren
38 # Added support for --disable-video and --disable-audio
39 #
40 # Revision 1.10  2004/04/22 22:34:59  csoutheren
41 # Fixed mispelling of Guilhem Tardy - my apologies to him
42 #
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.
46 #
47 # Revision 1.8  2004/04/14 11:40:04  csoutheren
48 # Updated to detect system GSM library
49 #
50 # Revision 1.7  2004/02/26 12:08:55  csoutheren
51 # Fixed various problems thanks to Klaus Kaempf
52 #
53 # Revision 1.6  2004/01/30 01:45:30  csoutheren
54 # Moved some compiler flags to include files
55 #
56 # Revision 1.5  2004/01/02 01:23:13  csoutheren
57 # More changes to allow correct autodetection of local Speex libraries
58 #
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
63 #
64 # Revision 1.3  2003/08/04 00:03:09  dereksmithies
65 # Get it to correctly handle tests for H263
66 #
67 # Revision 1.2  2003/07/26 03:55:31  dereksmithies
68 # Upates for Vic H263 codec
69 #
70 # Revision 1.1  2003/05/14 19:52:44  csoutheren
71 # Initial version
72 #
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.
76 #
77 # Revision 1.44  2003/01/06 22:05:42  rogerh
78 # Make sure NetBSD sets HAS_OSS
79 #
80 # Revision 1.43  2003/01/06 21:21:31  rogerh
81 # Set HAS_OSS on more platforms
82 #
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.
87 #
88 # Revision 1.41  2002/11/22 10:56:41  robertj
89 # Added PREFIX variable to move the include directory, required by packagers.
90 #
91 # Revision 1.40  2002/11/05 02:18:03  robertj
92 # Changed default for speex codec to be included.
93 #
94 # Revision 1.39  2002/11/04 00:37:14  dereks
95 # Disable usage of speex codec when NO_SPEEX define is set.
96 #
97 # Revision 1.38  2002/10/22 08:59:42  rogerh
98 # Use the imported Speex library
99 #
100 # Revision 1.37  2002/10/09 12:58:00  rogerh
101 # Look for Speex include file in SYSINCDIR. Submitted by Huib Kleinhout.
102 #
103 # Revision 1.36  2002/09/23 07:41:29  robertj
104 # Fixed so builds pwlib before openh323 when go make optlibs
105 #
106 # Revision 1.35  2002/08/14 04:26:00  craigs
107 # Fixed Speex library problem
108 #
109 # Revision 1.34  2002/08/14 02:41:08  robertj
110 # Fixed previous patch, missing parenthesis
111 #
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.
115 #
116 # Revision 1.32  2002/08/13 14:24:51  craigs
117 # Added Speex codec detection
118 #
119 # Revision 1.31  2002/08/05 12:00:18  robertj
120 # Changed symbol for building library dependent on OpenH323 to be a more
121 #   a general name.
122 #
123 # Revision 1.30  2002/08/05 07:01:25  robertj
124 # Fixed double inclusion of common.mak
125 #
126 # Revision 1.29  2002/04/18 05:14:10  robertj
127 # Changed /usr/include to SYSINCDIR helps with X-compiling, thanks Bob Lindell
128 #
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)
132 #
133 # Revision 1.27  2001/11/27 22:48:40  robertj
134 # Changed to make system to better support non-shared library building.
135 #
136 # Revision 1.26  2001/10/09 09:05:24  robertj
137 # Added LIBDIRS variable so can go "make libs" to build openh323 & pwlib
138 #
139 # Revision 1.25  2001/10/05 03:28:18  robertj
140 # Fixed the inclusion of VPB support if can find the library somewhere.
141 #
142 # Revision 1.24  2001/09/11 08:33:05  robertj
143 # Prevented inclusion of xJack if cross compiling to Nucleus, thanks Nick Hoath
144 #
145 # Revision 1.23  2001/09/11 01:24:36  robertj
146 # Added conditional compilation to remove video and/or audio codecs.
147 #
148 # Revision 1.22  2001/05/16 07:35:10  robertj
149 # New minor version
150 #
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
153 #
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
156 #
157 # Revision 1.19  2001/02/10 04:01:50  robertj
158 # Fixed build system so application can be built NOTRACE to separate directory.
159 #
160 # Revision 1.18  2001/02/09 04:44:37  craigs
161 # Added ability create a NOTRACE version of an exectuable with seperate
162 # libraries
163 #
164 # Revision 1.17  2000/10/30 00:23:56  robertj
165 # Added auto inclusion of ptlib make rules
166 #
167
168 PWLIBDIR        = @PWLIBDIR@
169 OPENH323DIR     = @OPENH323DIR@
170 STDCCFLAGS      += @STDCCFLAGS@
171 LDFLAGS         += @LDFLAGS@
172 LDLIBS          += @LDLIBS@
173 ENDLDLIBS       := @ENDLDLIBS@ $(ENDLDLIBS)
174
175 H323_AVCODEC         = @H323_AVCODEC@
176 H323_VICH263         = @H323_VICH263@
177 H323_RFC2190_AVCODEC = @H323_RFC2190_AVCODEC@
178 NOAUDIOCODECS        = @NOAUDIOCODECS@
179 NOVIDEO              = @NOVIDEO@
180 NOTRACE              = @NOTRACE@
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@
189
190 ifdef LIBRARY_MAKEFILE
191 include $(PWLIBDIR)/make/unix.mak
192 else
193 ifeq ($(NOTRACE), 1)
194 OBJDIR_SUFFIX := n
195 endif # NOTRACE
196 include $(PWLIBDIR)/make/ptlib.mak
197 endif # LIBRARY_MAKEFILE
198
199 LIBDIRS += $(OPENH323DIR)
200
201 #OH323_SUPPRESS_H235    = 1
202
203 OH323_SRCDIR = $(OPENH323DIR)/src
204 ifdef PREFIX
205 OH323_INCDIR = $(PREFIX)/include/openh323
206 else
207 OH323_INCDIR = $(OPENH323DIR)/include
208 endif # PREFIX
209
210 ifndef OH323_LIBDIR
211 OH323_LIBDIR = $(OPENH323DIR)/lib
212 endif # OH323_LIBDIR
213
214 ifeq ($(NOTRACE), 1)
215 STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
216 OH323_SUFFIX = n
217 else
218 STDCCFLAGS += -DPTRACING
219 RCFLAGS    += -DPTRACING
220 OH323_SUFFIX = $(OBJ_SUFFIX)
221 endif # NOTRACE
222
223 OH323_BASE  = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE)
224 OH323_FILE  = lib$(OH323_BASE).$(LIB_SUFFIX)
225
226 LDFLAGS     += -L$(OH323_LIBDIR)
227 LDLIBS      := -l$(OH323_BASE) $(LDLIBS)
228
229 STDCCFLAGS  += -I$(OH323_INCDIR)
230
231 ifeq ($(H323_SYSTEM_SPEEX),1)
232 ENDLDLIBS    := -lspeex $(ENDLDLIBS) 
233 endif
234
235 ifdef   OH323_SUPPRESS_H235
236 STDCCFLAGS  += -DOH323_SUPPRESS_H235
237 endif
238
239 #Allow disabling of speex codec
240 ifdef NO_SPEEX
241 STDCCFLAGS += -DNO_SPEEX
242 endif
243
244 VPB_LIB := vpb
245 ifneq (,$(wildcard $(SYSLIBDIR)/lib$(VPB_LIB).a))
246 VPB_LIB_PATH=$(SYSLIBDIR)
247 else
248 ifneq (,$(wildcard /usr/local/lib/lib$(VPB_LIB).a))
249 VPB_LIB_PATH=/usr/local/lib
250 else
251 ifeq ($(OSTYPE),linux)
252 ifneq (,$(wildcard $(OH323_SRCDIR)/lib$(VPB_LIB).a))
253 VPB_LIB_PATH=$(OH323_SRCDIR)
254 else
255 ifneq (,$(wildcard ./lib$(VPB_LIB).a))
256 VPB_LIB_PATH=.
257 endif # current directory
258 endif # openhrer/src
259 endif # linux
260 endif # /usr/local/lib
261 endif # /usr/lib
262
263 ifdef VPB_LIB_PATH
264 HAS_VPB    := 1
265 STDCCFLAGS += -DHAS_VPB
266 LDFLAGS    += -L$(VPB_LIB_PATH)
267 LDLIBS     += -l$(VPB_LIB)
268 endif # VPB_LIB_PATH
269
270
271 ifdef H323_VICH263
272 LDFLAGS    += -L/usr/local/lib
273 LDLIBS     += -lvich263
274 endif # H323_VICH263
275
276 $(TARGET) :     $(OH323_LIBDIR)/$(OH323_FILE)
277
278 ifndef LIBRARY_MAKEFILE
279 ifdef DEBUG
280 $(OH323_LIBDIR)/$(OH323_FILE):
281         $(MAKE) -C $(OH323_SRCDIR) debug
282 else
283 $(OH323_LIBDIR)/$(OH323_FILE):
284         $(MAKE) -C $(OH323_SRCDIR) opt
285 endif # DEBUG
286 endif # LIBRARY_MAKEFILE
287
288 # End of file
289