~roger-booth/mysql-proxy/laminator

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
luaextdir = ${pkglibdir}/lua/

SUBDIRS = proxy 

## those are in the end examples or proof-of-concepts
example_scripts = \
		active-queries.lua \
		active-transactions.lua \
		admin-sql.lua \
		analyze-query.lua \
		auditing.lua \
		commit-obfuscator.lua \
		commit-obfuscator.msc \
		histogram.lua \
		load-multi.lua \
		ro-balance.lua \
		ro-pooling.lua \
		rw-splitting.lua \
		xtab.lua
EXTRA_DIST = 

if USE_WRAPPER_SCRIPT
## only install them if we are self-contained
## otherwise let the packager decide where to put them
dist_doc_DATA = ${example_scripts}
else
EXTRA_DIST += ${example_scripts}
endif

luaext_LTLIBRARIES = lfs.la glib2.la chassis.la mysql.la lpeg.la posix.la

lfs_la_SOURCES  = lfs.c
## get libtool to build a shared-lib
lfs_la_CPPFLAGS = ${LUA_CFLAGS}
lfs_la_LDFLAGS  = $(AM_LDFLAGS) -module -avoid-version

posix_la_SOURCES  = posix.c
## get libtool to build a shared-lib
posix_la_CPPFLAGS = ${LUA_CFLAGS}
posix_la_LDFLAGS  = $(AM_LDFLAGS) -module -avoid-version

glib2_la_SOURCES  = glib2.c
## get libtool to build a shared-lib
glib2_la_CPPFLAGS = ${LUA_CFLAGS} ${GLIB_CFLAGS}
glib2_la_LDFLAGS  = $(AM_LDFLAGS) -module -avoid-version
glib2_la_LIBADD   = $(GLIB_LIBS)

chassis_la_SOURCES  = chassis.c
## get libtool to build a shared-lib
chassis_la_CPPFLAGS = ${LUA_CFLAGS} ${GLIB_CFLAGS} -I${top_srcdir}/src/
chassis_la_LDFLAGS  = $(AM_LDFLAGS) -module -avoid-version
chassis_la_LIBADD   = ${GLIB_LIBS} ${top_builddir}/src/libmysql-chassis.la

mysql_la_SOURCES  = \
	mysql-proto.c \
	mysql-password.c \
	sql-tokenizer.l \
	sql-tokenizer-lua.c 
## get libtool to build a shared-lib
mysql_la_CPPFLAGS = ${LUA_CFLAGS} ${GLIB_CFLAGS} -I${top_srcdir}/src/ ${MYSQL_CFLAGS} -I${top_builddir}/lib/
mysql_la_LDFLAGS  = $(AM_LDFLAGS) -module -avoid-version
mysql_la_LIBADD   = ${GLIB_LIBS} ${top_builddir}/src/libmysql-proxy.la

lpeg_la_SOURCES  = lpeg.c
lpeg_la_CPPFLAGS = ${LUA_CFLAGS}
lpeg_la_LDFLAGS  = $(AM_LDFLAGS) -module -avoid-version


noinst_HEADERS = \
	sql-tokenizer.h 

EXTRA_DIST += \
	glib2.def \
	lfs.def \
	chassis.def \
	lpeg.def \
	mysql.def \
	posix.def \
	CMakeLists.txt

DISTCLEANFILES = \
	sql-tokenizer.c