1 ## $Id: Makefile.am,v 1.49 2006-07-04 14:10:29 adam Exp $
4 ../rset/libidzebra-rset.la \
5 ../dict/libidzebra-dict.la \
6 ../isams/libidzebra-isams.la \
7 ../isamc/libidzebra-isamc.la \
8 ../isamb/libidzebra-isamb.la \
9 ../data1/libidzebra-data1.la \
10 ../bfile/libidzebra-bfile.la \
11 ../dfa/libidzebra-dfa.la \
12 ../util/libidzebra-util.la
14 # Should match the main_zebralib in configure.ac
15 # Should also match the libidzebra_..._la lines..!
16 zebralib = libidzebra-2.0.la
18 noinst_PROGRAMS = apitest kdump zebrash
20 modlibdir=$(libdir)/$(PACKAGE)$(PACKAGE_SUFFIX)/modules
23 mod_grs_regx_la_SOURCES = regxread.c
24 mod_grs_regx_la_LDFLAGS = -rpath $(modlibdir) -module -avoid-version
25 mod_grs_regx_la_LADD = $(TCL_LIB)
26 mod_grs_regx_la_LIBADD = $(zebralib) $(mod_grs_regx_la_LADD)
28 mod_grs_xml_la_SOURCES = xmlread.c
29 mod_grs_xml_la_LDFLAGS = -rpath $(modlibdir) -module -avoid-version
30 mod_grs_xml_la_LADD = $(EXPAT_LIBS)
31 mod_grs_xml_la_LIBADD = $(zebralib) $(mod_grs_xml_la_LADD)
33 mod_grs_marc_la_SOURCES = marcread.c marcomp.c marcomp.h inline.c inline.h
34 mod_grs_marc_la_LDFLAGS = -rpath $(modlibdir) -module -avoid-version
35 mod_grs_marc_la_LADD =
36 mod_grs_marc_la_LIBADD = $(zebralib) $(mod_grs_marc_la_LADD)
38 mod_safari_la_SOURCES = safari.c
39 mod_safari_la_LDFLAGS = -rpath $(modlibdir) -module -avoid-version
41 mod_safari_la_LIBADD = $(zebralib) $(mod_safari_la_LADD)
43 mod_alvis_la_SOURCES = alvis.c
44 mod_alvis_la_LDFLAGS = -rpath $(modlibdir) -module -avoid-version
45 mod_alvis_la_LADD = $(XSLT_LIBS)
46 mod_alvis_la_LIBADD = $(zebralib) $(mod_alvis_la_LADD)
48 modlib_LTLIBRARIES = $(SHARED_MODULE_LA)
56 EXTRA_libidzebra_2_0_la_SOURCES = \
57 $(mod_grs_regx_la_SOURCES) \
58 $(mod_grs_xml_la_SOURCES) \
59 $(mod_grs_marc_la_SOURCES) \
60 $(mod_safari_la_SOURCES) \
61 $(mod_alvis_la_SOURCES)
63 lib_LTLIBRARIES = $(zebralib)
65 libidzebra_2_0_la_DEPENDENCIES = $(STATIC_MODULE_OBJ) $(aux_libs)
66 libidzebra_2_0_la_LIBADD = $(STATIC_MODULE_OBJ) $(aux_libs) $(STATIC_MODULE_LADD)
67 libidzebra_2_0_la_LDFLAGS=-export-dynamic -version-info $(ZEBRALIBS_VERSION)
68 libidzebra_2_0_la_SOURCES = \
73 api_swig.c attribute.c \
78 kinput.c kcompare.c kcontrol.c \
81 rank.h rank1.c ranksimilarity.c rankstatic.c \
82 recindex.c recindex.h recindxp.h reckeys.c reckeys.h recstat.c retrieve.c \
84 update_path.c update_file.c trunc.c \
85 zebraapi.c zinfo.c zinfo.h zserver.h zsets.c zrpn.c
87 bin_PROGRAMS = zebraidx zebrasrv
89 zebraidx_SOURCES = main.c
90 zebrasrv_SOURCES = zserver.c
91 zebrash_SOURCES = zebrash.c
92 apitest_SOURCES = apitest.c
93 kdump_SOURCES = kdump.c
95 AM_CPPFLAGS = -I$(srcdir)/../include $(YAZINC) \
96 -DDEFAULT_PROFILE_PATH=\"$(pkgdatadir)/tab\" \
97 $(TCL_INCLUDE) $(XSLT_FLAGS) $(XSLT_CFLAGS)
99 LDADD = $(zebralib) $(YAZLALIB)
101 zebrash_LDADD= $(LDADD) $(READLINE_LIBS)
104 cd $(DESTDIR)$(bindir); for p in $(bin_PROGRAMS); do \
105 mv -f $$p $$p$(PACKAGE_SUFFIX); \
106 ln -sf $$p$(PACKAGE_SUFFIX) $$p; \
110 cd $(DESTDIR)$(bindir) && for p in $(bin_PROGRAMS); do \
111 rm -f $$p$(PACKAGE_SUFFIX); \