diff --git a/debian/rules b/debian/rules
index b63ec5df4e39528f47620e6712d240808f8c2a4b..da1410ce42a2e7adc6c06984de755a7852defb91 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,7 @@ configure-stamp:
 	# Add here commands to configure the package.
 	./autogen.sh --prefix=/usr
 	cd sflphone-gtk; ./autogen.sh --prefix=/usr
+	cd libs/pjproject-1.0.1; ./configure
 	touch configure-stamp
 
 
@@ -34,6 +35,7 @@ build-arch-stamp: configure-stamp
     # Add here commands to compile the arch part of the package.
 	$(MAKE) 
 	cd sflphone-gtk; make
+	cd libs/pjproject-1.0.1; $(MAKE) dep; $(MAKE)
 	touch $@
 
 build-indep: build-indep-stamp
@@ -74,6 +76,7 @@ install-arch:
 	# debian/tmp.
 	$(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
 	cd sflphone-gtk; $(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
+	cd libs/pjproject-1.0.1; $(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
 	rm -rf $(CURDIR)/debian/$(package)/usr/include
 	dh_install -s
 # Must not depend on anything. This is to be called by