~drizzle-trunk/drizzle/development

1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
1
# vim:ft=automake
316 by Brian Aker
First pass of new sql_db.cc work
2
# Copyright (C) 2000-2006 MySQL AB
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
3
# Copyright (C) 2010 Brian Aker
316 by Brian Aker
First pass of new sql_db.cc work
4
# 
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; version 2 of the License.
8
# 
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
# 
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
18
MESSAGE_DIR=drizzled/message
1497.3.3 by Monty Taylor
Fixed lcov builds. Fixed the dtrace enabling.
19
MESSAGE_LDADD= \
20
	       ${MESSAGE_DIR}/libdrizzledmessage.la \
21
	       ${LIBPROTOBUF} \
22
	       ${LIBUUID} \
23
	       ${LTLIBINTL} \
24
	       $(GCOV_LIBS) \
1638.9.16 by Stewart Smith
link fix for libdrizzled_message
25
		drizzled/internal/libinternal.la
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
26
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
27
MESSAGE_AM_CXXFLAGS = ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
28
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
29
noinst_PROGRAMS+= \
30
		  drizzled/message/schema_reader \
31
		  drizzled/message/schema_writer \
32
		  drizzled/message/table_raw_reader \
33
		  drizzled/message/table_reader \
34
		  drizzled/message/table_writer \
35
		  drizzled/message/transaction_reader \
36
		  drizzled/message/transaction_writer
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
37
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
38
lib_LTLIBRARIES += drizzled/message/libdrizzledmessage.la
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
39
40
drizzled_message_libdrizzledmessage_la_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR}
41
42
drizzled_message_libdrizzledmessage_la_SOURCES = drizzled/message/statement_transform.cc
1638.9.16 by Stewart Smith
link fix for libdrizzled_message
43
drizzled_message_libdrizzledmessage_la_LIBADD= ${LTLIBPROTOBUF} $(GCOV_LIBS) drizzled/libcharset.la
1638.9.15 by Stewart Smith
fix linking of drizzled/message lib and libcharset
44
1253.2.2 by Monty Taylor
Fixed header install.
45
nobase_dist_include_HEADERS+= drizzled/message/statement_transform.h
1039.5.67 by Jay Pipes
Fix incorrect Makefile additions for command_transform.h/cc
46
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
47
nodist_drizzled_message_libdrizzledmessage_la_SOURCES = \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
48
							drizzled/message/engine.pb.cc \
49
							drizzled/message/transaction.pb.cc \
50
							drizzled/message/schema.pb.cc \
51
							drizzled/message/table.pb.cc
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
52
1253.2.2 by Monty Taylor
Fixed header install.
53
nobase_nodist_include_HEADERS+= \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
54
				drizzled/message/engine.pb.h \
55
				drizzled/message/transaction.pb.h \
56
				drizzled/message/schema.pb.h \
57
				drizzled/message/table.pb.h 
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
58
59
noinst_HEADERS+= \
60
		drizzled/message/ioutil.h \
61
		drizzled/message/all.h
62
63
64
drizzled_message_schema_reader_SOURCES =  drizzled/message/schema_reader.cc
65
drizzled_message_schema_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
66
drizzled_message_schema_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
67
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
68
drizzled_message_schema_writer_SOURCES =  drizzled/message/schema_writer.cc
69
drizzled_message_schema_writer_LDADD = ${MESSAGE_LDADD}
70
drizzled_message_schema_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
71
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
72
drizzled_message_table_reader_SOURCES =  drizzled/message/table_reader.cc
73
drizzled_message_table_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
74
drizzled_message_table_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
75
76
drizzled_message_table_raw_reader_SOURCES =  drizzled/message/table_raw_reader.cc
77
drizzled_message_table_raw_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
78
drizzled_message_table_raw_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
79
80
drizzled_message_table_writer_SOURCES =  drizzled/message/table_writer.cc
1702.2.1 by Monty Taylor
Removed gnulib and the last usage of normal getopt.
81
drizzled_message_table_writer_LDADD = ${MESSAGE_LDADD} ${BOOST_LIBS}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
82
drizzled_message_table_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
83
1300.5.23 by Monty Taylor
Merged in revs removing depend on the plugin tree.
84
drizzled_message_transaction_writer_SOURCES =  drizzled/message/transaction_writer.cc
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
85
drizzled_message_transaction_writer_LDADD = ${MESSAGE_LDADD} ${top_builddir}/drizzled/algorithm/libhash.la
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
86
drizzled_message_transaction_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR}
87
1300.5.23 by Monty Taylor
Merged in revs removing depend on the plugin tree.
88
drizzled_message_transaction_reader_SOURCES =  drizzled/message/transaction_reader.cc
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
89
drizzled_message_transaction_reader_LDADD = ${MESSAGE_LDADD} ${top_builddir}/drizzled/algorithm/libhash.la ${top_builddir}/drizzled/util/libutil.la
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
90
drizzled_message_transaction_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR}
91
92
EXTRA_DIST += \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
93
		${MESSAGE_DIR}/engine.proto \
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
94
		${MESSAGE_DIR}/schema.proto \
95
		${MESSAGE_DIR}/table.proto \
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
96
		${MESSAGE_DIR}/transaction.proto
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
97
98
BUILT_SOURCES += \
1502.1.32 by Brian Aker
Remove old master list bits.
99
		${MESSAGE_DIR}/engine.pb.h \
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
100
		${MESSAGE_DIR}/schema.pb.h \
101
		${MESSAGE_DIR}/table.pb.h \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
102
		${MESSAGE_DIR}/transaction.pb.h
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
103
104
CLEANFILES += \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
105
	    ${MESSAGE_DIR}/engine.pb.h \
106
	    ${MESSAGE_DIR}/engine.pb.cc \
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
107
	    ${MESSAGE_DIR}/schema.pb.h \
108
	    ${MESSAGE_DIR}/schema.pb.cc \
109
	    ${MESSAGE_DIR}/table.pb.h \
110
	    ${MESSAGE_DIR}/table.pb.cc \
111
	    ${MESSAGE_DIR}/transaction.pb.h \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
112
	    ${MESSAGE_DIR}/transaction.pb.cc
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
113
114
SUFFIXES += .proto .pb.cc .pb.h
115
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
116
MESSAGE_PROTO_PATH=${top_builddir}/${MESSAGE_DIR}:${top_srcdir}/${MESSAGE_DIR}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
117
722.1.1 by Monty Taylor
Removed Gnu-Make-isms, since there were only two and we really don't need them and I'm sick of having make break when I accidentally type "make" (silly me) on Solaris.
118
.proto.pb.cc:
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
119
	$(PROTOC) --proto_path=${MESSAGE_PROTO_PATH} \
120
		--cpp_out=${top_builddir}/${MESSAGE_DIR} $<
722.1.1 by Monty Taylor
Removed Gnu-Make-isms, since there were only two and we really don't need them and I'm sick of having make break when I accidentally type "make" (silly me) on Solaris.
121
.proto.pb.h:
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
122
	$(PROTOC) --proto_path=${MESSAGE_PROTO_PATH} \
988.1.1 by Jay Pipes
Changes libserialize to libdrizzledmessage per ML discussion. All GPB messages are now in the drizzled::message namespace.
123
		--cpp_out=${top_builddir}/drizzled/message $<