diff --git a/pbx/Makefile b/pbx/Makefile
index c505d417e76acea0d3c023132cc96ce831a590d9..6b9beb970a0558bd85b6d9c9e58e20003992a2d8 100644
--- a/pbx/Makefile
+++ b/pbx/Makefile
@@ -37,3 +37,8 @@ ael/ael_lex.c:
 
 ael/ael.tab.c ael/ael.tab.h:
 	(cd ael; bison -v -d ael.y)
+
+dundi-parser.o: dundi-parser.c dundi-parser.h
+	$(CC) $(CFLAGS) -I. -c -o $@ $<
+
+pbx_dundi.so: pbx_dundi.o dundi-parser.o