~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
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
18
# includes append to these:
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
19
SUFFIXES =
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
20
TESTS = 
21
check_PROGRAMS =
22
noinst_HEADERS =
1241.9.4 by Monty Taylor
Beginnings of what we need to do to support -fvisibility=hidden.
23
lib_LTLIBRARIES = 
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
24
noinst_LTLIBRARIES =
25
noinst_PROGRAMS =
26
1 by brian
clean slate
27
# 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.
28
if BUILD_GETTEXT
29
  po=po
30
endif
1 by brian
clean slate
31
1192.3.6 by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking.
32
VERSION=$(PANDORA_RELEASE_VERSION)
33
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
34
SUBDIRS = ${po} \
815.1.1 by Monty Taylor
Add timegm which is missing on Solaris.
35
	  gnulib \
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
36
	  .
187 by Brian Aker
Fixed tab issue
37
1192.3.73 by Monty Taylor
Fix distcheck.
38
DIST_SUBDIRS = ${SUBDIRS} tests
39
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
40
BUILT_SOURCES=		drizzled/configmake.h
41
EXTRA_DIST=		config/config.rpath m4/gnulib-cache.m4 \
1130.3.42 by Monty Taylor
Fied check_include_guards for distcheck.
42
			config/autorun.sh Doxyfile \
1192.3.6 by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking.
43
			config/bzr_revinfo \
1130.3.43 by Monty Taylor
Moved checks for inclusion of config.h in headers to cpplint. Made the test running cpplint more general.
44
			extra/run_cpplint.sh  \
1130.3.42 by Monty Taylor
Fied check_include_guards for distcheck.
45
			extra/cpplint.py \
1192.6.2 by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files.
46
			extra/clean_source.sh \
47
			config/make-lint.py
1130.3.42 by Monty Taylor
Fied check_include_guards for distcheck.
48
1022.2.28 by Monty Taylor
Build/dist fixes. Added my_print_defaults back for now - test_run needs it. But now it's a noinst. Moving forward, it either needs to be renamed and installed properly, or it needs to have its functionality wrapped up into something else.
49
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
50
CLEANFILES=		${BUILT_SOURCES}
1192.3.12 by Monty Taylor
Fixed another distcheck issue. Distcheck works now.
51
DISTCLEANFILES=		ac_available_languages_fragment \
52
			.plugin.scan \
1192.3.18 by Monty Taylor
Fixed a distclean ideosyncracy.
53
			config/bzr_revinfo
1192.3.16 by Monty Taylor
Fixed the illusive touch errors in vpath builds.
54
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
55
MAINTAINERCLEANFILES=	autom4te.cache
992.1.18 by Monty Taylor
Moved client build into root Makefile.
56
57
CLIENT_LDADD=		mysys/libmysys.la \
58
			mystrings/libmystrings.la \
59
			$(LIBDRIZZLE) $(LIBINTL) $(LIBZ) \
60
			client/libgetpassword.la
61
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
62
noinst_LTLIBRARIES+= \
992.1.18 by Monty Taylor
Moved client build into root Makefile.
63
		client/libgetpassword.la \
64
		mysys/libmysys.la \
65
		mystrings/libmystrings.la
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
66
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
67
noinst_PROGRAMS+=\
1022.2.28 by Monty Taylor
Build/dist fixes. Added my_print_defaults back for now - test_run needs it. But now it's a noinst. Moving forward, it either needs to be renamed and installed properly, or it needs to have its functionality wrapped up into something else.
68
		client/drizzletest \
69
		extra/my_print_defaults
1022.2.26 by Monty Taylor
Fixed an oops.
70
997.2.13 by Monty Taylor
Made client programs install properly.
71
bin_PROGRAMS= \
992.1.18 by Monty Taylor
Moved client build into root Makefile.
72
		client/drizzle \
73
		client/drizzledump \
74
		client/drizzleimport \
1022.2.26 by Monty Taylor
Fixed an oops.
75
		client/drizzleslap
992.1.17 by Monty Taylor
Moved extra/ into root Makefile.am
76
1022.2.25 by Monty Taylor
Imported manpages for the things we ship. Started to edit the names of thing. Changed the port/password options in the drizzle.1 manpage.
77
man_MANS=\
78
		client/drizzle.1 \
