aboutsummaryrefslogtreecommitdiffstats
path: root/agi
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-06 00:00:20 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-06 00:00:20 +0000
commitf36b76d24a44a688ec18b0c3ffc01f7244d1ad13 (patch)
treea420a69f2f690405d9bc3d526e46be177d3ff80d /agi
parent1d55ef4a3e78c00ce605a5a9abc30cf0eecfeb80 (diff)
dep fix, pbx fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@962 f38db490-d61c-443f-a65b-d21fe96a405b
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`