summaryrefslogtreecommitdiff
path: root/agi
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-05-06 00:00:20 +0000
committerMark Spencer <markster@digium.com>2003-05-06 00:00:20 +0000
commit1a3cd8e6ad52008d37981ca9043da28c18f567f6 (patch)
treea420a69f2f690405d9bc3d526e46be177d3ff80d /agi
parentfda8b94bdf5ebf5da8cbdd7a3a971df23022a3e4 (diff)
dep fix, pbx fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'agi')
-rwxr-xr-xagi/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/agi/Makefile b/agi/Makefile
index bb12d1597..c1b35de44 100755
--- a/agi/Makefile
+++ b/agi/Makefile
@@ -15,7 +15,7 @@ AGIS=agi-test.agi eagi-test eagi-sphinx-test
CFLAGS+=
-all: $(AGIS)
+all: depend $(AGIS)
install: all
for x in $(AGIS); do $(INSTALL) -m 755 $$x $(AGI_DIR) ; done
@@ -27,7 +27,14 @@ eagi-sphinx-test: eagi-sphinx-test.o
$(CC) -o eagi-sphinx-test eagi-sphinx-test.o
clean:
- rm -f *.so *.o look
+ rm -f *.so *.o look .depend
%.so : %.o
$(CC) -shared -Xlinker -x -o $@ $<
+
+include .depend
+
+depend: .depend
+
+.depend:
+ ../mkdep $(CFLAGS) `ls *.c`