79
		client/drizzled.8 \
80
		client/drizzledump.1 \
81
		client/drizzleimport.1 \
82
		client/drizzleslap.1
992.1.18 by Monty Taylor
Moved client build into root Makefile.
83
84
client_libgetpassword_la_SOURCES= client/get_password.cc
85
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
86
noinst_HEADERS+=	\
992.1.18 by Monty Taylor
Moved client build into root Makefile.
87
		client/client_priv.h \
994.2.4 by Monty Taylor
Blast. Fixed some make distcheck issues.
88
		client/errname.h \
992.1.18 by Monty Taylor
Moved client build into root Makefile.
89
		client/get_password.h \
1095.2.1 by Robert Klahn
Replace typedef struct LINE_BUFFER with class LineBuffer, encapsulating current logic
90
		client/linebuffer.h \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
91
		drizzled/configmake.h \
992.1.16 by Monty Taylor
Moved mystrings build into root Makefile.
92
		mystrings/decimal.h \
1089.1.12 by Brian Aker
Refactor dynamic out to its own files.
93
		mysys/dynamic_array.h \
992.1.16 by Monty Taylor
Moved mystrings build into root Makefile.
94
		mystrings/m_ctype.h \
95
		mystrings/m_string.h \
96
		mystrings/my_uctype.h \
994.2.4 by Monty Taylor
Blast. Fixed some make distcheck issues.
97
		mystrings/t_ctype.h \
98
		mystrings/utf8.h \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
99
		mysys/aio_result.h \
1089.2.1 by David Shrewsbury
Add a new CachedDirectory class that handles opendir/readdir operations for all systems.
100
		mysys/cached_directory.h \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
101
		mysys/definitions.h \
102
		mysys/drizzle_time.h \
103
		mysys/hash.h \
104
		mysys/iocache.h \
105
		mysys/my_alloc.h \
106
		mysys/my_bit.h \
1005.2.1 by Monty Taylor
Reverted a crap-ton of padraig's work.
107
		mysys/my_bitmap.h \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
108
		mysys/my_dir.h \
109
		mysys/my_getopt.h \
110
		mysys/my_pthread.h \
111
		mysys/my_static.h \
112
		mysys/my_sys.h \
113
		mysys/my_time.h \
114
		mysys/my_tree.h \
115
		mysys/mysys_err.h \
116
		mysys/mysys_priv.h \
117
		mysys/thr_lock.h \
118
		mysys/typelib.h
119
992.1.16 by Monty Taylor
Moved mystrings build into root Makefile.
120
mystrings_libmystrings_la_SOURCES= \
121
		mystrings/bmove_upp.cc \
122
		mystrings/ctype-bin.cc \
123
		mystrings/ctype-mb.cc \
124
		mystrings/ctype-simple.cc \
125
		mystrings/ctype-uca.cc \
126
		mystrings/ctype-utf8.cc \
127
		mystrings/ctype.cc \
128
		mystrings/decimal.cc \
129
		mystrings/dtoa.cc \
130
		mystrings/int2str.cc \
131
		mystrings/llstr.cc \
132
		mystrings/longlong2str.cc \
999.1.1 by Toru Maesaka
Removed str2int() from the original string library by MySQL. Use strtol(3) instead.
133
		mystrings/my_strtoll10.cc
992.1.16 by Monty Taylor
Moved mystrings build into root Makefile.
134
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
135
mysys_libmysys_la_SOURCES= \
1089.2.1 by David Shrewsbury
Add a new CachedDirectory class that handles opendir/readdir operations for all systems.
136
		mysys/cached_directory.cc \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
137
		mysys/charset-def.cc \
138
		mysys/charset.cc \
139
		mysys/checksum.cc \
140
		mysys/default.cc \
1089.1.12 by Brian Aker
Refactor dynamic out to its own files.
141
		mysys/dynamic_array.cc \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
142
		mysys/errors.cc \
143
		mysys/hash.cc \
144
		mysys/mf_arr_appstr.cc \
145
		mysys/mf_cache.cc \
146
		mysys/mf_dirname.cc \
147
		mysys/mf_fn_ext.cc \
148
		mysys/mf_format.cc \
149
		mysys/mf_getdate.cc \
150
		mysys/mf_iocache.cc \
