]> git.notmuchmail.org Git - notmuch/blob - bindings/Makefile.local
lib, ruby: make use of -Wl,--no-undefined configurable
[notmuch] / bindings / Makefile.local
1 # -*- makefile -*-
2
3 dir := bindings
4
5 # force the shared library to be built
6 ruby-bindings: lib/libnotmuch.so
7 ifeq ($(HAVE_RUBY_DEV),1)
8         cd $(dir)/ruby && \
9                 EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \
10                 ruby extconf.rb --vendor
11         $(MAKE) -C $(dir)/ruby
12 else
13         @echo Missing dependency, skipping ruby bindings
14 endif
15
16 CLEAN += $(patsubst %,$(dir)/ruby/%, \
17         .RUBYARCHDIR.time \
18         Makefile database.o directory.o filenames.o\
19         init.o message.o messages.o mkmf.log notmuch.so query.o \
20         status.o tags.o thread.o threads.o)