| 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 |
|
| 16 |
# Process this file with automake to create Makefile.in |
| 17 |
|
| 18 |
AUTOMAKE_OPTIONS = foreign |
| 19 |
|
| 20 |
# These are built from source in the Docs directory |
| 21 |
EXTRA_DIST = INSTALL-SOURCE INSTALL-WIN-SOURCE \ |
| 22 |
README COPYING EXCEPTIONS-CLIENT CMakeLists.txt |
| 23 |
SUBDIRS = . include @docs_dirs@ @zlib_dir@ @yassl_dir@ \ |
| 24 |
@readline_topdir@ sql-common scripts \ |
| 25 |
@thread_dirs@ pstack \ |
| 26 |
@sql_union_dirs@ @man_dirs@ tests \ |
| 27 |
netware @libmysqld_dirs@ \ |
| 28 |
@bench_dirs@ support-files @tools_dirs@ |
| 29 |
|
| 30 |
DIST_SUBDIRS = . include @docs_dirs@ zlib \ |
| 31 |
@readline_topdir@ sql-common \ |
| 32 |
@thread_dirs@ pstack \ |
| 33 |
@sql_union_dirs@ scripts @man_dirs@ tests SSL\ |
| 34 |
BUILD netware os2 @libmysqld_dirs@ \ |
| 35 |
@bench_dirs@ support-files @tools_dirs@ win \ |
| 36 |
debian |
| 37 |
|
| 38 |
# Run these targets before any others, also make part of clean target, |
| 39 |
# to make sure we create new links after a clean. |
| 40 |
BUILT_SOURCES = linked_client_sources linked_server_sources \ |
| 41 |
@linked_client_targets@ \ |
| 42 |
@linked_libmysqld_targets@ \ |
| 43 |
linked_include_sources @linked_netware_sources@ |
| 44 |
|
| 45 |
# The db.h file is a bit special, see note in "configure.in". |
| 46 |
# In the case we didn't compile with bdb, a dummy file is put |
| 47 |
# there, but will not be removed by the bdb make file becuase |
| 48 |
# it will never be called. |
| 49 |
CLEANFILES = $(BUILT_SOURCES) bdb/build_unix/db.h |
| 50 |
DISTCLEANFILES = ac_available_languages_fragment |
| 51 |
|
| 52 |
# Our current filtering of "sql_yacc.cc" in "sql/Makefile.am" creates |
| 53 |
# a problem, if a VPATH build and "sql_yacc.cc" was part of the source |
| 54 |
# distribution we end up with one "sql_yacc.cc" in the source tree, |
| 55 |
# and one in the build tree. This breaks "distcleancheck", until this |
| 56 |
# is sorted out we redefine the find that scans for files not removed |
| 57 |
|
| 58 |
distcleancheck_listfiles = find . -name sql_yacc.cc -o -type f -print |
| 59 |
|
| 60 |
linked_include_sources: |
| 61 |
cd include; $(MAKE) link_sources |
| 62 |
echo timestamp > linked_include_sources |
| 63 |
|
| 64 |
linked_client_sources: @linked_client_targets@ |
| 65 |
cd client; $(MAKE) link_sources |
| 66 |
echo timestamp > linked_client_sources |
| 67 |
|
| 68 |
linked_libmysql_sources: |
| 69 |
cd libmysql; $(MAKE) link_sources |
| 70 |
echo timestamp > linked_libmysql_sources |
| 71 |
|
| 72 |
linked_libmysql_r_sources: linked_libmysql_sources |
| 73 |
cd libmysql_r; $(MAKE) link_sources |
| 74 |
echo timestamp > linked_libmysql_r_sources |
| 75 |
|
| 76 |
linked_libmysqld_sources: |
| 77 |
cd libmysqld; $(MAKE) link_sources |
| 78 |
echo timestamp > linked_libmysqld_sources |
| 79 |
|
| 80 |
linked_libmysqldex_sources: |
| 81 |
cd libmysqld/examples; $(MAKE) link_sources |
| 82 |
echo timestamp > linked_libmysqldex_sources |
| 83 |
|
| 84 |
linked_netware_sources: |
| 85 |
cd @netware_dir@; $(MAKE) link_sources |
| 86 |
echo timestamp > linked_netware_sources |
| 87 |
|
| 88 |
linked_server_sources: |
| 89 |
cd sql; $(MAKE) link_sources |
| 90 |
echo timestamp > linked_server_sources |
| 91 |
|
| 92 |
# Create permission databases |
| 93 |
init-db: all |
| 94 |
$(top_builddir)/scripts/mysql_install_db |
| 95 |
|
| 96 |
bin-dist: all |
| 97 |
$(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@ |
| 98 |
|
| 99 |
# Remove BK's "SCCS" subdirectories from source distribution |
| 100 |
# Create initial database files for Windows installations. |
| 101 |
dist-hook: |
| 102 |
rm -rf `find $(distdir) -type d -name SCCS -print` |
| 103 |
rm -f `find $(distdir) -type l -print` |
| 104 |
mkdir -p $(distdir)/win |
| 105 |
scripts/mysql_install_db --no-defaults --windows \ |
| 106 |
--basedir=$(top_builddir) \ |
| 107 |
--datadir=$(distdir)/win/data \ |
| 108 |
--srcdir=$(top_srcdir) |
| 109 |
|
| 110 |
tags: |
| 111 |
support-files/build-tags |
| 112 |
|
| 113 |
.PHONY: init-db bin-dist \ |
| 114 |
test test-force test-full test-force-full test-force-mem \ |
| 115 |
test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \ |
| 116 |
test-ps test-ns test-ext-funcs test-ext \ |
| 117 |
test-fast test-fast-cursor test-fast-view test-fast-prepare \ |
| 118 |
test-full-qa |
| 119 |
|
| 120 |
# Target 'test' will run the regression test suite using the built server. |
| 121 |
# |
| 122 |
# If you are running in a shared environment, users can avoid clashing |
| 123 |
# port numbers by setting individual small numbers 1-100 to the |
| 124 |
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run" |
| 125 |
# will then calculate the various port numbers it needs from this, |
| 126 |
# making sure each user use different ports. |
| 127 |
|
| 128 |
test-ps: |
| 129 |
cd mysql-test ; \ |
| 130 |
@PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol |
| 131 |
|
| 132 |
test-ns: |
| 133 |
cd mysql-test ; \ |
| 134 |
@PERL@ ./mysql-test-run.pl $(force) $(mem) |
| 135 |
|
| 136 |
test: test-ns test-ps |
| 137 |
|
| 138 |
# To ease script-writing, although in 5.0 it is identical to 'test' |
| 139 |
test-full: test |
| 140 |
|
| 141 |
test-force: |
| 142 |
$(MAKE) force=--force test |
| 143 |
|
| 144 |
test-force-full: |
| 145 |
$(MAKE) force=--force test-full |
| 146 |
|
| 147 |
#used by autopush.pl to run memory based tests |
| 148 |
test-force-mem: |
| 149 |
$(MAKE) force=--force mem=--mem test |
| 150 |
|
| 151 |
test-bt: |
| 152 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
| 153 |
@PERL@ ./mysql-test-run.pl --force --comment=normal --report-features |
| 154 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
| 155 |
@PERL@ ./mysql-test-run.pl --force --comment=ps --ps-protocol |
| 156 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
| 157 |
@PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1 |
| 158 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
| 159 |
@PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2 |
| 160 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
| 161 |
@PERL@ ./mysql-test-run.pl --force --comment=rowlock --suite=row_lock |
| 162 |
|
| 163 |
test-bt-debug: |
| 164 |
-cd mysql-test ; MTR_BUILD_THREAD=auto \ |
| 165 |
@PERL@ ./mysql-test-run.pl --force --comment=debug --report-features |
| 166 |
|
| 167 |
# Keep these for a while |
| 168 |
test-pl: test |
| 169 |
test-full-pl: test-full |
| 170 |
test-force-pl: test-force |
| 171 |
test-force-pl-mem: test-force-mem |
| 172 |
test-force-full-pl: test-force-full |
| 173 |
|
| 174 |
test-ext-funcs: |
| 175 |
cd mysql-test ; \ |
| 176 |
@PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \ |
| 177 |
@PERL@ ./mysql-test-run.pl --force --suite=funcs_2 |
| 178 |
|
| 179 |
test-ext: test-ext-funcs |
| 180 |
|
| 181 |
test-fast: |
| 182 |
cd mysql-test ; \ |
| 183 |
@PERL@ ./mysql-test-run.pl $(subset) --force --skip-ndb --skip-innodb --skip-im --skip-rpl ; \ |
| 184 |
@PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam |
| 185 |
|
| 186 |
test-fast-view: |
| 187 |
$(MAKE) subset=--view-protocol test-fast |
| 188 |
|
| 189 |
test-fast-cursor: |
| 190 |
$(MAKE) subset=--cursor-protocol test-fast |
| 191 |
|
| 192 |
test-fast-prepare: |
| 193 |
$(MAKE) subset=--ps-protocol test-fast |
| 194 |
|
| 195 |
test-full-qa: |
| 196 |
$(MAKE) force=--force test-pl \ |
| 197 |
test-ext test-fast-view \ |
| 198 |
test-fast-cursor |
| 199 |
|
| 200 |
# Don't update the files from bitkeeper |
| 201 |
%::SCCS/s.% |