~drizzle-trunk/drizzle/development

992.1.25 by Monty Taylor
Moved myisam to new plugin system.
1
#  Copyright (C) 2009 Sun Microsystems
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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
1 by brian
clean slate
15
722.2.9 by Monty Taylor
I _think_ I've got the plug.in triggering rebuild thing going on right.
16
ACLOCAL_AMFLAGS = -I m4 --force
475 by Monty Taylor
Added m4 files for deficient systems. Changed include mechanism to not need
17
1 by brian
clean slate
18
# Process this file with automake to create Makefile.in
312.1.8 by Monty Taylor
Don't build po dir if we don't have gettext.
19
if BUILD_GETTEXT
20
  po=po
21
endif
1 by brian
clean slate
22
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
23
SUBDIRS = ${po} \
815.1.1 by Monty Taylor
Add timegm which is missing on Solaris.
24
	  gnulib \
992.1.17 by Monty Taylor
Moved extra/ into root Makefile.am
25
	  drizzled/message \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
26
	  . \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
27
	  drizzled \
187 by Brian Aker
Fixed tab issue
28
	  tests \
29
	  support-files
30
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
31
BUILT_SOURCES=		drizzled/configmake.h
32
EXTRA_DIST=		config/config.rpath m4/gnulib-cache.m4 \
1003.2.2 by Monty Taylor
Fixed autorun.sh to actually work from a tarball.
33
			config/plugin.ac config/plugin.am \
34
			config/autorun.sh
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
35
CLEANFILES=		${BUILT_SOURCES}
36
DISTCLEANFILES=		ac_available_languages_fragment
37
MAINTAINERCLEANFILES=	autom4te.cache
992.1.18 by Monty Taylor
Moved client build into root Makefile.
38
39
CLIENT_LDADD=		mysys/libmysys.la \
40
			mystrings/libmystrings.la \
41
			$(LIBDRIZZLE) $(LIBINTL) $(LIBZ) \
42
			client/libgetpassword.la
43
44
noinst_LTLIBRARIES= \
45
		client/libgetpassword.la \
46
		mysys/libmysys.la \
47
		mystrings/libmystrings.la
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
48
992.1.29 by Monty Taylor
Migrated archive.
49
noinst_PROGRAMS=
997.2.13 by Monty Taylor
Made client programs install properly.
50
bin_PROGRAMS= \
992.1.18 by Monty Taylor
Moved client build into root Makefile.
51
		client/drizzle \
52
		client/drizzlecheck \
53
		client/drizzledump \
54
		client/drizzleimport \
55
		client/drizzletest \
56
		client/drizzleslap \
992.1.17 by Monty Taylor
Moved extra/ into root Makefile.am
57
		extra/my_print_defaults \
58
		extra/mysql_waitpid \
59
		extra/innochecksum
60
992.1.18 by Monty Taylor
Moved client build into root Makefile.
61
62
client_libgetpassword_la_SOURCES= client/get_password.cc
63
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
64
noinst_HEADERS=	\
992.1.18 by Monty Taylor
Moved client build into root Makefile.
65
		client/client_priv.h \
994.2.4 by Monty Taylor
Blast. Fixed some make distcheck issues.
66
		client/errname.h \
992.1.18 by Monty Taylor
Moved client build into root Makefile.
67
		client/get_password.h \
68
		client/my_readline.h \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
69
		drizzled/configmake.h \
992.1.16 by Monty Taylor
Moved mystrings build into root Makefile.
70
		mystrings/decimal.h \
71
		mystrings/m_ctype.h \
72
		mystrings/m_string.h \
73
		mystrings/my_uctype.h \
994.2.4 by Monty Taylor
Blast. Fixed some make distcheck issues.
74
		mystrings/t_ctype.h \
75
		mystrings/utf8.h \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
76
		mysys/aio_result.h \
77
		mysys/base64.h \
78
		mysys/definitions.h \
79
		mysys/drizzle_time.h \
80
		mysys/hash.h \
81
		mysys/iocache.h \
82
		mysys/my_alloc.h \
83
		mysys/my_bit.h \
1005.2.1 by Monty Taylor
Reverted a crap-ton of padraig's work.
84
		mysys/my_bitmap.h \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
