1if WITH_MYSPELL
2target_lib = libenchant_myspell.la
3else
4target_lib =
5endif
6
7# copied from hunspell 1.2.2
8COPIED_MYSPELL_FILES=		\
9	affentry.cxx		\
10	affentry.hxx		\
11	affixmgr.cxx		\
12	affixmgr.hxx		\
13	atypes.hxx		\
14	baseaffix.hxx		\
15	csutil.cxx		\
16	csutil.hxx		\
17	dictmgr.cxx		\
18	dictmgr.hxx		\
19	filemgr.cxx		\
20	filemgr.hxx		\
21	hashmgr.cxx		\
22	hashmgr.hxx		\
23	htypes.hxx		\
24	hunspell.cxx		\
25	hunspell.h		\
26	hunspell.hxx		\
27	hunzip.cxx		\
28	hunzip.hxx		\
29	langnum.hxx		\
30	phonet.cxx		\
31	phonet.hxx		\
32	suggestmgr.cxx		\
33	suggestmgr.hxx		\
34	utf_info.cxx		\
35	w_char.hxx
36
37if WITH_SYSTEM_MYSPELL
38EXTRA_MYSPELL_FILES=
39EXTRA_MYSPELL_CFLAGS=-DWITH_SYSTEM_MYSPELL
40else
41EXTRA_MYSPELL_FILES=$(COPIED_MYSPELL_FILES)
42EXTRA_MYSPELL_CFLAGS=-DHUNSPELL_STATIC
43endif
44
45INCLUDES=-I$(top_srcdir)/src $(ENCHANT_CFLAGS) $(MYSPELL_CFLAGS) $(CXX_WARN_CFLAGS) $(EXTRA_MYSPELL_CFLAGS) -D_ENCHANT_BUILD=1
46
47myspell_LTLIBRARIES = $(target_lib)
48myspelldir= $(libdir)/enchant
49
50libenchant_myspell_lalibdir=$(libdir)/enchant
51libenchant_myspell_la_LIBADD= $(MYSPELL_LIBS) $(ENCHANT_LIBS) $(top_builddir)/src/libenchant.la
52libenchant_myspell_la_LDFLAGS = -module -avoid-version -no-undefined
53
54libenchant_myspell_la_SOURCES =	\
55	$(EXTRA_MYSPELL_FILES)	\
56	myspell_checker.cpp
57
58EXTRA_DIST=			\
59	$(COPIED_MYSPELL_FILES)	\
60	license.readme		\
61	utf_info.cxx		\
62	license.hunspell	\
63	license.myspell		\
64	license.readme		\
65	hunspell.dsp
66
67