~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 =
1253.2.2 by Monty Taylor
Fixed header install.
23
nobase_nodist_include_HEADERS =
24
nobase_dist_include_HEADERS =
1644.3.4 by Barry.Leslie at PrimeBase
Install the pbmslib.h file using the automake dist_include_HEADERS list.
25
dist_include_HEADERS =
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
26
sbin_PROGRAMS =
1241.9.4 by Monty Taylor
Beginnings of what we need to do to support -fvisibility=hidden.
27
lib_LTLIBRARIES = 
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
28
noinst_LTLIBRARIES =
29
noinst_PROGRAMS =
30
1192.3.6 by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking.
31
VERSION=$(PANDORA_RELEASE_VERSION)
32
1719.1.2 by Monty Taylor
Ok. FFS.
33
SUBDIRS = .
34
if BUILD_PO
35
SUBDIRS += po
36
endif
187 by Brian Aker
Fixed tab issue
37
1192.3.73 by Monty Taylor
Fix distcheck.
38
DIST_SUBDIRS = ${SUBDIRS} tests
39
1608.4.1 by Monty Taylor
Changed the way we generated configmake.h to prevent it from being
40
BUILT_SOURCES=
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
41
EXTRA_DIST= \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
42
	    .quickly \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
43
	    DRIZZLE.FAQ \
44
	    EXCEPTIONS-CLIENT \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
45
	    config/autorun.sh \
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
46
	    config/config.rpath \
1377.3.6 by Monty Taylor
Set the default plugin version for plugins not specifying a version to be
47
	    config/make-lint.py \
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
48
	    config/pandora_vc_revinfo \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
49
	    config/pre_hook.sh \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
50
	    config/uncrustify.cfg \
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
51
	    extra/clean_source.sh \
52
	    extra/cpplint.py \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
53
	    extra/run_cpplint.sh \
54
	    ${top_srcdir}/m4/pandora*m4
1130.3.42 by Monty Taylor
Fied check_include_guards for distcheck.
55
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.
56
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
57
CLEANFILES=		${BUILT_SOURCES}
1192.3.12 by Monty Taylor
Fixed another distcheck issue. Distcheck works now.
58
DISTCLEANFILES=		ac_available_languages_fragment \
59
			.plugin.scan \
1253.2.4 by Monty Taylor
Some GCC warnings fixes.
60
			config/bzr_revinfo \
1667.4.1 by Monty Taylor
Removed gettext - replaced with intltool. Dear god it's so much better.
61
			config/top.h \
62
			intltool-extract \
63
			intltool-merge \
64
			intltool-update
1192.3.16 by Monty Taylor
Fixed the illusive touch errors in vpath builds.
65
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
66
MAINTAINERCLEANFILES=	autom4te.cache
992.1.18 by Monty Taylor
Moved client build into root Makefile.
67
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
68
EXTRA_LTLIBRARIES=
69
pkgplugin_LTLIBRARIES=
1192.4.1 by Robert Collins
Merged buildsystem change from lifeless.
70
include config/pandora-plugin.am
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
71
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.
72
EXTRA_DIST+=	${man_MANS}
77.1.106 by Monty Taylor
Another batch of distclean fixes.
73
1192.6.2 by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files.
74
.PHONY: \
1471.3.1 by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck.
75
	indent
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
76
1608.4.1 by Monty Taylor
Changed the way we generated configmake.h to prevent it from being
77
264.3.1 by Jay Pipes
* Added Doxyfile configuration for doxygen builds
78
doxygen:
1712.1.1 by Monty Taylor
Merged libdrizzle directly into tree.
79
	${DOXYGEN} docs/Doxyfile.api
80
	${DOXYGEN} docs/Doxyfile.dev
81
	${DOXYGEN} docs/Doxyfile.drizzled
656.1.11 by Monty Taylor
Added indent rule and uncrustify config.
82
83
indent:
84
	for f in `find ${top_srcdir} -type f | grep -v innobase |\
85
                  ${EGREP} '\.(cc|c|h)$$' ` ; do \
86
            uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
87
               -o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
88
        done
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
89
1608.4.3 by Monty Taylor
Changed the way we generated configmake.h - this time with working
90
BUILT_SOURCES+= drizzled/configmake.h
91
nobase_nodist_include_HEADERS+= drizzled/configmake.h
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
92
drizzled/configmake.h: ${top_srcdir}/Makefile.in
93
	@echo "Making $@"