85
		mysys/my_dir.h \
86
		mysys/my_getopt.h \
87
		mysys/my_pthread.h \
88
		mysys/my_static.h \
89
		mysys/my_sys.h \
90
		mysys/my_time.h \
91
		mysys/my_tree.h \
92
		mysys/mysys_err.h \
93
		mysys/mysys_priv.h \
94
		mysys/sha1.h \
95
		mysys/thr_lock.h \
96
		mysys/typelib.h
97
992.1.16 by Monty Taylor
Moved mystrings build into root Makefile.
98
mystrings_libmystrings_la_SOURCES= \
99
		mystrings/bmove_upp.cc \
100
		mystrings/ctype-bin.cc \
101
		mystrings/ctype-extra.cc \
102
		mystrings/ctype-mb.cc \
103
		mystrings/ctype-simple.cc \
104
		mystrings/ctype-uca.cc \
105
		mystrings/ctype-utf8.cc \
106
		mystrings/ctype.cc \
107
		mystrings/decimal.cc \
108
		mystrings/dtoa.cc \
109
		mystrings/int2str.cc \
110
		mystrings/is_prefix.cc \
111
		mystrings/llstr.cc \
112
		mystrings/longlong2str.cc \
999.1.1 by Toru Maesaka
Removed str2int() from the original string library by MySQL. Use strtol(3) instead.
113
		mystrings/my_strtoll10.cc
992.1.16 by Monty Taylor
Moved mystrings build into root Makefile.
114
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
115
mysys_libmysys_la_SOURCES= \
116
		mysys/array.cc \
117
		mysys/base64.cc \
118
		mysys/charset-def.cc \
119
		mysys/charset.cc \
120
		mysys/checksum.cc \
121
		mysys/default.cc \
122
		mysys/default_modify.cc \
123
		mysys/errors.cc \
124
		mysys/hash.cc \
125
		mysys/mf_arr_appstr.cc \
126
		mysys/mf_cache.cc \
127
		mysys/mf_dirname.cc \
128
		mysys/mf_fn_ext.cc \
129
		mysys/mf_format.cc \
130
		mysys/mf_getdate.cc \
131
		mysys/mf_iocache.cc \
132
		mysys/mf_iocache2.cc \
133
		mysys/mf_loadpath.cc \
134
		mysys/mf_pack.cc \
135
		mysys/mf_qsort.cc \
136
		mysys/mf_qsort2.cc \
137
		mysys/mf_radix.cc \
138
		mysys/mf_same.cc \
139
		mysys/mf_sort.cc \
140
		mysys/mf_tempfile.cc \
141
		mysys/mf_wcomp.cc \
142
		mysys/mulalloc.cc \
143
		mysys/my_access.cc \
144
		mysys/my_alloc.cc \
145
		mysys/my_bit.cc \
1005.2.1 by Monty Taylor
Reverted a crap-ton of padraig's work.
146
		mysys/my_bitmap.cc \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
147
		mysys/my_copy.cc \
148
		mysys/my_create.cc \
149
		mysys/my_delete.cc \
150
		mysys/my_dup.cc \
151
		mysys/my_error.cc \
152
		mysys/my_file.cc \
153
		mysys/my_filename.cc \
154
		mysys/my_getopt.cc \
155
		mysys/my_getsystime.cc \
156
		mysys/my_init.cc \
157
		mysys/my_lib.cc \
158
		mysys/my_open.cc \
159
		mysys/my_read.cc \
160
		mysys/my_redel.cc \
161
		mysys/my_rename.cc \
162
		mysys/my_static.cc \
163
		mysys/my_symlink.cc \
164
		mysys/my_symlink2.cc \
165
		mysys/my_sync.cc \
166
		mysys/my_thr_init.cc \
167
		mysys/my_time.cc \
168
		mysys/my_write.cc \
169
		mysys/ptr_cmp.cc \
170
		mysys/sha1.cc \
171
		mysys/thr_lock.cc \
172
		mysys/tree.cc \
