1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = 1.5 subdir-objects
4 ACLOCAL_AMFLAGS = -I m4
7 # Export these so that we run the locally installed autotools when building
8 # from a bootstrapped git tree.
9 export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
12 AM_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/include
14 # Order is relevant: when building, tests must be after ".".
15 SUBDIRS = . docs tests
17 AM_CXXFLAGS += $(XAPIAN_CXXFLAGS)
24 MAINTAINERCLEANFILES =
28 # This relies on GNU make (for the pattern rule) but it's just a convenience
29 # as you can run these check-* targets with any make using:
31 # cd tests ; make check-FOO
33 # So the pain of maintaining a huge list of target forwarding rules here isn't
36 # Note: We use @PERCENT@ here instead of a literal % to suppress an automake
37 # portability warning.
39 cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
41 EXTRA_DIST = ChangeLog include/xapian-letor/letor_error.h \
42 include/xapian-letor/letor_errordispatch.h generate-exceptions exception_data.pm
44 lib_LTLIBRARIES = libxapianletor.la
45 libxapianletor_la_SOURCES = $(lib_src)
46 libxapianletor_la_LDFLAGS = \
47 $(XAPIAN_LDFLAGS) $(NO_UNDEFINED) -version-info $(LIBRARY_VERSION_INFO)
49 libxapianletor_la_LIBADD = $(XAPIAN_LIBS) libcommon_str.la
53 if !MAINTAINER_NO_DOCS
57 include api/Makefile.mk
58 include bin/Makefile.mk
59 include include/Makefile.mk
60 include feature/Makefile.mk
61 include ranker/Makefile.mk
62 include scorer/Makefile.mk
64 noinst_LTLIBRARIES += libcommon_str.la libgetopt.la
65 libcommon_str_la_SOURCES = common/str.cc
66 libgetopt_la_SOURCES = common/getopt.cc
68 xapianletorinclude_HEADERS += include/xapian-letor/letor_error.h
71 BUILT_SOURCES += include/xapian-letor/letor_error.h include/xapian-letor/letor_errordispatch.h
73 include/xapian-letor/letor_error.h include/xapian-letor/letor_errordispatch.h: generate-exceptions exception_data.pm
74 $(PERL) -w -I"$(srcdir)" "$(srcdir)/generate-exceptions"
77 MAINTAINERCLEANFILES += $(BUILT_SOURCES)
79 libxapianletor_la_LIBADD += $(LIBSVM_LIBS)
87 DISTCHECK_CONFIGURE_FLAGS = "XAPIAN_CONFIG=$(XAPIAN_CONFIG)"