summaryrefslogtreecommitdiffstats
path: root/src/plugins/fts-lucene/Makefile.am
blob: d68e6aed28b0fe99704682d2a4e3c0954df419d3 (plain)
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
doveadm_moduledir = $(moduledir)/doveadm

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-index \
	-I$(top_srcdir)/src/lib-storage \
	-I$(top_srcdir)/src/plugins/fts \
	-I$(top_srcdir)/src/doveadm

AM_CXXFLAGS = \
	$(CLUCENE_CFLAGS) \
	$(LIBEXTTEXTCAT_CFLAGS)

NOPLUGIN_LDFLAGS =
lib21_fts_lucene_plugin_la_LDFLAGS = -module -avoid-version
lib20_doveadm_fts_lucene_plugin_la_LDFLAGS = -module -avoid-version

module_LTLIBRARIES = \
	lib21_fts_lucene_plugin.la

if BUILD_FTS_STEMMER
STEMMER_LIBS = -lstemmer
SHOWBALL_SOURCES = Snowball.cc
endif

if BUILD_FTS_EXTTEXTCAT
TEXTCAT_LIBS = $(LIBEXTTEXTCAT_LIBS)
else
if BUILD_FTS_TEXTCAT
TEXTCAT_LIBS = -ltextcat
endif
endif

lib21_fts_lucene_plugin_la_LIBADD = \
	$(CLUCENE_LIBS) $(TEXTCAT_LIBS) $(STEMMER_LIBS)

lib21_fts_lucene_plugin_la_SOURCES = \
	fts-lucene-plugin.c \
	fts-backend-lucene.c \
	lucene-wrapper.cc \
	$(SHOWBALL_SOURCES)

noinst_HEADERS = \
	fts-lucene-plugin.h \
	lucene-wrapper.h \
	SnowballAnalyzer.h \
	SnowballFilter.h

if BUILD_FTS_TEXTCAT
exampledir = $(docdir)/example-config
example_DATA = \
	textcat.conf
endif
EXTRA_DIST = textcat.conf

doveadm_module_LTLIBRARIES = \
	lib20_doveadm_fts_lucene_plugin.la

lib20_doveadm_fts_lucene_plugin_la_SOURCES = \
	doveadm-fts-lucene.c