~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/libdrizzle/include.am

  • Committer: Monty Taylor
  • Date: 2011-03-22 18:39:54 UTC
  • mto: (2246.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2247.
  • Revision ID: mordred@inaugust.com-20110322183954-fz8ciuywjz2llbyo
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Drizzle Client Library
 
3
#
 
4
# Copyright (C) 2008 Eric Day (eday@oddments.org)
 
5
# All rights reserved.
 
6
#
 
7
# Redistribution and use in source and binary forms, with or without
 
8
# modification, are permitted provided that the following conditions are
 
9
# met:
 
10
#
 
11
#     * Redistributions of source code must retain the above copyright
 
12
# notice, this list of conditions and the following disclaimer.
 
13
#
 
14
#     * Redistributions in binary form must reproduce the above
 
15
# copyright notice, this list of conditions and the following disclaimer
 
16
# in the documentation and/or other materials provided with the
 
17
# distribution.
 
18
#
 
19
#     * The names of its contributors may not be used to endorse or
 
20
# promote products derived from this software without specific prior
 
21
# written permission.
 
22
#
 
23
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
24
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
25
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
26
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 
27
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
28
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 
29
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
30
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 
31
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
32
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
33
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
34
#
 
35
 
 
36
lib_LTLIBRARIES+= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
37
 
 
38
if HAVE_LIBSQLITE3
 
39
SQLITE_PROGS= examples/sqlite_server
 
40
endif
 
41
 
 
42
noinst_PROGRAMS+= \
 
43
                  libdrizzle-2.0/libdrizzle/mysql_password_hash
 
44
libdrizzle_2_0_libdrizzle_mysql_password_hash_CXXFLAGS= ${AM_CXXFLAGS} ${LIBDRIZZLE_CPPFLAGS}
 
45
libdrizzle_2_0_libdrizzle_mysql_password_hash_LDADD= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
46
libdrizzle_2_0_libdrizzle_mysql_password_hash_SOURCES= libdrizzle-2.0/libdrizzle/mysql_password_hash.cc
 
47
 
 
48
noinst_PROGRAMS+= \
 
49
        examples/client \
 
50
        examples/simple \
 
51
        examples/simple_multi \
 
52
        examples/pipe_query \
 
53
        examples/server \
 
54
        examples/proxy \
 
55
        $(SQLITE_PROGS)
 
56
 
 
57
libdrizzle_2_0_libdrizzle_libdrizzle_la_CXXFLAGS= \
 
58
        ${AM_CXXFLAGS} \
 
59
        ${LIBDRIZZLE_CPPFLAGS} \
 
60
        ${CFLAG_VISIBILITY} \
 
61
        -DBUILDING_LIBDRIZZLE
 
62
 
 
63
libdrizzle_2_0_libdrizzle_libdrizzle_la_LDFLAGS= \
 
64
        $(AM_LDFLAGS) \
 
65
        -version-info \
 
66
        $(LIBDRIZZLE_LIBRARY_VERSION)
 
67
 
 
68
libdrizzlepkgconfigdir= $(libdir)/pkgconfig
 
69
libdrizzlepkgconfig_DATA= \
 
70
                          support-files/libdrizzle-2.0.pc
 
71
 
 
72
libdrizzle_2_0_libdrizzle_libdrizzle_la_SOURCES= \
 
73
        libdrizzle-2.0/libdrizzle/column.cc \
 
74
        libdrizzle-2.0/libdrizzle/command.cc \
 
75
        libdrizzle-2.0/libdrizzle/conn.cc \
 
76
        libdrizzle-2.0/libdrizzle/conn_uds.cc \
 
77
        libdrizzle-2.0/libdrizzle/drizzle.cc \
 
78
        libdrizzle-2.0/libdrizzle/field.cc \
 
79
        libdrizzle-2.0/libdrizzle/handshake.cc \
 
80
        libdrizzle-2.0/libdrizzle/pack.cc \
 
81
        libdrizzle-2.0/libdrizzle/query.cc \
 
82
        libdrizzle-2.0/libdrizzle/result.cc \
 
83
        libdrizzle-2.0/libdrizzle/row.cc \
 
84
        libdrizzle-2.0/libdrizzle/sha1.cc \
 
85
        libdrizzle-2.0/libdrizzle/state.cc
 
86
 
 
87
examples_server_CXXFLAGS= \
 
88
                          $(AM_CXXFLAGS) \
 
89
                          ${LIBDRIZZLE_CPPFLAGS}
 
90
examples_server_SOURCES= examples/server.cc
 
91
examples_server_LDADD= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
92
 
 
93
examples_proxy_CXXFLAGS= \
 
94
                         $(AM_CXXFLAGS) \
 
95
                         ${LIBDRIZZLE_CPPFLAGS}
 
96
examples_proxy_SOURCES= examples/proxy.cc
 
97
examples_proxy_LDADD= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
98
 
 
99
examples_client_CXXFLAGS= \
 
100
                          $(AM_CXXFLAGS) \
 
101
                          ${LIBDRIZZLE_CPPFLAGS}
 
102
examples_client_SOURCES= examples/client.cc
 
103
examples_client_LDADD= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
104
 
 
105
examples_simple_CXXFLAGS= \
 
106
                          $(AM_CXXFLAGS) \
 
107
                          ${LIBDRIZZLE_CPPFLAGS}
 
108
examples_simple_SOURCES= examples/simple.cc
 
109
examples_simple_LDADD= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
110
 
 
111
examples_simple_multi_CXXFLAGS= \
 
112
                                $(AM_CXXFLAGS) \
 
113
                                ${LIBDRIZZLE_CPPFLAGS}
 
114
examples_simple_multi_SOURCES= examples/simple_multi.cc
 
115
examples_simple_multi_LDADD= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
116
 
 
117
examples_pipe_query_CXXFLAGS= \
 
118
                              $(AM_CXXFLAGS) \
 
119
                              ${LIBDRIZZLE_CPPFLAGS}
 
120
examples_pipe_query_SOURCES= examples/pipe_query.cc
 
121
examples_pipe_query_LDADD= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
122
 
 
123
if HAVE_LIBSQLITE3
 
124
examples_sqlite_server_CXXFLAGS= \
 
125
                                 $(AM_CXXFLAGS) \
 
126
                                 ${LIBDRIZZLE_CPPFLAGS}
 
127
examples_sqlite_server_LDFLAGS= libdrizzle-2.0/libdrizzle/libdrizzle.la $(LTLIBSQLITE3)
 
128
examples_sqlite_server_DEPENDENCIES= libdrizzle-2.0/libdrizzle/libdrizzle.la
 
129
examples_sqlite_server_SOURCES= examples/sqlite_server.cc
 
130
endif
 
131
 
 
132
dist_libdrizzleinstall_HEADERS= \
 
133
                                libdrizzle-2.0/libdrizzle/column.h \
 
134
                                libdrizzle-2.0/libdrizzle/column_client.h \
 
135
                                libdrizzle-2.0/libdrizzle/column_server.h \
 
136
                                libdrizzle-2.0/libdrizzle/command_client.h \
 
137
                                libdrizzle-2.0/libdrizzle/command_server.h \
 
138
                                libdrizzle-2.0/libdrizzle/conn.h \
 
139
                                libdrizzle-2.0/libdrizzle/conn_client.h \
 
140
                                libdrizzle-2.0/libdrizzle/conn_server.h \
 
141
                                libdrizzle-2.0/libdrizzle/constants.h \
 
142
                                libdrizzle-2.0/libdrizzle/drizzle.h \
 
143
                                libdrizzle-2.0/libdrizzle/drizzle_client.h \
 
144
                                libdrizzle-2.0/libdrizzle/drizzle_server.h \
 
145
                                libdrizzle-2.0/libdrizzle/field_client.h \
 
146
                                libdrizzle-2.0/libdrizzle/field_server.h \
 
147
                                libdrizzle-2.0/libdrizzle/handshake_client.h \
 
148
                                libdrizzle-2.0/libdrizzle/handshake_server.h \
 
149
                                libdrizzle-2.0/libdrizzle/libdrizzle.h \
 
150
                                libdrizzle-2.0/libdrizzle/query.h \
 
151
                                libdrizzle-2.0/libdrizzle/result.h \
 
152
                                libdrizzle-2.0/libdrizzle/result_client.h \
 
153
                                libdrizzle-2.0/libdrizzle/result_server.h \
 
154
                                libdrizzle-2.0/libdrizzle/row_client.h \
 
155
                                libdrizzle-2.0/libdrizzle/row_server.h \
 
156
                                libdrizzle-2.0/libdrizzle/structs.h \
 
157
                                libdrizzle-2.0/libdrizzle/visibility.h
 
158
 
 
159
noinst_HEADERS+= \
 
160
                 libdrizzle-2.0/libdrizzle/common.h \
 
161
                 libdrizzle-2.0/libdrizzle/drizzle_local.h \
 
162
                 libdrizzle-2.0/libdrizzle/conn_local.h \
 
163
                 libdrizzle-2.0/libdrizzle/pack.h \
 
164
                 libdrizzle-2.0/libdrizzle/state.h \
 
165
                 libdrizzle-2.0/libdrizzle/sha1.h
 
166
 
 
167
 
 
168
libdrizzle: libdrizzle-2.0/libdrizzle/libdrizzle.la
 
169
install-libdrizzle: libdrizzle install-dist_libdrizzleinstallHEADERS install-libdrizzlepkgconfigDATA
 
170
        test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
 
171
        $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) libdrizzle-2.0/libdrizzle/libdrizzle.la "$(DESTDIR)$(libdir)"