~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
#  Copyright (C) 2009 Sun Microsystems
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; version 2 of the License.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

ACLOCAL_AMFLAGS = -I m4 --force

# Process this file with automake to create Makefile.in
if BUILD_GETTEXT
  po=po
endif

SUBDIRS = ${po} \
	  gnulib \
	  drizzled/message \
	  . \
	  drizzled \
	  tests \
	  support-files

BUILT_SOURCES=		drizzled/configmake.h
EXTRA_DIST=		config/config.rpath m4/gnulib-cache.m4 \
			config/plugin.ac config/plugin.am \
			config/autorun.sh

CLEANFILES=		${BUILT_SOURCES}
DISTCLEANFILES=		ac_available_languages_fragment
MAINTAINERCLEANFILES=	autom4te.cache

CLIENT_LDADD=		mysys/libmysys.la \
			mystrings/libmystrings.la \
			$(LIBDRIZZLE) $(LIBINTL) $(LIBZ) \
			client/libgetpassword.la

noinst_LTLIBRARIES= \
		client/libgetpassword.la \
		mysys/libmysys.la \
		mystrings/libmystrings.la

noinst_PROGRAMS=\
		client/drizzletest \
		extra/my_print_defaults

bin_PROGRAMS= \
		client/drizzle \
		client/drizzledump \
		client/drizzleimport \
		client/drizzleslap

man_MANS=\
		client/drizzle.1 \
		client/drizzled.8 \
		client/drizzledump.1 \
		client/drizzleimport.1 \
		client/drizzleslap.1

client_libgetpassword_la_SOURCES= client/get_password.cc

noinst_HEADERS=	\
		client/client_priv.h \
		client/errname.h \
		client/get_password.h \
		client/linebuffer.h \
		drizzled/configmake.h \
		mystrings/decimal.h \
		mysys/dynamic_array.h \
		mystrings/m_ctype.h \
		mystrings/m_string.h \
		mystrings/my_uctype.h \
		mystrings/t_ctype.h \
		mystrings/utf8.h \
		mysys/aio_result.h \
		mysys/cached_directory.h \
		mysys/definitions.h \
		mysys/drizzle_time.h \
		mysys/hash.h \
		mysys/iocache.h \
		mysys/my_alloc.h \
		mysys/my_bit.h \
		mysys/my_bitmap.h \
		mysys/my_dir.h \
		mysys/my_getopt.h \
		mysys/my_pthread.h \
		mysys/my_static.h \
		mysys/my_sys.h \
		mysys/my_time.h \
		mysys/my_tree.h \
		mysys/mysys_err.h \
		mysys/mysys_priv.h \
		mysys/thr_lock.h \
		mysys/typelib.h

mystrings_libmystrings_la_SOURCES= \
		mystrings/bmove_upp.cc \
		mystrings/ctype-bin.cc \
		mystrings/ctype-extra.cc \
		mystrings/ctype-mb.cc \
		mystrings/ctype-simple.cc \
		mystrings/ctype-uca.cc \
		mystrings/ctype-utf8.cc \
		mystrings/ctype.cc \
		mystrings/decimal.cc \
		mystrings/dtoa.cc \
		mystrings/int2str.cc \
		mystrings/is_prefix.cc \
		mystrings/llstr.cc \
		mystrings/longlong2str.cc \
		mystrings/my_strtoll10.cc

mysys_libmysys_la_SOURCES= \
		mysys/cached_directory.cc \
		mysys/charset-def.cc \
		mysys/charset.cc \
		mysys/checksum.cc \
		mysys/default.cc \
		mysys/dynamic_array.cc \
		mysys/errors.cc \
		mysys/hash.cc \
		mysys/mf_arr_appstr.cc \
		mysys/mf_cache.cc \
		mysys/mf_dirname.cc \
		mysys/mf_fn_ext.cc \
		mysys/mf_format.cc \
		mysys/mf_getdate.cc \
		mysys/mf_iocache.cc \
		mysys/mf_loadpath.cc \
		mysys/mf_pack.cc \
		mysys/mf_qsort.cc \
		mysys/mf_qsort2.cc \
		mysys/mf_radix.cc \
		mysys/mf_same.cc \
		mysys/mf_sort.cc \
		mysys/mf_tempfile.cc \
		mysys/mf_wcomp.cc \
		mysys/mulalloc.cc \
		mysys/my_access.cc \
		mysys/my_alloc.cc \
		mysys/my_bit.cc \
		mysys/my_bitmap.cc \
		mysys/my_copy.cc \
		mysys/my_create.cc \
		mysys/my_delete.cc \
		mysys/my_error.cc \
		mysys/my_getopt.cc \
		mysys/my_getsystime.cc \
		mysys/my_init.cc \
		mysys/my_lib.cc \
		mysys/my_open.cc \
		mysys/my_read.cc \
		mysys/my_redel.cc \
		mysys/my_rename.cc \
		mysys/my_static.cc \
		mysys/my_symlink.cc \
		mysys/my_symlink2.cc \
		mysys/my_sync.cc \
		mysys/my_thr_init.cc \
		mysys/my_time.cc \
		mysys/my_tree.cc \
		mysys/my_write.cc \
		mysys/ptr_cmp.cc \
		mysys/thr_lock.cc \
		mysys/typelib.cc

