summaryrefslogtreecommitdiff
path: root/pbx/Makefile
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 /pbx/Makefile
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 'pbx/Makefile')
-rwxr-xr-xpbx/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/pbx/Makefile b/pbx/Makefile
index 27d355419..502fee111 100755
--- a/pbx/Makefile
+++ b/pbx/Makefile
@@ -31,10 +31,10 @@ CFLAGS+=-fPIC
KDE_CONSOLE_OBJS=pbx_kdeconsole_main.o pbx_kdeconsole.o
-all: $(PBX_LIBS)
+all: depend $(PBX_LIBS)
clean:
- rm -f *.so *.o
+ rm -f *.so *.o .depend
pbx_gtkconsole.o: pbx_gtkconsole.c
$(CC) $(CFLAGS) $(GTK_FLAGS) -c -o $@ $<
@@ -57,5 +57,12 @@ pbx_kdeconsole.so: $(KDE_CONSOLE_OBJS)
%.so : %.o
$(CC) -shared -Xlinker -x -o $@ $<
+include .depend
+
install: all
for x in $(PBX_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
+
+depend: .depend
+
+.depend:
+ ../mkdep $(CFLAGS) `ls *.c`