diff --git a/main/Makefile b/main/Makefile
index d41302a7fc3d3060404c3862faea6156b673d192..3db0392ff37247632f22d925e64aeac2ae70fb84 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -253,6 +253,7 @@ ifeq ($(PJPROJECT_BUNDLED),yes)
 ASTPJ_SO_VERSION=2
 ASTPJ_LDLIBS=-L. -lasteriskpj
 
+PJDIR=$(ASTTOPDIR)/$(PJPROJECT_DIR)/source
 -include $(ASTTOPDIR)/$(PJPROJECT_DIR)/build.mak
 
 PJPROJECT_LDLIBS := \