aboutsummaryrefslogtreecommitdiffstats
path: root/formats/Makefile
diff options
context:
space:
mode:
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`