[Xapian-devel] Adding an external library to Xapian
James Aylett
james-xapian at tartarus.org
Sun Apr 13 15:30:28 BST 2014
On 13 Apr 2014, at 15:24, Siddhant Mutha <siddhantmutha at gmail.com> wrote:
> We are writing a new module which needs to be added to the Xapian source. For this, what modifications are to be made to the Makefile?
> The two modules we are writing will be in the 'include' and 'api' folders.
I believe (from a quick inspection of the build system) that:
* add new external API headers (ie ones that get installed for library users) to xapianinclude_HEADERS in include/Makefile.mk
* sources in api/ should be added to lib_src in api/Makefile.mk
* headers in api/ (which won't be installed for library users) should be added to noinst_HEADERS in api/Makefile.mk
That should be enough, providing you're in maintainer mode, which will be true if you've built from a git checkout.
J
--
James Aylett, occasional trouble-maker
xapian.org
More information about the Xapian-devel
mailing list