dbba158a92e0f07f058836f09fabd6c2fb6bf8d1
[asterisk/asterisk.git] / formats / Makefile
1 #
2 # Asterisk -- A telephony toolkit for Linux.
3
4 # Makefile for file format modules
5 #
6 # Copyright (C) 1999, Mark Spencer
7 #
8 # Mark Spencer <markster@linux-support.net>
9 #
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
12 #
13
14 FORMAT_LIBS=format_g723.so format_wav.so format_mp3.so format_wav_gsm.so format_gsm.so format_vox.so format_pcm.so 
15 FORMAT_LIBS+=format_jpeg.so
16
17 GSMLIB=../codecs/gsm/lib/libgsm.a
18
19 CFLAGS+=
20
21 all: $(FORMAT_LIBS)
22
23 clean:
24         rm -f *.so *.o
25
26 %.so : %.o
27         $(CC) -shared -Xlinker -x -o $@ $<
28
29 format_mp3.so : format_mp3.o
30         $(CC) -shared -Xlinker -x -o $@ $< -lm
31
32 install: all
33         for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done