1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = subdir-objects
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
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)
23 MAINTAINERCLEANFILES =
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
35 # Note: We use @PERCENT@ here instead of a literal % to suppress an automake
36 # portability warning.
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
52 if !MAINTAINER_NO_DOCS
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
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"
76 MAINTAINERCLEANFILES += $(BUILT_SOURCES)
78 libxapianletor_la_LIBADD += $(LIBSVM_LIBS)
86 DISTCHECK_CONFIGURE_FLAGS = "XAPIAN_CONFIG=$(XAPIAN_CONFIG)"