151
		mysys/mf_loadpath.cc \
152
		mysys/mf_pack.cc \
153
		mysys/mf_qsort.cc \
154
		mysys/mf_qsort2.cc \
155
		mysys/mf_radix.cc \
156
		mysys/mf_same.cc \
157
		mysys/mf_sort.cc \
158
		mysys/mf_tempfile.cc \
159
		mysys/mf_wcomp.cc \
160
		mysys/my_access.cc \
161
		mysys/my_alloc.cc \
162
		mysys/my_bit.cc \
1005.2.1 by Monty Taylor
Reverted a crap-ton of padraig's work.
163
		mysys/my_bitmap.cc \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
164
		mysys/my_copy.cc \
165
		mysys/my_create.cc \
166
		mysys/my_delete.cc \
167
		mysys/my_error.cc \
168
		mysys/my_getopt.cc \
169
		mysys/my_getsystime.cc \
170
		mysys/my_init.cc \
171
		mysys/my_lib.cc \
172
		mysys/my_open.cc \
173
		mysys/my_read.cc \
174
		mysys/my_redel.cc \
175
		mysys/my_rename.cc \
176
		mysys/my_static.cc \
177
		mysys/my_symlink.cc \
178
		mysys/my_symlink2.cc \
179
		mysys/my_sync.cc \
180
		mysys/my_thr_init.cc \
181
		mysys/my_time.cc \
1164 by Brian Aker
Small cleanup.
182
		mysys/my_tree.cc \
992.1.15 by Monty Taylor
Moved mysys build into root Makefile.
183
		mysys/my_write.cc \
184
		mysys/ptr_cmp.cc \
185
		mysys/thr_lock.cc \
186
		mysys/typelib.cc
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
187
1095.2.1 by Robert Klahn
Replace typedef struct LINE_BUFFER with class LineBuffer, encapsulating current logic
188
client_drizzle_SOURCES=		client/drizzle.cc client/linebuffer.cc
992.1.18 by Monty Taylor
Moved client build into root Makefile.
189
client_drizzle_LDADD=		${CLIENT_LDADD} ${READLINE_LIBS}
190
191
client_drizzledump_SOURCES=	client/drizzledump.cc
192
client_drizzledump_LDADD=	${CLIENT_LDADD}
193
194
client_drizzleimport_SOURCES=	client/drizzleimport.cc
195
client_drizzleimport_LDADD=	${CLIENT_LDADD}
196
197
client_drizzleslap_SOURCES=	client/drizzleslap.cc
1099.1.2 by Monty Taylor
Merged Ross from lp:~rwmcfa1/+junk/drizzle-freebsd
198
client_drizzleslap_LDADD=	${CLIENT_LDADD}
992.1.18 by Monty Taylor
Moved client build into root Makefile.
199
1103.4.1 by Robert Klahn
make client/drizzletest.cc, new client/errname.cc compile in a reasonable amount of time and memory
200
client_drizzletest_SOURCES=	client/drizzletest.cc client/errname.cc
992.1.18 by Monty Taylor
Moved client build into root Makefile.
201
client_drizzletest_LDADD=	${CLIENT_LDADD} ${LIBPCRE}
202
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
203
EXTRA_LTLIBRARIES=
204
pkgplugin_LTLIBRARIES=
1192.4.1 by Robert Collins
Merged buildsystem change from lifeless.
205
include config/pandora-plugin.am
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
206
1022.2.28 by Monty Taylor
Build/dist fixes. Added my_print_defaults back for now - test_run needs it. But now it's a noinst. Moving forward, it either needs to be renamed and installed properly, or it needs to have its functionality wrapped up into something else.
207
extra_my_print_defaults_SOURCES= extra/my_print_defaults.cc
208
extra_my_print_defaults_LDADD= \
209
		$(top_builddir)/mysys/libmysys.la \
210
		$(top_builddir)/mystrings/libmystrings.la \
211
		$(LIBINTL)
212
213
EXTRA_DIST+=	${man_MANS}
77.1.106 by Monty Taylor
Another batch of distclean fixes.
214
1192.6.2 by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files.
215
.PHONY: \
216
	indent \
217
	test
