You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

209 lines
6.9 KiB

26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
21 years ago
  1. # Copyright (C) 2000-2006 MySQL AB
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; version 2 of the License.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  15. # Process this file with automake to create Makefile.in
  16. AUTOMAKE_OPTIONS = foreign
  17. # These are built from source in the Docs directory
  18. EXTRA_DIST = INSTALL-SOURCE INSTALL-WIN-SOURCE \
  19. README COPYING EXCEPTIONS-CLIENT CMakeLists.txt
  20. SUBDIRS = . include @docs_dirs@ @zlib_dir@ @yassl_dir@ \
  21. @readline_topdir@ sql-common scripts \
  22. @thread_dirs@ pstack \
  23. @sql_union_dirs@ @man_dirs@ tests \
  24. netware @libmysqld_dirs@ \
  25. @bench_dirs@ support-files @tools_dirs@
  26. DIST_SUBDIRS = . include @docs_dirs@ zlib \
  27. @readline_topdir@ sql-common \
  28. @thread_dirs@ pstack \
  29. @sql_union_dirs@ scripts @man_dirs@ tests SSL\
  30. BUILD netware os2 @libmysqld_dirs@ \
  31. @bench_dirs@ support-files @tools_dirs@ win \
  32. debian
  33. # Run these targets before any others, also make part of clean target,
  34. # to make sure we create new links after a clean.
  35. BUILT_SOURCES = linked_client_sources linked_server_sources \
  36. @linked_client_targets@ \
  37. @linked_libmysqld_targets@ \
  38. linked_include_sources @linked_netware_sources@
  39. # The db.h file is a bit special, see note in "configure.in".
  40. # In the case we didn't compile with bdb, a dummy file is put
  41. # there, but will not be removed by the bdb make file becuase
  42. # it will never be called.
  43. CLEANFILES = $(BUILT_SOURCES) bdb/build_unix/db.h
  44. DISTCLEANFILES = ac_available_languages_fragment
  45. # Our current filtering of "sql_yacc.cc" in "sql/Makefile.am" creates
  46. # a problem, if a VPATH build and "sql_yacc.cc" was part of the source
  47. # distribution we end up with one "sql_yacc.cc" in the source tree,
  48. # and one in the build tree. This breaks "distcleancheck", until this
  49. # is sorted out we redefine the find that scans for files not removed
  50. distcleancheck_listfiles = find . -name sql_yacc.cc -o -type f -print
  51. linked_include_sources:
  52. cd include; $(MAKE) link_sources
  53. echo timestamp > linked_include_sources
  54. linked_client_sources: @linked_client_targets@
  55. cd client; $(MAKE) link_sources
  56. echo timestamp > linked_client_sources
  57. linked_libmysql_sources:
  58. cd libmysql; $(MAKE) link_sources
  59. echo timestamp > linked_libmysql_sources
  60. linked_libmysql_r_sources: linked_libmysql_sources
  61. cd libmysql_r; $(MAKE) link_sources
  62. echo timestamp > linked_libmysql_r_sources
  63. linked_libmysqld_sources:
  64. cd libmysqld; $(MAKE) link_sources
  65. echo timestamp > linked_libmysqld_sources
  66. linked_libmysqldex_sources:
  67. cd libmysqld/examples; $(MAKE) link_sources
  68. echo timestamp > linked_libmysqldex_sources
  69. linked_netware_sources:
  70. cd @netware_dir@; $(MAKE) link_sources
  71. echo timestamp > linked_netware_sources
  72. linked_server_sources:
  73. cd sql; $(MAKE) link_sources
  74. echo timestamp > linked_server_sources
  75. # Create permission databases
  76. init-db: all
  77. $(top_builddir)/scripts/mysql_install_db
  78. bin-dist: all
  79. $(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
  80. # Remove BK's "SCCS" subdirectories from source distribution
  81. # Create initial database files for Windows installations.
  82. dist-hook:
  83. rm -rf `find $(distdir) -type d -name SCCS -print`
  84. rm -f `find $(distdir) -type l -print`
  85. mkdir -p $(distdir)/win
  86. scripts/mysql_install_db --no-defaults --windows \
  87. --basedir=$(top_builddir) \
  88. --datadir=$(distdir)/win/data \
  89. --srcdir=$(top_srcdir)
  90. tags:
  91. support-files/build-tags
  92. .PHONY: init-db bin-dist \
  93. test test-force test-full test-force-full test-force-mem \
  94. test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
  95. test-ps test-ns test-ext-funcs test-ext \
  96. test-fast test-fast-cursor test-fast-view test-fast-prepare \
  97. test-full-qa
  98. # Target 'test' will run the regression test suite using the built server.
  99. #
  100. # If you are running in a shared environment, users can avoid clashing
  101. # port numbers by setting individual small numbers 1-100 to the
  102. # environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
  103. # will then calculate the various port numbers it needs from this,
  104. # making sure each user use different ports.
  105. test-ps:
  106. cd mysql-test ; \
  107. @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol
  108. test-ns:
  109. cd mysql-test ; \
  110. @PERL@ ./mysql-test-run.pl $(force) $(mem)
  111. test: test-ns test-ps
  112. # To ease script-writing, although in 5.0 it is identical to 'test'
  113. test-full: test
  114. test-force:
  115. $(MAKE) force=--force test
  116. test-force-full:
  117. $(MAKE) force=--force test-full
  118. #used by autopush.pl to run memory based tests
  119. test-force-mem:
  120. $(MAKE) force=--force mem=--mem test
  121. test-bt:
  122. -cd mysql-test ; MTR_BUILD_THREAD=auto \
  123. @PERL@ ./mysql-test-run.pl --force --comment=normal --report-features
  124. -cd mysql-test ; MTR_BUILD_THREAD=auto \
  125. @PERL@ ./mysql-test-run.pl --force --comment=ps --ps-protocol
  126. -cd mysql-test ; MTR_BUILD_THREAD=auto \
  127. @PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
  128. -cd mysql-test ; MTR_BUILD_THREAD=auto \
  129. @PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
  130. -cd mysql-test ; MTR_BUILD_THREAD=auto \
  131. @PERL@ ./mysql-test-run.pl --force --comment=rowlock --suite=row_lock
  132. -if [ -d mysql-test/suite/nist ] ; then \
  133. cd mysql-test ; MTR_BUILD_THREAD=auto \
  134. @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
  135. fi
  136. -if [ -d mysql-test/suite/nist ] ; then \
  137. cd mysql-test ; MTR_BUILD_THREAD=auto \
  138. @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
  139. fi
  140. test-bt-debug:
  141. -cd mysql-test ; MTR_BUILD_THREAD=auto \
  142. @PERL@ ./mysql-test-run.pl --force --comment=debug --report-features
  143. # Keep these for a while
  144. test-pl: test
  145. test-full-pl: test-full
  146. test-force-pl: test-force
  147. test-force-pl-mem: test-force-mem
  148. test-force-full-pl: test-force-full
  149. test-ext-funcs:
  150. cd mysql-test ; \
  151. @PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
  152. @PERL@ ./mysql-test-run.pl --force --suite=funcs_2
  153. test-ext: test-ext-funcs
  154. test-fast:
  155. cd mysql-test ; \
  156. @PERL@ ./mysql-test-run.pl $(subset) --force --skip-ndb --skip-innodb --skip-im --skip-rpl ; \
  157. @PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam
  158. test-fast-view:
  159. $(MAKE) subset=--view-protocol test-fast
  160. test-fast-cursor:
  161. $(MAKE) subset=--cursor-protocol test-fast
  162. test-fast-prepare:
  163. $(MAKE) subset=--ps-protocol test-fast
  164. test-full-qa:
  165. $(MAKE) force=--force test-pl \
  166. test-ext test-fast-view \
  167. test-fast-cursor
  168. # Don't update the files from bitkeeper
  169. %::SCCS/s.%