home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / openh323.tar.gz / openh323.tar / openh323 / openh323u.mak.in < prev    next >
Text File  |  2003-08-03  |  7KB  |  297 lines

  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.3  2003/08/04 00:03:09  dereksmithies
  26. # Get it to correctly handle tests for H263
  27. #
  28. # Revision 1.2  2003/07/26 03:55:31  dereksmithies
  29. # Upates for Vic H263 codec
  30. #
  31. # Revision 1.1  2003/05/14 19:52:44  csoutheren
  32. # Initial version
  33. #
  34. # Revision 1.45  2003/04/16 04:26:57  dereks
  35. # Initial release of h263 codec, which utilises the ffmpeg library.
  36. # Thanks to Guilhem Tardy, and to AliceStreet.
  37. #
  38. # Revision 1.44  2003/01/06 22:05:42  rogerh
  39. # Make sure NetBSD sets HAS_OSS
  40. #
  41. # Revision 1.43  2003/01/06 21:21:31  rogerh
  42. # Set HAS_OSS on more platforms
  43. #
  44. # Revision 1.42  2002/11/26 10:24:54  rogerh
  45. # Move CU30 test here.
  46. # Add new target 'ccflags' which prints the STDCCFLAGS used by pwlib and
  47. # openh323. This is handy for 3rd party applications.
  48. #
  49. # Revision 1.41  2002/11/22 10:56:41  robertj
  50. # Added PREFIX variable to move the include directory, required by packagers.
  51. #
  52. # Revision 1.40  2002/11/05 02:18:03  robertj
  53. # Changed default for speex codec to be included.
  54. #
  55. # Revision 1.39  2002/11/04 00:37:14  dereks
  56. # Disable usage of speex codec when NO_SPEEX define is set.
  57. #
  58. # Revision 1.38  2002/10/22 08:59:42  rogerh
  59. # Use the imported Speex library
  60. #
  61. # Revision 1.37  2002/10/09 12:58:00  rogerh
  62. # Look for Speex include file in SYSINCDIR. Submitted by Huib Kleinhout.
  63. #
  64. # Revision 1.36  2002/09/23 07:41:29  robertj
  65. # Fixed so builds pwlib before openh323 when go make optlibs
  66. #
  67. # Revision 1.35  2002/08/14 04:26:00  craigs
  68. # Fixed Speex library problem
  69. #
  70. # Revision 1.34  2002/08/14 02:41:08  robertj
  71. # Fixed previous patch, missing parenthesis
  72. #
  73. # Revision 1.33  2002/08/14 02:28:17  robertj
  74. # Added search order for pwlib directory, look in parent to openh323 directory
  75. #   first, then users home directory, then /usr/local.
  76. #
  77. # Revision 1.32  2002/08/13 14:24:51  craigs
  78. # Added Speex codec detection
  79. #
  80. # Revision 1.31  2002/08/05 12:00:18  robertj
  81. # Changed symbol for building library dependent on OpenH323 to be a more
  82. #   a general name.
  83. #
  84. # Revision 1.30  2002/08/05 07:01:25  robertj
  85. # Fixed double inclusion of common.mak
  86. #
  87. # Revision 1.29  2002/04/18 05:14:10  robertj
  88. # Changed /usr/include to SYSINCDIR helps with X-compiling, thanks Bob Lindell
  89. #
  90. # Revision 1.28  2002/01/14 15:38:09  rogerh
  91. # Look for telephony.h in /usr/local/include/sys (which is where the
  92. # FreeBSD Ports Tree copy of the ixj driver puts the header files)
  93. #
  94. # Revision 1.27  2001/11/27 22:48:40  robertj
  95. # Changed to make system to better support non-shared library building.
  96. #
  97. # Revision 1.26  2001/10/09 09:05:24  robertj
  98. # Added LIBDIRS variable so can go "make libs" to build openh323 & pwlib
  99. #
  100. # Revision 1.25  2001/10/05 03:28:18  robertj
  101. # Fixed the inclusion of VPB support if can find the library somewhere.
  102. #
  103. # Revision 1.24  2001/09/11 08:33:05  robertj
  104. # Prevented inclusion of xJack if cross compiling to Nucleus, thanks Nick Hoath
  105. #
  106. # Revision 1.23  2001/09/11 01:24:36  robertj
  107. # Added conditional compilation to remove video and/or audio codecs.
  108. #
  109. # Revision 1.22  2001/05/16 07:35:10  robertj
  110. # New minor version
  111. #
  112. # Revision 1.21  2001/05/03 01:43:55  rogerh
  113. # There is no need to test for X11 as the openh323 library does not use it
  114. #
  115. # Revision 1.20  2001/03/15 11:29:52  rogerh
  116. # use NO_XWINDOWS=1 to compile without X11 support on systems with X11 installed
  117. #
  118. # Revision 1.19  2001/02/10 04:01:50  robertj
  119. # Fixed build system so application can be built NOTRACE to separate directory.
  120. #
  121. # Revision 1.18  2001/02/09 04:44:37  craigs
  122. # Added ability create a NOTRACE version of an exectuable with seperate
  123. # libraries
  124. #
  125. # Revision 1.17  2000/10/30 00:23:56  robertj
  126. # Added auto inclusion of ptlib make rules
  127. #
  128.  
  129. PWLIBDIR    = @PWLIBDIR@
  130. STDCCFLAGS    += @STDCCFLAGS@
  131. LDFLAGS        += @LDFLAGS@
  132. ENDLDLIBS    := @ENDLDLIBS@ $(ENDLDLIBS)
  133. H323_AVCODEC    = @H323_AVCODEC@
  134. H323_VICH263    = @H323_VICH263@      
  135.  
  136. ifdef LIBRARY_MAKEFILE
  137. include $(PWLIBDIR)/make/unix.mak
  138. else
  139. ifdef NOTRACE
  140. OBJDIR_SUFFIX := n
  141. endif
  142. include $(PWLIBDIR)/make/ptlib.mak
  143. endif
  144.  
  145.  
  146. LIBDIRS += $(OPENH323DIR)
  147.  
  148. #OH323_SUPPRESS_H235    = 1
  149.  
  150.  
  151. OH323_SRCDIR = $(OPENH323DIR)/src
  152. ifdef PREFIX
  153. OH323_INCDIR = $(PREFIX)/include/openh323
  154. else
  155. OH323_INCDIR = $(OPENH323DIR)/include
  156. endif
  157. OH323_LIBDIR = $(OPENH323DIR)/lib
  158.  
  159.  
  160. ifdef NOTRACE
  161. STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
  162. OH323_SUFFIX = n
  163. else
  164. STDCCFLAGS += -DPTRACING
  165. RCFLAGS       += -DPTRACING
  166. OH323_SUFFIX = $(OBJ_SUFFIX)
  167. endif
  168.  
  169. ifdef NOAUDIOCODECS
  170. STDCCFLAGS += -DNO_H323_AUDIO_CODECS
  171. endif
  172.  
  173. ifdef NOVIDEO
  174. STDCCFLAGS += -DNO_H323_VIDEO
  175. endif
  176.  
  177.  
  178.  
  179. OH323_BASE  = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE)
  180. OH323_FILE  = lib$(OH323_BASE).$(LIB_SUFFIX)
  181.  
  182. LDFLAGS        += -L$(OH323_LIBDIR)
  183. LDLIBS        := -l$(OH323_BASE) $(LDLIBS)
  184.  
  185. STDCCFLAGS  += -I$(OH323_INCDIR)
  186.  
  187.  
  188. ifneq ($(OS),Nucleus)
  189.  
  190. ifdef    OH323_SUPPRESS_H235
  191. STDCCFLAGS  += -DOH323_SUPPRESS_H235
  192. endif
  193.  
  194. ifneq (,$(wildcard $(SYSINCDIR)/linux/telephony.h))
  195. HAS_IXJ        = 1
  196. STDCCFLAGS += -DHAS_IXJ
  197. endif
  198.  
  199. ifneq (,$(wildcard $(SYSINCDIR)/sys/telephony.h))
  200. HAS_IXJ        = 1
  201. STDCCFLAGS += -DHAS_IXJ
  202. endif
  203.  
  204. ifneq (,$(wildcard /usr/local/include/sys/telephony.h))
  205. HAS_IXJ        = 1
  206. STDCCFLAGS += -DHAS_IXJ -I/usr/local/include
  207. endif
  208.  
  209. #Check if we have an OSS soundcard.h
  210. ifneq (,$(wildcard $(SYSINCDIR)/linux/soundcard.h))
  211. HAS_OSS        = 1
  212. STDCCFLAGS += -DHAS_OSS
  213.  
  214. else
  215.  
  216. ifneq (,$(wildcard /usr/include/sys/soundcard.h))
  217. HAS_OSS        = 1
  218. STDCCFLAGS += -DHAS_OSS
  219.  
  220. else
  221.  
  222. ifneq (,$(wildcard /usr/include/machine/soundcard.h))
  223. HAS_OSS        = 1
  224. STDCCFLAGS += -DHAS_OSS
  225.  
  226. else
  227.  
  228. ifneq (,$(wildcard $(SYSINCDIR)/soundcard.h))
  229. HAS_OSS        = 1
  230. STDCCFLAGS += -DHAS_OSS
  231.  
  232. endif
  233. endif
  234. endif
  235. endif
  236.  
  237. #Allow disabling of speex codec
  238. ifdef NO_SPEEX
  239. STDCCFLAGS += -DNO_SPEEX
  240. endif
  241. endif # !Nucleus
  242.  
  243. ifneq (,$(wildcard /usr/local/lib/libcu30.so))
  244. #STDCCFLAGS    += -DHAS_CU30 
  245. #CU30INSTALLED = 1
  246. endif
  247.  
  248. VPB_LIB := vpb
  249. ifneq (,$(wildcard $(SYSLIBDIR)/lib$(VPB_LIB).a))
  250. VPB_LIB_PATH=$(SYSLIBDIR)
  251. else
  252. ifneq (,$(wildcard /usr/local/lib/lib$(VPB_LIB).a))
  253. VPB_LIB_PATH=/usr/local/lib
  254. else
  255. ifeq ($(OSTYPE),linux)
  256. ifneq (,$(wildcard $(OH323_SRCDIR)/lib$(VPB_LIB).a))
  257. VPB_LIB_PATH=$(OH323_SRCDIR)
  258. else
  259. ifneq (,$(wildcard ./lib$(VPB_LIB).a))
  260. VPB_LIB_PATH=.
  261. endif # current directory
  262. endif # openhrer/src
  263. endif # linux
  264. endif # /usr/local/lib
  265. endif # /usr/lib
  266.  
  267. ifdef VPB_LIB_PATH
  268. HAS_VPB    := 1
  269. STDCCFLAGS += -DHAS_VPB
  270. LDFLAGS       += -L$(VPB_LIB_PATH)
  271. LDLIBS       += -l$(VPB_LIB)
  272. endif
  273.  
  274.  
  275. ifdef H323_VICH263
  276. LDFLAGS    += -L/usr/local/lib
  277. LDLIBS     += -lvich263
  278. endif
  279.  
  280. $(TARGET) :    $(OH323_LIBDIR)/$(OH323_FILE)
  281.  
  282. ifndef LIBRARY_MAKEFILE
  283. ifdef DEBUG
  284. $(OH323_LIBDIR)/$(OH323_FILE):
  285.     $(MAKE) -C $(OH323_SRCDIR) debug
  286. else
  287. $(OH323_LIBDIR)/$(OH323_FILE):
  288.     $(MAKE) -C $(OH323_SRCDIR) opt
  289. endif
  290. endif
  291.  
  292. ccflags:
  293.     @echo $(STDCCFLAGS)
  294.  
  295. # End of file
  296.  
  297.