aboutsummaryrefslogtreecommitdiffstats
path: root/formats/Makefile
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 /formats/Makefile
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 'formats/Makefile')
-rwxr-xr-xformats/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/formats/Makefile b/formats/Makefile
index 0cc2cb41f..885469463 100755
--- a/formats/Makefile
+++ b/formats/Makefile
@@ -19,16 +19,23 @@ GSMLIB=../codecs/gsm/lib/libgsm.a
CFLAGS+=-fPIC
-all: $(FORMAT_LIBS)
+all: depend $(FORMAT_LIBS)
clean:
- rm -f *.so *.o
+ rm -f *.so *.o .depend
%.so : %.o
$(CC) -shared -Xlinker -x -o $@ $<
+include .depend
+
format_mp3.so : format_mp3.o
$(CC) -shared -Xlinker -x -o $@ $< -lm
install: all
for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
+
+depend: .depend
+
+.depend:
+ ../mkdep $(CFLAGS) `ls *.c`