~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
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
37
lib_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_CXXFLAGS= ${AM_CXXFLAGS} ${LIBDRIZZLE_CPPFLAGS}
45
libdrizzle_2_0_mysql_password_hash_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
46
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.
47
2426.3.1 by Henrik Ingo
This does 2 things:
48
# For some reason this has originally been called mysql_password_hash. I'd prefer
49
# to call it drizzle_password_hash but to remain backward compatible I didn't
50
# change any sources, rather just build it twice and provide both.
51
# Only drizzle_password_hash is installed by make install though.
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
52
bin_PROGRAMS+= libdrizzle-2.0/drizzle_password_hash
53
libdrizzle_2_0_drizzle_password_hash_CXXFLAGS= ${AM_CXXFLAGS} ${LIBDRIZZLE_CPPFLAGS}
54
libdrizzle_2_0_drizzle_password_hash_LDADD= libdrizzle-2.0/libdrizzle-2.0.la
55
libdrizzle_2_0_drizzle_password_hash_SOURCES= libdrizzle-2.0/mysql_password_hash.cc
2426.3.1 by Henrik Ingo
This does 2 things:
56
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
57
noinst_PROGRAMS+= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
58
		  examples/client \
59
		  examples/simple \
60
		  examples/simple_multi \
61
		  examples/pipe_query \
62
		  examples/server \
63
		  examples/proxy \
64
		  $(SQLITE_PROGS)
65
66
libdrizzle_2_0_libdrizzle_2_0_la_CXXFLAGS= \
67
					   ${AM_CXXFLAGS} \
68
					   ${LIBDRIZZLE_CPPFLAGS} \
69
					   ${CFLAG_VISIBILITY} \
70
					   -DBUILDING_LIBDRIZZLE
71
72
libdrizzle_2_0_libdrizzle_2_0_la_LDFLAGS= \
73
					  $(AM_LDFLAGS) \
74
					  $(GCOV_LIBS) \
75
					  -version-info \
76
					  $(LIBDRIZZLE_LIBRARY_VERSION)
77
78
libdrizzle_2_0_libdrizzle_2_0_la_SOURCES= \
79
					  libdrizzle-2.0/column.cc \
80
					  libdrizzle-2.0/command.cc \
81
					  libdrizzle-2.0/conn.cc \
82
					  libdrizzle-2.0/conn_uds.cc \
83
					  libdrizzle-2.0/drizzle.cc \
84
					  libdrizzle-2.0/field.cc \
85
					  libdrizzle-2.0/handshake.cc \
86
					  libdrizzle-2.0/pack.cc \
87
					  libdrizzle-2.0/query.cc \
88
					  libdrizzle-2.0/result.cc \
89
					  libdrizzle-2.0/row.cc \
90
					  libdrizzle-2.0/sha1.cc \
91
					  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.
92
93
examples_server_CXXFLAGS= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
94
			  $(AM_CXXFLAGS) \
95
			  ${LIBDRIZZLE_CPPFLAGS}
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
96
examples_server_SOURCES= examples/server.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
97
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.
98
99
examples_proxy_CXXFLAGS= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
100
			 $(AM_CXXFLAGS) \
101
			 ${LIBDRIZZLE_CPPFLAGS}
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
102
examples_proxy_SOURCES= examples/proxy.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
103
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.
104
105
examples_client_CXXFLAGS= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
106
			  $(AM_CXXFLAGS) \
107
			  ${LIBDRIZZLE_CPPFLAGS}
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
108
examples_client_SOURCES= examples/client.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
109
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.
110
111
examples_simple_CXXFLAGS= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
112
			  $(AM_CXXFLAGS) \
113
			  ${LIBDRIZZLE_CPPFLAGS}
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
114
examples_simple_SOURCES= examples/simple.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
115
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.
116
117
examples_simple_multi_CXXFLAGS= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
118
				$(AM_CXXFLAGS) \
119
				${LIBDRIZZLE_CPPFLAGS}
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
120
examples_simple_multi_SOURCES= examples/simple_multi.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
121
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.
122
123
examples_pipe_query_CXXFLAGS= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
124
			      $(AM_CXXFLAGS) \
125
			      ${LIBDRIZZLE_CPPFLAGS}
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
126
examples_pipe_query_SOURCES= examples/pipe_query.cc
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
127
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.
128
129
if HAVE_LIBSQLITE3
130
examples_sqlite_server_CXXFLAGS= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
131
				 $(AM_CXXFLAGS) \
132
				 ${LIBDRIZZLE_CPPFLAGS}
133
examples_sqlite_server_LDFLAGS= libdrizzle-2.0/libdrizzle-2.0.la $(LTLIBSQLITE3)
134
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.
135
examples_sqlite_server_SOURCES= examples/sqlite_server.cc
136
endif
137
2449.1.3 by Brian Aker
Fix libdrizzle pc support (and restore older .pc file to fix older compiles).
138
nobase_include_HEADERS+= \
139
			 libdrizzle-2.0/column.h \
140
			 libdrizzle-2.0/column_client.h \
141
			 libdrizzle-2.0/column_server.h \
142
			 libdrizzle-2.0/command_client.h \
143
			 libdrizzle-2.0/command_server.h \
144
			 libdrizzle-2.0/conn.h \
145
			 libdrizzle-2.0/conn_client.h \
146
			 libdrizzle-2.0/conn_server.h \
147
			 libdrizzle-2.0/constants.h \
148
			 libdrizzle-2.0/drizzle.h \
149
			 libdrizzle-2.0/drizzle_client.h \
150
			 libdrizzle-2.0/drizzle_server.h \
151
			 libdrizzle-2.0/field_client.h \
152
			 libdrizzle-2.0/field_server.h \
153
			 libdrizzle-2.0/handshake_client.h \
154
			 libdrizzle-2.0/handshake_server.h \
155
			 libdrizzle-2.0/libdrizzle.h \
156
			 libdrizzle-2.0/libdrizzle.hpp \
157
			 libdrizzle-2.0/query.h \
158
			 libdrizzle-2.0/result.h \
159
			 libdrizzle-2.0/result_client.h \
160
			 libdrizzle-2.0/result_server.h \
161
			 libdrizzle-2.0/row_client.h \
162
			 libdrizzle-2.0/row_server.h \
163
			 libdrizzle-2.0/structs.h \
164
			 libdrizzle-2.0/visibility.h
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
165
166
noinst_HEADERS+= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
167
		 libdrizzle-2.0/common.h \
168
		 libdrizzle-2.0/drizzle_local.h \
169
		 libdrizzle-2.0/conn_local.h \
170
		 libdrizzle-2.0/pack.h \
171
		 libdrizzle-2.0/state.h \
172
		 libdrizzle-2.0/sha1.h