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 -lnotmuch ${XAPIAN_LDFLAGS} ${GMIME_LDFLAGS} ${TALLOC_LDFLAGS} -o $@ $< %_wrap.o : %_wrap.c gcc ${CFLAGS} -fPIC -c -o $@ $< %_wrap.c %.py : %.i swig -python ${INCLUDES} $<