~drizzle-trunk/drizzle/development

2449.1.1 by Brian Aker
This fixes the race condition on pkg, as well as the php client compile failure.
1
# vim:ft=automake
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
2
#
3
# Drizzle Client Library
4
#
5
# Copyright (C) 2008 Eric Day (eday@oddments.org)
6
# All rights reserved.
7
#
8
# Redistribution and use in source and binary forms, with or without
9
# modification, are permitted provided that the following conditions are
10
# met:
11
#
12
#     * Redistributions of source code must retain the above copyright
13
# notice, this list of conditions and the following disclaimer.
14
#
15
#     * Redistributions in binary form must reproduce the above
16
# copyright notice, this list of conditions and the following disclaimer
17
# in the documentation and/or other materials provided with the
18
# distribution.
19
#
20
#     * The names of its contributors may not be used to endorse or
21
# promote products derived from this software without specific prior
22
# written permission.
23
#
24
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
#
36
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
37
noinst_LTLIBRARIES+= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
38
39
if HAVE_LIBSQLITE3
40
SQLITE_PROGS= examples/sqlite_server
41
endif
42
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
43
noinst_PROGRAMS+= libdrizzle-2.0/mysql_password_hash
44
libdrizzle_2_0_mysql_password_hash_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
45
libdrizzle_2_0_mysql_password_hash_SOURCES= libdrizzle-2.0/mysql_password_hash.cc
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
46
2426.3.1 by Henrik Ingo
This does 2 things:
47
# For some reason this has originally been called mysql_password_hash. I'd prefer
48
# to call it drizzle_password_hash but to remain backward compatible I didn't
49
# change any sources, rather just build it twice and provide both.
50
# Only drizzle_password_hash is installed by make install though.
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
51
noinst_PROGRAMS+= libdrizzle-2.0/drizzle_password_hash
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
52
libdrizzle_2_0_drizzle_password_hash_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
53
libdrizzle_2_0_drizzle_password_hash_SOURCES= libdrizzle-2.0/mysql_password_hash.cc
2426.3.1 by Henrik Ingo
This does 2 things:
54
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
55
noinst_PROGRAMS+= \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
56
		  $(SQLITE_PROGS) \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
57
		  examples/client \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
58
		  examples/pipe_query \
59
		  examples/proxy \
60
		  examples/server \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
61
		  examples/simple \
62
		  examples/simple_multi \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
63
		  libdrizzle-2.0/mysql_password_hash
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
64
65
libdrizzle_2_0_libdrizzle_2_0_la_CXXFLAGS= \
66
					   ${AM_CXXFLAGS} \
67
					   ${CFLAG_VISIBILITY} \
68
					   -DBUILDING_LIBDRIZZLE
69
70
libdrizzle_2_0_libdrizzle_2_0_la_LDFLAGS= \
71
					  $(AM_LDFLAGS) \
2472.1.8 by Brian Aker
Cleanup yacc include, remove dead PC file, and put in the basics for RPM.
72
					  $(GCOV_LIBS)
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
73
libdrizzle_2_0_libdrizzle_2_0_la_SOURCES= \
74
					  libdrizzle-2.0/column.cc \
75
					  libdrizzle-2.0/command.cc \
76
					  libdrizzle-2.0/conn.cc \
77
					  libdrizzle-2.0/conn_uds.cc \
78
					  libdrizzle-2.0/drizzle.cc \
79
					  libdrizzle-2.0/field.cc \
80
					  libdrizzle-2.0/handshake.cc \
81
					  libdrizzle-2.0/pack.cc \
82
					  libdrizzle-2.0/query.cc \
83
					  libdrizzle-2.0/result.cc \
84
					  libdrizzle-2.0/row.cc \
85
					  libdrizzle-2.0/sha1.cc \
86
					  libdrizzle-2.0/state.cc
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
87
88
examples_server_SOURCES= examples/server.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
89
examples_server_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
90
91
examples_proxy_SOURCES= examples/proxy.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
92
examples_proxy_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
93
94
examples_client_SOURCES= examples/client.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
95
examples_client_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
96
97
examples_simple_SOURCES= examples/simple.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
98
examples_simple_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
99
100
examples_simple_multi_SOURCES= examples/simple_multi.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
101
examples_simple_multi_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
102
103
examples_pipe_query_SOURCES= examples/pipe_query.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
104
examples_pipe_query_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
105
106
if HAVE_LIBSQLITE3
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
107
examples_sqlite_server_LDFLAGS= libdrizzle-2.0/libdrizzle-2.0.la $(LTLIBSQLITE3)
108
examples_sqlite_server_DEPENDENCIES= libdrizzle-2.0/libdrizzle-2.0.la
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
109
examples_sqlite_server_SOURCES= examples/sqlite_server.cc
110
endif
111
112
noinst_HEADERS+= \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
113
		 libdrizzle-2.0/column.h \
114
		 libdrizzle-2.0/column_client.h \
115
		 libdrizzle-2.0/column_server.h \
116
		 libdrizzle-2.0/command.h \
117
		 libdrizzle-2.0/command_client.h \
118
		 libdrizzle-2.0/command_server.h \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
119
		 libdrizzle-2.0/common.h \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
120
		 libdrizzle-2.0/conn.h \
121
		 libdrizzle-2.0/conn_client.h \
2463.1.4 by Brian Aker
Remove con from being passed object.
122
		 libdrizzle-2.0/conn_local.h \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
123
		 libdrizzle-2.0/conn_server.h \
124
		 libdrizzle-2.0/constants.h \
125
		 libdrizzle-2.0/deprecated_enum.h \
126
		 libdrizzle-2.0/drizzle.h \
127
		 libdrizzle-2.0/drizzle_client.h \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
128
		 libdrizzle-2.0/drizzle_local.h \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
129
		 libdrizzle-2.0/drizzle_server.h \
130
		 libdrizzle-2.0/field_client.h \
131
		 libdrizzle-2.0/field_server.h \
132
		 libdrizzle-2.0/handshake_client.h \
133
		 libdrizzle-2.0/handshake_server.h \
2463.1.4 by Brian Aker
Remove con from being passed object.
134
		 libdrizzle-2.0/libdrizzle.h \
135
		 libdrizzle-2.0/libdrizzle.hpp \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
136
		 libdrizzle-2.0/limits.h \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
137
		 libdrizzle-2.0/pack.h \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
138
		 libdrizzle-2.0/query.h \
139
		 libdrizzle-2.0/result.h \
140
		 libdrizzle-2.0/result_client.h \
141
		 libdrizzle-2.0/result_server.h \
142
		 libdrizzle-2.0/return.h \
143
		 libdrizzle-2.0/row_client.h \
144
		 libdrizzle-2.0/row_server.h \
2463.1.4 by Brian Aker
Remove con from being passed object.
145
		 libdrizzle-2.0/sha1.h \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
146
		 libdrizzle-2.0/state.h \
2463.1.6 by Brian Aker
Remove support for installing libdrizzle-2.0 until we get it stabalized
147
		 libdrizzle-2.0/structs.h \
148
		 libdrizzle-2.0/verbose.h \
149
		 libdrizzle-2.0/visibility.h