173
		mysys/typelib.cc
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
174
992.1.18 by Monty Taylor
Moved client build into root Makefile.
175
client_drizzle_SOURCES=		client/drizzle.cc client/readline.cc
176
client_drizzle_LDADD=		${CLIENT_LDADD} ${READLINE_LIBS}
177
178
client_drizzlecheck_SOURCES =	client/drizzlecheck.cc
179
client_drizzlecheck_LDADD=	${CLIENT_LDADD}
180
181
client_drizzledump_SOURCES=	client/drizzledump.cc
182
client_drizzledump_LDADD=	${CLIENT_LDADD}
183
184
client_drizzleimport_SOURCES=	client/drizzleimport.cc
185
client_drizzleimport_LDADD=	${CLIENT_LDADD}
186
187
client_drizzleslap_SOURCES=	client/drizzleslap.cc
188
client_drizzleslap_LDADD=	${CLIENT_LDADD}
189
190
client_drizzletest_SOURCES=	client/drizzletest.cc
191
client_drizzletest_LDADD=	${CLIENT_LDADD} ${LIBPCRE}
192
992.1.17 by Monty Taylor
Moved extra/ into root Makefile.am
193
extra_my_print_defaults_SOURCES= extra/my_print_defaults.cc
194
extra_my_print_defaults_LDADD= \
195
		$(top_builddir)/mysys/libmysys.la \
196
		$(top_builddir)/mystrings/libmystrings.la \
197
		$(LIBINTL)
198
extra_mysql_waitpid_SOURCES= extra/mysql_waitpid.cc
199
extra_mysql_waitpid_LDADD= \
200
		$(top_builddir)/mysys/libmysys.la \
201
		$(top_builddir)/mystrings/libmystrings.la \
202
		$(LIBINTL)
203
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
204
EXTRA_LTLIBRARIES=
205
pkgplugin_LTLIBRARIES=
206
include config/plugin.am
207
77.1.106 by Monty Taylor
Another batch of distclean fixes.
208
187 by Brian Aker
Fixed tab issue
209
.PHONY: test \
210
    test-force \
211
    test-full \
212
    test-force-full \
213
    test-force-mem \
214
    test-pl \
215
    test-force-pl \
216
    test-full-pl \
217
    test-force-full-pl \
218
    test-force-pl-mem \
219
    test-ps test-nr \
220
    test-pr test-ns \
221
    test-binlog-statement \
222
    test-ext-funcs \
223
    test-ext-rpl \
224
    test-ext-jp \
225
    test-ext-stress \
226
    test-ext \
227
    test-fast \
228
    test-fast-cursor \
229
    test-fast-view \
656.1.11 by Monty Taylor
Added indent rule and uncrustify config.
230
    test-full-qa \
231
    indent
1 by brian
clean slate
232
233
# Target 'test' will run the regression test suite using the built server.
234
#
235
# If you are running in a shared environment, users can avoid clashing
236
# port numbers by setting individual small numbers 1-100 to the
168 by Brian Aker
Rename of test (better tab completion!)
237
# environment variable MTR_BUILD_THREAD. The script "test-run"
1 by brian
clean slate
238
# will then calculate the various port numbers it needs from this,
239
# making sure each user use different ports.
240
241
test-nr:
187 by Brian Aker
Fixed tab issue
242
	cd tests ; \
243
	  ./test-run $(force) --mysqld=--binlog-format=row
1 by brian
clean slate
244
245
test-ns:
187 by Brian Aker
Fixed tab issue
246
	cd tests ; \
247
	  ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
1 by brian
clean slate
248
249
test-binlog-statement:
187 by Brian Aker
Fixed tab issue
250
	cd tests ; \
251
	  ./test-run $(force) --mysqld=--binlog-format=statement
1 by brian
clean slate
252
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
253
test: test-drizzle
254
255
test-drizzle:
187 by Brian Aker
Fixed tab issue
256
	cd tests ; \
942.1.4 by Monty Taylor
Moved big tests to big suite. Added make target "make test-big" to allow for easy running of the big tests.
257
	$(MAKE) $(AM_MAKEFLAGS) test-drizzle
258
259
test-big:
260
	cd tests ; \
261
	$(MAKE) $(AM_MAKEFLAGS) test-big