client_drizzle_SOURCES=		client/drizzle.cc client/linebuffer.cc
client_drizzle_LDADD=		${CLIENT_LDADD} ${READLINE_LIBS}

client_drizzledump_SOURCES=	client/drizzledump.cc
client_drizzledump_LDADD=	${CLIENT_LDADD}

client_drizzleimport_SOURCES=	client/drizzleimport.cc
client_drizzleimport_LDADD=	${CLIENT_LDADD}

client_drizzleslap_SOURCES=	client/drizzleslap.cc
client_drizzleslap_LDADD=	${CLIENT_LDADD}

client_drizzletest_SOURCES=	client/drizzletest.cc client/errname.cc
client_drizzletest_LDADD=	${CLIENT_LDADD} ${LIBPCRE}

EXTRA_LTLIBRARIES=
pkgplugin_LTLIBRARIES=
include config/plugin.am

extra_my_print_defaults_SOURCES= extra/my_print_defaults.cc
extra_my_print_defaults_LDADD= \
		$(top_builddir)/mysys/libmysys.la \
		$(top_builddir)/mystrings/libmystrings.la \
		$(LIBINTL)

EXTRA_DIST+=	${man_MANS}

.PHONY: test \
    indent

# Target 'test' will run the regression test suite using the built server.
#
# If you are running in a shared environment, users can avoid clashing
# port numbers by setting individual small numbers 1-100 to the
# environment variable MTR_BUILD_THREAD. The script "test-run"
# will then calculate the various port numbers it needs from this,
# making sure each user use different ports.

test: test-drizzle

test-all:
	cd tests ; \
	$(MAKE) $(AM_MAKEFLAGS) test-all

test-drizzle:
	cd tests ; \
	$(MAKE) $(AM_MAKEFLAGS) test-drizzle

test-junitxml:
	cd tests ; \
	$(MAKE) $(AM_MAKEFLAGS) test-junitxml

test-big:
	cd tests ; \
	$(MAKE) $(AM_MAKEFLAGS) test-big

test-big-junitxml:
	cd tests ; \
	$(MAKE) $(AM_MAKEFLAGS) test-big-junitxml

doxygen:
	doxygen Doxyfile

indent:
	for f in `find ${top_srcdir} -type f | grep -v innobase |\
                  ${EGREP} '\.(cc|c|h)$$' ` ; do \
            uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
               -o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
        done

drizzled/configmake.h: ${top_srcdir}/Makefile.in
	@echo "Making $@"
	@rm -f $@-t $@
	@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
	  echo '#define PREFIX "$(prefix)"'; \
	  echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
	  echo '#define BINDIR "$(bindir)"'; \
	  echo '#define SBINDIR "$(sbindir)"'; \
	  echo '#define LIBEXECDIR "$(libexecdir)"'; \
	  echo '#define DATAROOTDIR "$(datarootdir)"'; \
	  echo '#define DATADIR "$(datadir)"'; \
	  echo '#define SYSCONFDIR "$(sysconfdir)"'; \
	  echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
	  echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
	  echo '#define INCLUDEDIR "$(includedir)"'; \
	  echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
	  echo '#define DOCDIR "$(docdir)"'; \
	  echo '#define INFODIR "$(infodir)"'; \
	  echo '#define HTMLDIR "$(htmldir)"'; \
	  echo '#define DVIDIR "$(dvidir)"'; \
	  echo '#define PDFDIR "$(pdfdir)"'; \
	  echo '#define PSDIR "$(psdir)"'; \
	  echo '#define LIBDIR "$(libdir)"'; \
	  echo '#define LISPDIR "$(lispdir)"'; \
	  echo '#define LOCALEDIR "$(localedir)"'; \
	  echo '#define MANDIR "$(mandir)"'; \
	  echo '#define MANEXT "$(manext)"'; \
	  echo '#define PKGDATADIR "$(pkgdatadir)"'; \
	  echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
	  echo '#define PKGLIBDIR "$(pkglibdir)"'; \
	  echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
	  echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
	} | sed '/""/d' > $@-t
	@if diff $@-t $@ >/dev/null 2>&1 ; then \
	  rm @-t ; \
	else \
	  mv $@-t $@ ; \
	fi

clean-local:
	find . -name '*.gcno' | xargs rm -f