~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
# Copyright (C) 2000-2006 MySQL AB
# 
# 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

LDADD= libserialize.la \
	${LIBPROTOBUF} \
	${LIBUUID} \
	${LIBINTL} \
	${top_builddir}/gnulib/libgnu.la

AM_CXXFLAGS += ${PROTOSKIP_WARNINGS}

TESTS_ENVIRONMENT = BINDIR=${top_builddir}/drizzled/serialize sh
TESTS = check_length.sh

noinst_PROGRAMS = \
	       table_reader \
	       table_writer \
	       replication_event_reader \
	       replication_event_writer \
               master_list_reader \
               master_list_writer \
               binlog_reader \
               binlog_writer \
	       schema_reader

check_PROGRAMS = length

noinst_LTLIBRARIES = libserialize.la

libserialize_la_SOURCES = \
		binary_log.pb.cc \
		master_list.pb.cc \
		replication_event.pb.cc \
		schema.pb.cc \
		table.pb.cc

noinst_HEADERS= \
		binary_log.h \
		binary_log.pb.h \
		binlog_encoding.h \
		ioutil.h \
		master_list.pb.h \
		replication_event.pb.h \
		schema.pb.h \
		serialize.h \
		table.pb.h


binlog_reader_SOURCES = binlog_reader.cc binary_log.cc

binlog_writer_SOURCES = binlog_writer.cc binary_log.cc

schema_reader_SOURCES =  schema_reader.cc

table_reader_SOURCES =  table_reader.cc

table_writer_SOURCES =  table_writer.cc

master_list_writer_SOURCES =  master_list_writer.cc

master_list_reader_SOURCES =  master_list_reader.cc

replication_event_writer_SOURCES =  replication_event_writer.cc

replication_event_reader_SOURCES =  replication_event_reader.cc

length_SOURCES = length.cc

EXTRA_DIST = schema.proto table.proto binary_log.proto master_list.proto replication_event.proto check_length.sh
BUILT_SOURCES = schema.pb.h \
		table.pb.h \
		binary_log.pb.h \
		replication_event.pb.h \
		master_list.pb.h

CLEANFILES =  binary_log.pb.h \
              binary_log.pb.cc \
              schema.pb.h \
              schema.pb.cc \
              table.pb.h \
              table.pb.cc \
	      replication_event.pb.h \
              replication_event.pb.cc \
              master_list.pb.h \
              master_list.pb.cc

SUFFIXES = .proto .pb.cc .pb.h
.proto.pb.cc:
	$(PROTOC) --proto_path=.:${top_srcdir}/drizzled/serialize \
		--cpp_out=${top_builddir}/drizzled/serialize $<
.proto.pb.h:
	$(PROTOC) --proto_path=.:${top_srcdir}/drizzled/serialize \
		--cpp_out=${top_builddir}/drizzled/serialize $<