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 / Makefile.in < prev    next >
Makefile  |  2003-07-28  |  8KB  |  296 lines

  1. #
  2. # Makefile
  3. #
  4. # Make 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: Makefile.in,v $
  25. # Revision 1.3  2003/07/28 19:30:29  dsandras
  26. # Do not export the PREFIX as it can give problems to compile other openh323
  27. # software..
  28. #
  29. # Revision 1.2  2003/07/28 18:55:49  dsandras
  30. # Added --libdir support thanks to Alexander Larsson <alexl@redhat.com>.
  31. #
  32. # Revision 1.1  2003/05/22 12:25:38  dsandras
  33. #
  34. # Initial commit.
  35. #
  36. # Revision 1.62  2002/12/04 19:36:30  rogerh
  37. # Remove un-needed / in PREFIX
  38. #
  39. # Revision 1.61  2002/11/13 23:52:23  robertj
  40. # Added install and uninstall targets, thanks Damien Sandras
  41. #
  42. # Revision 1.60  2002/07/19 01:51:41  robertj
  43. # Fixed up directory defaults for openh323 directory.
  44. #
  45. # Revision 1.59  2002/02/11 06:20:07  robertj
  46. # Moved version.h to root directory so have one for the library and not just
  47. #   the sample application. SimpH323 uses the library version so they remain
  48. #   in sync.
  49. #
  50. # Revision 1.58  2001/11/11 23:07:52  robertj
  51. # Some clean ups after T.38 commit, thanks Adam Lazur
  52. #
  53. # Revision 1.57  2001/11/09 05:39:54  craigs
  54. # Added initial T.38 support thanks to Adam Lazur
  55. #
  56. # Revision 1.56  2001/09/14 08:57:39  robertj
  57. # Added update target to do cvs update and rebuild all
  58. #
  59. # Revision 1.55  2001/05/17 00:01:06  robertj
  60. # Fixed stupid mistake with included make file
  61. #
  62. # Revision 1.54  2001/05/16 07:43:33  robertj
  63. # Fixed location of version file
  64. #
  65. # Revision 1.53  2001/05/16 07:42:38  robertj
  66. # Changed Makefile to use common stuff, primarily so can go tagbuild
  67. #
  68. # Revision 1.52  2001/03/20 04:08:33  robertj
  69. # Major improvement to multiple targets over subdirectories, thanks Jac Goudsmit
  70. #
  71. # Revision 1.51  2000/05/18 11:53:33  robertj
  72. # Changes to support doc++ documentation generation.
  73. #
  74. # Revision 1.50  2000/05/11 02:27:52  robertj
  75. # Removed "sample" directory and added "samples/simple" for demo app.
  76. #
  77. # Revision 1.49  2000/05/02 04:32:23  robertj
  78. # Fixed copyright notice comment.
  79. #
  80. # Revision 1.48  2000/04/26 01:07:23  robertj
  81. # Removed tarfile creation target, this is done differently now.
  82. #
  83. # Revision 1.47  2000/04/06 20:10:53  craigs
  84. # Added install target
  85. #
  86. # Revision 1.46  2000/03/24 03:17:44  robertj
  87. # Directory restructuring.
  88. #
  89. # Revision 1.45  2000/03/08 00:25:09  robertj
  90. # Changed check for compile of openphone to be AND not OR.
  91. #
  92. # Revision 1.44  2000/03/03 18:04:01  craigs
  93. # Fixed problem with openphone being built when no GUI code installed
  94. #
  95. # Revision 1.43  2000/03/03 12:20:40  robertj
  96. # Fixed non fatal error in make rules and allowed for missing sample apps.
  97. #
  98. # Revision 1.42  2000/02/24 11:53:31  craigs
  99. # Fixed problem with .o files not going into correct directory
  100. #
  101. # Revision 1.41  2000/02/24 11:17:01  craigs
  102. # Fixed problem with making PW projects
  103. #
  104. # Revision 1.40  2000/02/16 12:38:31  craigs
  105. # Fixed problem with noshared targets
  106. #
  107. # Revision 1.39  2000/02/04 04:59:31  craigs
  108. # Changed for new library make system and makefile layout
  109. #
  110. # Revision 1.38  2000/02/02 04:09:12  craigs
  111. # Changed to use subdirectories
  112. #
  113. # Revision 1.35  2000/01/13 04:03:45  robertj
  114. # Added video transmission
  115. #
  116. # Revision 1.34  2000/01/04 00:22:28  craigs
  117. # Changed directory list
  118. #
  119. # Revision 1.33  1999/12/29 01:27:01  craigs
  120. # Added detection of new Linux kernel telephony code
  121. #
  122. # Revision 1.32  1999/12/24 00:27:39  robertj
  123. # Added LID abstraction and split RTP classes from H323.
  124. #
  125. # Revision 1.31  1999/12/16 05:48:36  robertj
  126. # Fixed problem with correct inclusion of ixj files under Linux.
  127. #
  128. # Revision 1.30  1999/11/19 14:01:41  craigs
  129. # Added ixjuser.h to the tarfiles
  130. #
  131. # Revision 1.29  1999/11/19 13:13:40  craigs
  132. # Changed to add CVS directories to the tarball
  133. #
  134. # Revision 1.28  1999/11/16 13:45:12  craigs
  135. # Fixed dependencies to be SMP friendly
  136. #
  137. # Revision 1.27  1999/11/12 04:51:34  craigs
  138. # Fixed problem with excluding IXJ device on Linux
  139. #
  140. # Revision 1.26  1999/11/07 03:43:38  craigs
  141. # Added conditional for ixj files for linux only
  142. #
  143. # Revision 1.25  1999/11/02 01:22:26  robertj
  144. # Added answering machine
  145. #
  146. # Revision 1.24  1999/10/24 14:43:20  robertj
  147. # Added platform independent support for Quicknet xJACK cards.
  148. #
  149. # Revision 1.23  1999/10/11 07:35:03  craigs
  150. # Added missing config.h to VIC sources macro
  151. #
  152. # Revision 1.22  1999/09/27 01:22:45  robertj
  153. # Added H.261 video support via vic code.
  154. #
  155. # Revision 1.21  1999/09/21 08:33:58  craigs
  156. # Added support for VIC video codecs
  157. #
  158. # Revision 1.20  1999/09/09 01:14:49  robertj
  159. # Added support for video capabilities & codec, still needs the actual codec itself!
  160. #
  161. # Revision 1.19  1999/09/03 14:05:19  robertj
  162. # Fixed creation of tarball
  163. #
  164. # Revision 1.18  1999/08/31 12:43:04  robertj
  165. # Added gatekeeper supprt.
  166. #
  167. # Revision 1.17  1999/08/25 07:11:54  robertj
  168. # Unix port
  169. #
  170. # Revision 1.16  1999/08/09 04:51:21  robertj
  171. # Added subdirectories to build, including dump323
  172. #
  173. # Revision 1.15  1999/07/31 04:09:11  robertj
  174. # Added ability to create binary with no tracing code in it.
  175. #
  176. # Revision 1.14  1999/07/26 09:18:28  craigs
  177. # Added README.QUICKNET file to test app
  178. #
  179. # Revision 1.13  1999/07/26 07:22:10  craigs
  180. # Added files for quicknet test apps
  181. #
  182. # Revision 1.12  1999/07/10 03:42:26  robertj
  183. # Added automatic version inclusion in tar file.
  184. #
  185. # Revision 1.11  1999/06/28 09:48:57  robertj
  186. # Fixed dependencies for GSM files
  187. #
  188. # Revision 1.10  1999/06/25 17:51:08  robertj
  189. # Fixed tarball
  190. #
  191. # Revision 1.9  1999/06/25 17:20:18  robertj
  192. # New directory structure.
  193. #
  194. # Revision 1.8  1999/06/22 14:40:19  robertj
  195. # Added GSM code.
  196. #
  197. # Revision 1.7  1999/06/14 09:09:36  robertj
  198. # Transmit channel and RTP implementation.
  199. #
  200. # Revision 1.6  1999/06/09 06:51:57  robertj
  201. # Added tracing to optimised version.
  202. #
  203. # Revision 1.5  1999/06/09 06:18:00  robertj
  204. # GCC compatibiltiy.
  205. #
  206. # Revision 1.4  1999/06/07 00:32:41  robertj
  207. # Put packet dump code back in
  208. #
  209. # Revision 1.3  1999/06/06 06:06:36  robertj
  210. # Changes for new ASN compiler and v2 protocol ASN files.
  211. #
  212. # Revision 1.2  1999/01/16 11:16:53  robertj
  213. # Fixed library name
  214. #
  215. # Revision 1.1  1999/01/16 10:32:26  robertj
  216. # Initial revision
  217. #
  218.  
  219. ifndef OPENH323DIR
  220. export OPENH323DIR=$(CURDIR)
  221. endif
  222.  
  223. all :: bothdepend both
  224.  
  225. include $(OPENH323DIR)/openh323u.mak
  226.  
  227.  
  228. # export NOAUDIOCODECS=true
  229. # export NOVIDEO=true
  230.  
  231. SUBDIRS := src samples/simple
  232.  
  233. ifneq (,$(wildcard dump323))
  234. SUBDIRS += dump323
  235. endif
  236.  
  237. ifneq (,$(wildcard openam))
  238. SUBDIRS += openam
  239. endif
  240.  
  241. ifneq (,$(wildcard pstngw))
  242. SUBDIRS += pstngw
  243. endif
  244.  
  245. ifneq (,$(wildcard openphone))
  246. ifneq (,$(wildcard $(PWLIBDIR)/src/pwlib))
  247. SUBDIRS += openphone
  248. endif
  249. endif
  250.  
  251. PREFIX=@INSTALLPREFIX@/
  252. exec_prefix = ${PREFIX}
  253. LIBDIR=@LIBDIR@
  254.  
  255. ifndef PREFIX
  256. PREFIX=/usr/local
  257. endif
  258.  
  259.  
  260. update:
  261.     cvs update
  262.     $(MAKE) all
  263.  
  264.  
  265.  
  266. # Pass through commands to the subdirectory for sample app
  267.  
  268. $(subst tagbuild,,$(STANDARD_TARGETS)) ::
  269.     set -e; $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)
  270.  
  271.  
  272. notrace::
  273.     $(MAKE) NOTRACE=1 opt
  274.  
  275. docs: 
  276.     doc++ --dir html --tables openh323.dxx
  277.  
  278. install:
  279.     mkdir -p $(PREFIX)/include
  280.     mkdir -p $(LIBDIR)
  281.     chmod a+r lib/*so*
  282.     cp -df lib/*so* $(LIBDIR)
  283.     mkdir -p $(PREFIX)/include/openh323/
  284.     cp -rf include/* $(PREFIX)/include/openh323/
  285.     mkdir -p $(PREFIX)/share/openh323/
  286.     cp openh323u.mak $(PREFIX)/share/openh323
  287.     ln -s $(LIBDIR)/$(OH323_FILE) $(LIBDIR)/libopenh323.so
  288.     chmod -R a+r $(PREFIX)/include/openh323 $(PREFIX)/share/openh323
  289.  
  290. uninstall:
  291.     rm -rf $(PREFIX)/include/openh323 $(PREFIX)/share/openh323
  292.     rm -f $(LIBDIR)/$(OH323_FILE)* $(LIBDIR)/libopenh323.so
  293.  
  294.  
  295.  
  296.