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