Fix compilation failure with GCC 4.8
[xapian.git] / xapian-letor / Makefile.am
blobe3eb4e45656572facf882dc6f203be68eaaf6821
1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = subdir-objects
5 if MAINTAINER_MODE
6 # Export these so that we run the locally installed autotools when building
7 # from a bootstrapped git tree.
8 export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
9 endif
11 AM_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/include
13 # Order is relevant: when building, tests must be after ".".
14 SUBDIRS = . docs tests
16 AM_CXXFLAGS += $(XAPIAN_CXXFLAGS)
18 noinst_HEADERS =
19 BUILT_SOURCES =
20 noinst_LTLIBRARIES =
21 CLEANFILES =
22 DISTCLEANFILES =
23 MAINTAINERCLEANFILES =
24 bin_PROGRAMS =
25 EXTRA_PROGRAMS =
27 # This relies on GNU make (for the pattern rule) but it's just a convenience
28 # as you can run these check-* targets with any make using:
30 #   cd tests ; make check-FOO
32 # So the pain of maintaining a huge list of target forwarding rules here isn't
33 # worth it.
35 # Note: We use @PERCENT@ here instead of a literal % to suppress an automake
36 # portability warning.
37 check-@PERCENT@:
38         cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
40 EXTRA_DIST = ChangeLog include/xapian-letor/letor_error.h \
41  include/xapian-letor/letor_errordispatch.h generate-exceptions exception_data.pm
43 lib_LTLIBRARIES = libxapianletor.la
44 libxapianletor_la_SOURCES = $(lib_src)
45 libxapianletor_la_LDFLAGS = \
46         $(XAPIAN_LDFLAGS) $(NO_UNDEFINED) -version-info $(LIBRARY_VERSION_INFO)
48 libxapianletor_la_LIBADD = $(XAPIAN_LIBS) libcommon_str.la
50 lib_src =
52 if !MAINTAINER_NO_DOCS
53 dist_man_MANS =
54 endif
56 include api/Makefile.mk
57 include bin/Makefile.mk
58 include include/Makefile.mk
59 include feature/Makefile.mk
60 include ranker/Makefile.mk
61 include scorer/Makefile.mk
63 noinst_LTLIBRARIES += libcommon_str.la libgetopt.la
64 libcommon_str_la_SOURCES = common/str.cc
65 libgetopt_la_SOURCES = common/getopt.cc
67 xapianletorinclude_HEADERS += include/xapian-letor/letor_error.h
69 if MAINTAINER_MODE
70 BUILT_SOURCES += include/xapian-letor/letor_error.h include/xapian-letor/letor_errordispatch.h
72 include/xapian-letor/letor_error.h include/xapian-letor/letor_errordispatch.h: generate-exceptions exception_data.pm
73         $(PERL) -w -I"$(srcdir)" "$(srcdir)/generate-exceptions"
74 endif
76 MAINTAINERCLEANFILES += $(BUILT_SOURCES)
78 libxapianletor_la_LIBADD += $(LIBSVM_LIBS)
80 noinst_HEADERS +=\
81         common/gnu_getopt.h\
82         common/safeunistd.h\
83         common/str.h\
84         common/stringutils.h
86 DISTCHECK_CONFIGURE_FLAGS = "XAPIAN_CONFIG=$(XAPIAN_CONFIG)"