2 # Asterisk -- A telephony toolkit for Linux.
4 # Makefile for file format modules
6 # Copyright (C) 1999, Mark Spencer
8 # Mark Spencer <markster@linux-support.net>
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
14 FORMAT_LIBS=format_gsm.so format_wav.so format_mp3.so \
15 format_wav_gsm.so format_vox.so format_pcm.so format_g729.so \
16 format_pcm_alaw.so format_h263.so
17 FORMAT_LIBS+=format_jpeg.so
19 # G723 simple frame is depricated
21 #FORMAT_LIBS+=format_g723.so
23 GSMLIB=../codecs/gsm/lib/libgsm.a
27 all: depend $(FORMAT_LIBS)
30 rm -f *.so *.o .depend
33 $(CC) -shared -Xlinker -x -o $@ $<
35 ifneq ($(wildcard .depend),)
39 format_mp3.so : format_mp3.o
40 $(CC) -shared -Xlinker -x -o $@ $< -lm
43 for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
48 ../mkdep $(CFLAGS) `ls *.c`