218
1 by brian
clean slate
219
220
# Target 'test' will run the regression test suite using the built server.
221
#
222
# If you are running in a shared environment, users can avoid clashing
223
# port numbers by setting individual small numbers 1-100 to the
168 by Brian Aker
Rename of test (better tab completion!)
224
# environment variable MTR_BUILD_THREAD. The script "test-run"
1 by brian
clean slate
225
# will then calculate the various port numbers it needs from this,
226
# making sure each user use different ports.
227
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
228
test: test-drizzle
229
264.3.1 by Jay Pipes
* Added Doxyfile configuration for doxygen builds
230
doxygen:
231
	doxygen Doxyfile
656.1.11 by Monty Taylor
Added indent rule and uncrustify config.
232
233
indent:
234
	for f in `find ${top_srcdir} -type f | grep -v innobase |\
235
                  ${EGREP} '\.(cc|c|h)$$' ` ; do \
236
            uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
237
               -o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
238
        done
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
239
240
drizzled/configmake.h: ${top_srcdir}/Makefile.in
241
	@echo "Making $@"
242
	@rm -f $@-t $@
243
	@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
244
	  echo '#define PREFIX "$(prefix)"'; \
245
	  echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
246
	  echo '#define BINDIR "$(bindir)"'; \
247
	  echo '#define SBINDIR "$(sbindir)"'; \
248
	  echo '#define LIBEXECDIR "$(libexecdir)"'; \
249
	  echo '#define DATAROOTDIR "$(datarootdir)"'; \
250
	  echo '#define DATADIR "$(datadir)"'; \
251
	  echo '#define SYSCONFDIR "$(sysconfdir)"'; \
252
	  echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
253
	  echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
254
	  echo '#define INCLUDEDIR "$(includedir)"'; \
255
	  echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
256
	  echo '#define DOCDIR "$(docdir)"'; \
257
	  echo '#define INFODIR "$(infodir)"'; \
258
	  echo '#define HTMLDIR "$(htmldir)"'; \
259
	  echo '#define DVIDIR "$(dvidir)"'; \
260
	  echo '#define PDFDIR "$(pdfdir)"'; \
261
	  echo '#define PSDIR "$(psdir)"'; \
262
	  echo '#define LIBDIR "$(libdir)"'; \
263
	  echo '#define LISPDIR "$(lispdir)"'; \
264
	  echo '#define LOCALEDIR "$(localedir)"'; \
265
	  echo '#define MANDIR "$(mandir)"'; \
266
	  echo '#define MANEXT "$(manext)"'; \
267
	  echo '#define PKGDATADIR "$(pkgdatadir)"'; \
268
	  echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
269
	  echo '#define PKGLIBDIR "$(pkglibdir)"'; \
270
	  echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
271
	  echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
1192.3.6 by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking.
272
          echo '#undef VERSION'; \
273
          echo '#define VERSION "${PANDORA_RELEASE_VERSION}"'; \
274
          echo '#define DRIZZLE_VERSION_ID $(PANDORA_RELEASE_ID)'; \
275
          echo '#define DRIZZLE_RELEASE_COMMENT "${PANDORA_RELEASE_COMMENT}"'; \
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
276
	} | sed '/""/d' > $@-t
277
	@if diff $@-t $@ >/dev/null 2>&1 ; then \
278
	  rm @-t ; \
279
	else \
280
	  mv $@-t $@ ; \
281
	fi
282
1126.12.1 by Lee Bieber
add clean-local target to remove lcov .gcno files. Also remove if HAVE_LCOV section from Makefile.am and lcov checks from configure.ac as they are not used nor needed
283
clean-local:
1138.1.1 by Monty Taylor
Fix for the distcheck build issue.
284
	find . -name '*.gcno' | xargs rm -f 
1126.12.1 by Lee Bieber
add clean-local target to remove lcov .gcno files. Also remove if HAVE_LCOV section from Makefile.am and lcov checks from configure.ac as they are not used nor needed
285
1192.6.2 by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files.
286
include config/lint-source.am
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
287
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
288
include drizzled/include.am
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
289
include drizzled/hash/include.am
1192.3.58 by Monty Taylor
Merged up with build.
290
include drizzled/util/include.am
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
291
include drizzled/message/include.am
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
292
include support-files/include.am
293
include tests/include.am