264.3.1 by Jay Pipes
* Added Doxyfile configuration for doxygen builds
262
263
doxygen:
264
	doxygen Doxyfile
656.1.11 by Monty Taylor
Added indent rule and uncrustify config.
265
266
indent:
267
	for f in `find ${top_srcdir} -type f | grep -v innobase |\
268
                  ${EGREP} '\.(cc|c|h)$$' ` ; do \
269
            uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
270
               -o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
271
        done
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
272
273
drizzled/configmake.h: ${top_srcdir}/Makefile.in
274
	@echo "Making $@"
275
	@rm -f $@-t $@
276
	@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
277
	  echo '#define PREFIX "$(prefix)"'; \
278
	  echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
279
	  echo '#define BINDIR "$(bindir)"'; \
280
	  echo '#define SBINDIR "$(sbindir)"'; \
281
	  echo '#define LIBEXECDIR "$(libexecdir)"'; \
282
	  echo '#define DATAROOTDIR "$(datarootdir)"'; \
283
	  echo '#define DATADIR "$(datadir)"'; \
284
	  echo '#define SYSCONFDIR "$(sysconfdir)"'; \
285
	  echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
286
	  echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
287
	  echo '#define INCLUDEDIR "$(includedir)"'; \
288
	  echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
289
	  echo '#define DOCDIR "$(docdir)"'; \
290
	  echo '#define INFODIR "$(infodir)"'; \
291
	  echo '#define HTMLDIR "$(htmldir)"'; \
292
	  echo '#define DVIDIR "$(dvidir)"'; \
293
	  echo '#define PDFDIR "$(pdfdir)"'; \
294
	  echo '#define PSDIR "$(psdir)"'; \
295
	  echo '#define LIBDIR "$(libdir)"'; \
296
	  echo '#define LISPDIR "$(lispdir)"'; \
297
	  echo '#define LOCALEDIR "$(localedir)"'; \
298
	  echo '#define MANDIR "$(mandir)"'; \
299
	  echo '#define MANEXT "$(manext)"'; \
300
	  echo '#define PKGDATADIR "$(pkgdatadir)"'; \
301
	  echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
302
	  echo '#define PKGLIBDIR "$(pkglibdir)"'; \
303
	  echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
304
	  echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
305
	} | sed '/""/d' > $@-t
306
	@if diff $@-t $@ >/dev/null 2>&1 ; then \
307
	  rm @-t ; \
308
	else \
309
	  mv $@-t $@ ; \
310
	fi
311
779.1.25 by Monty Taylor
Put in LCOV checks. Put output in subdir.
312
if HAVE_LCOV
313
873.2.36 by Monty Taylor
Fix to clean up flags.
314
lcov: lcov-clean test lcov/index.html
779.1.20 by Monty Taylor
Added lcov commands.
315
779.1.25 by Monty Taylor
Put in LCOV checks. Put output in subdir.
316
lcov/drizzle.output: drizzled/drizzled
317
	mkdir -p lcov
318
	${LCOV} --directory ${top_srcdir}/lcov --capture --output-file lcov/drizzle.output
779.1.20 by Monty Taylor
Added lcov commands.
319
779.1.25 by Monty Taylor
Put in LCOV checks. Put output in subdir.
320
lcov/index.html: lcov/drizzle.output
321
	${GENHTML} -o lcov lcov/drizzle.output
779.1.20 by Monty Taylor
Added lcov commands.
322
323
lcov-clean:
324
	ln -fs pars/pars0lex.l ${top_srcdir}/storage/innobase/pars0lex.l
325
	ln -fs pars/lexyy.c ${top_srcdir}/storage/innobase/lexyy.c
326
	ln -fs pars/pars0grm.c ${top_srcdir}/storage/innobase/pars0grm.c
327
	ln -fs pars/pars0grm.y ${top_srcdir}/storage/innobase/pars0grm.y
328
779.1.25 by Monty Taylor
Put in LCOV checks. Put output in subdir.
329
	${LCOV} --directory ${top_srcdir} --zerocounters
779.1.20 by Monty Taylor
Added lcov commands.
330
779.1.25 by Monty Taylor
Put in LCOV checks. Put output in subdir.
331
endif