File: Makefile.am

package info (click to toggle)
libdrizzle 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,912 kB
  • ctags: 1,679
  • sloc: sh: 10,872; ansic: 9,362; python: 1,388; makefile: 178
file content (191 lines) | stat: -rw-r--r-- 4,393 bytes parent folder | download
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#
# Drizzle Client Library
#
# Copyright (C) 2008 Eric Day (eday@oddments.org)
# All rights reserved.
#
# Use and distribution licensed under the BSD license.  See
# the COPYING file in this directory for full text.
#
#

ACLOCAL_AMFLAGS= -I m4

LDADD= libdrizzle.la

lib_LTLIBRARIES= libdrizzle.la

if HAVE_LIBSQLITE3
SQLITE_PROGS= examples/sqlite_server
endif

noinst_PROGRAMS= \
	examples/client \
	examples/simple \
	examples/simple_multi \
	examples/pipe_query \
	examples/server \
	examples/proxy \
	$(SQLITE_PROGS)

libdrizzle_la_CFLAGS= \
	${AM_CFLAGS} \
	-DBUILDING_LIBDRIZZLE

libdrizzle_la_LDFLAGS= \
	$(AM_LDFLAGS) \
	-version-info \
	$(LIBDRIZZLE_LIBRARY_VERSION)

libdrizzle_la_SOURCES= \
	libdrizzle/drizzle.c \
	libdrizzle/conn.c \
	libdrizzle/conn_uds.c \
	libdrizzle/handshake.c \
	libdrizzle/command.c \
	libdrizzle/query.c \
	libdrizzle/result.c \
	libdrizzle/column.c \
	libdrizzle/row.c \
	libdrizzle/field.c \
	libdrizzle/pack.c \
	libdrizzle/state.c \
	libdrizzle/sha1.c

examples_server_CFLAGS= $(AM_CFLAGS)
examples_server_SOURCES= examples/server.c

examples_proxy_CFLAGS= $(AM_CFLAGS)
examples_proxy_SOURCES= examples/proxy.c

if HAVE_LIBSQLITE3
examples_sqlite_server_CFLAGS= $(AM_CFLAGS)
examples_sqlite_server_LDFLAGS= libdrizzle.la $(LTLIBSQLITE3)
examples_sqlite_server_DEPENDENCIES= libdrizzle.la
examples_sqlite_server_SOURCES= examples/sqlite_server.c
endif

nobase_include_HEADERS= \
	libdrizzle/drizzle.h \
	libdrizzle/drizzle_client.h \
	libdrizzle/drizzle_server.h \
	libdrizzle/conn.h \
	libdrizzle/conn_client.h \
	libdrizzle/conn_server.h \
	libdrizzle/handshake_client.h \
	libdrizzle/handshake_server.h \
	libdrizzle/command_client.h \
	libdrizzle/command_server.h \
	libdrizzle/query.h \
	libdrizzle/result.h \
	libdrizzle/result_client.h \
	libdrizzle/result_server.h \
	libdrizzle/column.h \
	libdrizzle/column_client.h \
	libdrizzle/column_server.h \
	libdrizzle/row_client.h \
	libdrizzle/row_server.h \
	libdrizzle/field_client.h \
	libdrizzle/field_server.h \
	libdrizzle/constants.h \
	libdrizzle/structs.h \
	libdrizzle/visibility.h

noinst_HEADERS= \
	libdrizzle/common.h \
	libdrizzle/drizzle_local.h \
	libdrizzle/conn_local.h \
	libdrizzle/pack.h \
	libdrizzle/state.h \
	libdrizzle/sha1.h \
	tests/common.h

doxygen:
	${DOXYGEN} docs/Doxyfile.api
	${DOXYGEN} docs/Doxyfile.dev

CLEANFILES= \
	doxerr.log \
	libdrizzle/drizzle_client.h.gch \
	libdrizzle/drizzle_server.h.gch \
	libdrizzle/common.h.gch

MAINTAINERCLEANFILES = \
	m4/libtool.m4 \
	m4/ltoptions.m4 \
	m4/ltsugar.m4 \
	m4/ltversion.m4 \
	m4/lt~obsolete.m4

clean-local: cleandocs
.PHONY: cleandocs
cleandocs:
	-rm -rf docs/api docs/dev

EXTRA_DIST= \
	PROTOCOL \
	config/config.rpath \
	support/libdrizzle.spec \
	docs/Doxyfile.api \
	docs/Doxyfile.dev \
	docs/dev_header.html \
	docs/api_header.html \
	docs/doxygen.h \
	tests/run.sh \
	prototest/drizzle_prototest \
	prototest/drizzle_flood \
	prototest/prototest/__init__.py \
	prototest/prototest/mysql/__init__.py \
	prototest/prototest/mysql/bitfield.py \
	prototest/prototest/mysql/column.py \
	prototest/prototest/mysql/command.py \
	prototest/prototest/mysql/handshake.py \
	prototest/prototest/mysql/packet.py \
	prototest/prototest/mysql/result.py

pkgconfigdir= $(libdir)/pkgconfig
pkgconfig_DATA= support/libdrizzle.pc

test: check

check-valgrind:
	LIBDRIZZLE_TEST_PREFIX="valgrind -q --leak-check=full --show-reachable=yes" make check

check-gdb:
	LIBDRIZZLE_TEST_PREFIX="gdb -q" make check

check-gdb-run:
	LIBDRIZZLE_TEST_PREFIX="gdb -q -x gdb-run" make check

check-time:
	LIBDRIZZLE_TEST_PREFIX="time" make check

check-strace:
	LIBDRIZZLE_TEST_PREFIX="strace -c" make check

check-truss:
	LIBDRIZZLE_TEST_PREFIX="truss -c" make check

TESTS_ENVIRONMENT= ${top_srcdir}/tests/run.sh

check_PROGRAMS= \
	tests/drizzle_st \
	tests/drizzle_con_st \
	tests/drizzle_query_st \
	tests/drizzle_result_st \
	tests/drizzle_column_st \
	tests/client_server

TESTS= $(check_PROGRAMS)

lcov: lcov-clean check
	@echo
	@echo "------------------------------------------------------"
	@echo "Make sure ./configure was run with '--enable-coverage'"
	@echo "------------------------------------------------------"
	@echo
	cd libdrizzle && lcov --capture --directory . --base-directory .. --output-file lcov.out
	genhtml -o lcov -t libdrizzle libdrizzle/lcov.out

lcov-clean: clean
	rm -rf lcov */lcov.out */*.gcda */*.gcno