include ../Makefile.config INCLUDES=-I../lib -I/usr/include/python2.6 CFLAGS=${INCLUDES} all : python python : _notmuch_funcs.so notmuch.py _notmuch_funcs.so : notmuch_funcs_wrap.o g++ -shared ${XAPIAN_LDFLAGS} ${GMIME_LDFLAGS} ${TALLOC_LDFLAGS} -o $@ $< ../lib/notmuch.a %_wrap.o : %_wrap.c gcc ${CFLAGS} -fPIC -c -o $@ $< %_wrap.c %.py : %.i swig -python ${INCLUDES} $<