94
	@rm -f $@-t $@
95
	@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
96
	  echo '#define PREFIX "$(prefix)"'; \
97
	  echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
98
	  echo '#define BINDIR "$(bindir)"'; \
99
	  echo '#define SBINDIR "$(sbindir)"'; \
100
	  echo '#define LIBEXECDIR "$(libexecdir)"'; \
101
	  echo '#define DATAROOTDIR "$(datarootdir)"'; \
102
	  echo '#define DATADIR "$(datadir)"'; \
103
	  echo '#define SYSCONFDIR "$(sysconfdir)"'; \
104
	  echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
105
	  echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
106
	  echo '#define INCLUDEDIR "$(includedir)"'; \
107
	  echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
108
	  echo '#define DOCDIR "$(docdir)"'; \
109
	  echo '#define INFODIR "$(infodir)"'; \
110
	  echo '#define HTMLDIR "$(htmldir)"'; \
111
	  echo '#define DVIDIR "$(dvidir)"'; \
112
	  echo '#define PDFDIR "$(pdfdir)"'; \
113
	  echo '#define PSDIR "$(psdir)"'; \
114
	  echo '#define LIBDIR "$(libdir)"'; \
115
	  echo '#define LISPDIR "$(lispdir)"'; \
116
	  echo '#define LOCALEDIR "$(localedir)"'; \
117
	  echo '#define MANDIR "$(mandir)"'; \
118
	  echo '#define MANEXT "$(manext)"'; \
119
	  echo '#define PKGDATADIR "$(pkgdatadir)"'; \
120
	  echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
121
	  echo '#define PKGLIBDIR "$(pkglibdir)"'; \
122
	  echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
123
	  echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
1192.3.6 by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking.
124
          echo '#undef VERSION'; \
125
          echo '#define VERSION "${PANDORA_RELEASE_VERSION}"'; \
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
126
	} | sed '/""/d' > $@-t
127
	@if diff $@-t $@ >/dev/null 2>&1 ; then \
128
	  rm @-t ; \
129
	else \
130
	  mv $@-t $@ ; \
131
	fi
132
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
133
clean-local:
1138.1.1 by Monty Taylor
Fix for the distcheck build issue.
134
	find . -name '*.gcno' | xargs rm -f 
1712.1.1 by Monty Taylor
Merged libdrizzle directly into tree.
135
	-rm -rf docs/api docs/dev
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
136
1192.6.2 by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files.
137
include config/lint-source.am
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
138
1300.5.16 by Monty Taylor
Changed library link ordering.
139
include drizzled/message/include.am
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
140
include drizzled/include.am
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
141
include drizzled/internal/include.am
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
142
include drizzled/algorithm/include.am
1192.3.58 by Monty Taylor
Merged up with build.
143
include drizzled/util/include.am
1265 by Brian Aker
Updated Makefile.am to push client rules to include.am
144
include client/include.am
145
include extra/include.am
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
146
include support-files/include.am
147
include tests/include.am
1377.8.1 by pawel
primitive integration of the testing framework with the building process
148
include unittests/include.am
1712.1.1 by Monty Taylor
Merged libdrizzle directly into tree.
149
include libdrizzle/include.am
1720.1.5 by Monty Taylor
Added libdrizzle to the tree.
150
include win32/include.am
1264 by Brian Aker
Added merge-clean rule that I use :)
151
1491.6.2 by Monty Taylor
Hook in to autoconf and automake.
152
TESTS += ${check_PROGRAMS}
153
1264 by Brian Aker
Added merge-clean rule that I use :)
154
merge-clean:
155
	find ./ | $(GREP) \.orig | xargs rm -f
1657 by Brian Aker
Add back result file that was lost in merge.
156
	find ./ | $(GREP) \.moved | xargs rm -f
1264 by Brian Aker
Added merge-clean rule that I use :)
157
	find ./ | $(GREP) \.rej | xargs rm -f
158
	find ./ | $(GREP) \~$$ | xargs rm -f
159
	bzr unknowns
1286.1.2 by Brian Aker
Added very basic RPM support.
160