diff --git a/agi/Makefile b/agi/Makefile
new file mode 100755
index 0000000000000000000000000000000000000000..8044516f7724323049a2585522a7b3c1e37393fd
--- /dev/null
+++ b/agi/Makefile
@@ -0,0 +1,27 @@
+#
+# Asterisk -- A telephony toolkit for Linux.
+# 
+# Makefile for PBX frontends (dynamically loaded)
+#
+# Copyright (C) 1999, Mark Spencer
+#
+# Mark Spencer <markster@linux-support.net>
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License
+#
+
+AGIS=agi-test.agi
+
+CFLAGS+=
+
+all: $(AGIS)
+
+install: all
+	for x in $(AGIS); do $(INSTALL) -m 755 $$x $(AGI_DIR) ; done
+
+clean:
+	rm -f *.so *.o look
+
+%.so : %.o
+	$(CC) -shared -Xlinker -x -o $@ $<